Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Unified Diff: src/spaces.cc

Issue 8700: As discussed on the phone, I'd like your thoughts on the... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 12 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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());
}

Powered by Google App Engine
This is Rietveld 408576698