[wasm] Always publish TurboFan units in batches
So far, units compiled with TurboFan were published one-by-one as soon as they were ready, which reduces the latency until the faster code is available. However, especially when write-protecting code with mprotect, this yielded a lot of page protection switches, which incurs syscall and lock contention overhead. Thus, https://crrev.com/c/2922114 already introduced TurboFan batching when using write-protection. During experiments, we found this could even be beneficial in the default configuration, i.e., without write-protection enabled. This CL changes to always do the publishing in batches. This choice should be revisited once the tier-up strategy changes, e.g., with lazy compilation or dynamic tier-up. R=clemensb@chromium.org CC=jkummerow@chromium.org Change-Id: I0ba792c969f7e017ac57103d2bbfe9a142cf302d Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2928186Reviewed-by: Clemens Backes <clemensb@chromium.org> Commit-Queue: Daniel Lehmann <dlehmann@google.com> Cr-Commit-Position: refs/heads/master@{#74871}
Showing
Please
register
or
sign in
to comment