heap: Reduce atomics in IsInConstruction checks
When this check is called from the mutator thread it does not need to be atomic. Adding a template layer between MarkingVisitorBase and (Concurrent)MarkingVisitor to choose the right access mode to use Evaluated this change on the regressed metrics from https://crbug.com/1005476. The metric rendering.mobile/queueing_durations/balls_css_key_frame_animations was reduced from 5.9 to 4.5 and jank dropped by 2 (see pinpoint job 1644ff41c20000). Bug: 986235, 1005476 Change-Id: I767f1be9a3d387d63d49ec4643e90f3022c608b0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1872100 Commit-Queue: Omer Katz <omerkatz@chromium.org> Reviewed-by:Michael Lippautz <mlippautz@chromium.org> Cr-Commit-Position: refs/heads/master@{#708987}
Showing
Please register or sign in to comment