Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index e220d6beda715534b82c7e0dab9afe04359ec870..934c82eb10566973cd6fead748b1144f10b20989 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -9085,8 +9085,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_AllocateInNewSpace) { |
RUNTIME_ASSERT(IsAligned(size, kPointerSize)); |
RUNTIME_ASSERT(size > 0); |
Heap* heap = isolate->heap(); |
- const int kMinFreeNewSpaceAfterGC = heap->InitialSemiSpaceSize() * 3/4; |
- RUNTIME_ASSERT(size <= kMinFreeNewSpaceAfterGC); |
+ RUNTIME_ASSERT(size <= heap->MaxNewSpaceAllocationSize()); |
Object* allocation; |
{ MaybeObject* maybe_allocation = heap->new_space()->AllocateRaw(size); |
if (maybe_allocation->ToObject(&allocation)) { |