• Toon Verwaest's avatar
    [heap] Allocate code close to the binary · 506aeae9
    Toon Verwaest authored
    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: 's avatarHannes Payer <hpayer@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#73093}
    506aeae9
memory-allocator.cc 29.2 KB