• Jakob Linke's avatar
    [maglev] Scale OSR heuristics in presence of Maglev code · 46d54b02
    Jakob Linke authored
    OSR is triggered based on the condition:
    
     bytecode_size <= x + profiler_ticks * y
    
    where x and y are constants selected in the dawn of time. Since the
    presence of Maglev introduces multiple interrupt budgets for different
    target tiers (which control how often profiler_ticks are incremented),
    constant y must be adapted to stay somewhat close to the old OSR
    timing behavior.
    
    Bug: v8:7700
    Change-Id: I0f182d28fd64a58f2f6d8346cca0d553fbeae184
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3866175
    Commit-Queue: Jakob Linke <jgruber@chromium.org>
    Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
    Auto-Submit: Jakob Linke <jgruber@chromium.org>
    Commit-Queue: Leszek Swirski <leszeks@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#82862}
    46d54b02
tiering-manager.cc 16.6 KB