Commit b5145bb6 authored by Dominik Inführ's avatar Dominik Inführ Committed by V8 LUCI CQ

[heap] DCHECK that generational barrier is run on main thread

The generational barrier isn't supported on the background thread at the
moment. Make sure it isn't used on such threads by accident.

Bug: v8:13203
Change-Id: I5577f3802c1aba246955519c8c778fa741d56d96
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3840300
Commit-Queue: Dominik Inführ <dinfuehr@chromium.org>
Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/main@{#82635}
parent 9569f341
......@@ -7224,6 +7224,7 @@ void Heap::CombinedGenerationalAndSharedBarrierSlow(HeapObject object,
MemoryChunk* value_chunk = MemoryChunk::FromHeapObject(value);
if (value_chunk->InYoungGeneration()) {
DCHECK_NULL(LocalHeap::Current());
Heap::GenerationalBarrierSlow(object, slot, value);
} else {
......
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