Commit 3b7d320d authored by Keishi Hattori's avatar Keishi Hattori Committed by Commit Bot

Oilpan: Hide collection backing write barrier behind the incremental marking flag

Adding the write barrier to collection backings regressed blink_perf.parser by 16%

Bug: 818696
Change-Id: If964e2ccf39beb3010063bf785e97c60ddf007c2
Reviewed-on: https://chromium-review.googlesource.com/953443Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Keishi Hattori <keishi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#541733}
parent 8aa27d12
......@@ -129,7 +129,9 @@ class PLATFORM_EXPORT HeapAllocator {
static bool ExpandHashTableBacking(void*, size_t);
static void BackingWriteBarrier(void* address) {
#if BUILDFLAG(BLINK_HEAP_INCREMENTAL_MARKING)
ThreadState::Current()->Heap().WriteBarrier(address);
#endif
}
template <typename Return, typename Metadata>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment