• Mike Stanton's avatar
    [TurboFan] Provide concurrent access to feedback vector · 2288b1f6
    Mike Stanton authored
    This CL provides synchronized get/set to feedback vector slots.
    The FeedbackNexus is set up to use order preserving reads when used
    on the background thread, and a lock to ensure coherent read
    of information for ICKinds with two slots. The main thread takes
    the lock on sets.
    
    This test provides patterns to be followed by concurrent TurboFan.
    
    We don't yet access the FeedbackVector on the background thread.
    This CL only makes it safe to do so. The next step will come when
    the optimizing compiler begins to query the the vector from the
    background thread. Currently, with --concurrent-inlining turned on
    this is done in bytecode serialization on the main thread. Without
    concurrent inlining, it's also done on the main thread, in both
    cases using the FeedbackNexus.
    
    Bug: v8:7790
    Change-Id: I49d8b8031190f91a0da1c24f375b6b6d8a9fe038
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2276210
    Commit-Queue: Michael Stanton <mvstanton@chromium.org>
    Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
    Reviewed-by: 's avatarNico Hartmann <nicohartmann@chromium.org>
    Reviewed-by: 's avatarSantiago Aboy Solanes <solanes@chromium.org>
    Reviewed-by: 's avatarGeorg Neis <neis@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#70797}
    2288b1f6
heap-symbols.h 32.2 KB