Index: src/heap-inl.h |
diff --git a/src/heap-inl.h b/src/heap-inl.h |
index ab1fdb4cfe6edec5f28ad39da55d44b9c2a73fcc..f937426186c8099fb9c2f5469f3c32eb4eb97355 100644 |
--- a/src/heap-inl.h |
+++ b/src/heap-inl.h |
@@ -211,6 +211,7 @@ MaybeObject* Heap::CopyFixedDoubleArray(FixedDoubleArray* src) { |
MaybeObject* Heap::AllocateRaw(int size_in_bytes, |
AllocationSpace space, |
AllocationSpace retry_space) { |
+ SLOW_ASSERT(!isolate_->optimizing_compiler_thread()->IsOptimizerThread()); |
ASSERT(allocation_allowed_ && gc_state_ == NOT_IN_GC); |
ASSERT(space != NEW_SPACE || |
retry_space == OLD_POINTER_SPACE || |