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

Unified Diff: src/heap.cc

Issue 174141: Do not finish GlobalHandles::PostGarbageCollectionProcessing if weak callback... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 4 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/heap.cc
===================================================================
--- src/heap.cc (revision 2724)
+++ src/heap.cc (working copy)
@@ -485,7 +485,9 @@
void Heap::PostGarbageCollectionProcessing() {
// Process weak handles post gc.
+ bool old_value = allow_allocation(true);
GlobalHandles::PostGarbageCollectionProcessing();
+ if (!old_value) allow_allocation(false);
Mads Ager (chromium) 2009/08/21 05:58:16 Just call allow_allocation with old_value?
// Update flat string readers.
FlatStringReader::PostGarbageCollectionProcessing();
}
« src/global-handles.cc ('K') | « src/global-handles.cc ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698