[heap] Allocate code close to the binary
Calls >4gb may have pretty bad performance on 64bit processors that use 32bits to encode branch prediction. By passing in a function in the binary as a hint to mmap it's more likely we'll be given an address close to the binary. This may significantly improve performance on many types of 64bit cores, especially those without hyperthreading. Change-Id: Ia1f712a3a029e10cb0c6a0d1e2c4919bbb2854f2 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2726500 Commit-Queue: Toon Verwaest <verwaest@chromium.org> Commit-Queue: Hannes Payer <hpayer@chromium.org> Auto-Submit: Toon Verwaest <verwaest@chromium.org> Reviewed-by: Hannes Payer <hpayer@chromium.org> Cr-Commit-Position: refs/heads/master@{#73093}
Showing
Please
register
or
sign in
to comment