Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 5bbca4dba1bd35d504808c224e5f47dc50d6eba3..40a35935d756d48d3f66eb5051ae4649513a3731 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -9076,8 +9076,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)) { |