Index: src/spaces.cc |
=================================================================== |
--- src/spaces.cc (revision 645) |
+++ src/spaces.cc (working copy) |
@@ -1533,7 +1533,7 @@ |
// Free list allocation failed and there is no next page. Fail if we have |
// hit the old generation size limit that should cause a garbage |
// collection. |
- if (Heap::OldGenerationAllocationLimitReached()) { |
+ if (!Heap::always_allocate() && Heap::OldGenerationAllocationLimitReached()) { |
bak
2008/10/30 11:17:02
This expression is used several times. Please make
|
return NULL; |
} |
@@ -2018,7 +2018,7 @@ |
// Free list allocation failed and there is no next page. Fail if we have |
// hit the old generation size limit that should cause a garbage |
// collection. |
- if (Heap::OldGenerationAllocationLimitReached()) { |
+ if (!Heap::always_allocate() && Heap::OldGenerationAllocationLimitReached()) { |
return NULL; |
} |
@@ -2251,7 +2251,7 @@ |
// Check if we want to force a GC before growing the old space further. |
// If so, fail the allocation. |
- if (Heap::OldGenerationAllocationLimitReached()) { |
+ if (!Heap::always_allocate() && Heap::OldGenerationAllocationLimitReached()) { |
return Failure::RetryAfterGC(requested_size, identity()); |
} |