diff options
Diffstat (limited to 'deps/v8/src/heap/concurrent-allocator-inl.h')
-rw-r--r-- | deps/v8/src/heap/concurrent-allocator-inl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/deps/v8/src/heap/concurrent-allocator-inl.h b/deps/v8/src/heap/concurrent-allocator-inl.h index efce44d363..9b9ab114e6 100644 --- a/deps/v8/src/heap/concurrent-allocator-inl.h +++ b/deps/v8/src/heap/concurrent-allocator-inl.h @@ -23,6 +23,7 @@ AllocationResult ConcurrentAllocator::AllocateRaw(int size_in_bytes, AllocationOrigin origin) { size_in_bytes = ALIGN_TO_ALLOCATION_ALIGNMENT(size_in_bytes); DCHECK(!v8_flags.enable_third_party_heap); + DCHECK_EQ(origin == AllocationOrigin::kGC, context_ == Context::kGC); // TODO(dinfuehr): Add support for allocation observers #ifdef DEBUG if (local_heap_) local_heap_->VerifyCurrent(); |