Index: src/heap.cc |
=================================================================== |
--- src/heap.cc (revision 3960) |
+++ src/heap.cc (working copy) |
@@ -371,7 +371,15 @@ |
} |
-void Heap::CollectAllGarbageIfContextDisposed() { |
+void Heap::CollectAllGarbageIfContextDisposed(bool notified) { |
+ // If the request has ever been the result of an explicit |
+ // notification, we ignore non-notified requests. This is a |
+ // temporary solution to let the two ways of achieving GC at |
+ // context disposal time co-exist. |
+ static bool ever_notified = false; |
+ if (notified) ever_notified = true; |
+ if (ever_notified && !notified) return; |
+ |
bakster
2010/02/26 11:46:42
Please change is so context_disposed_pending_ is N
|
// If the garbage collector interface is exposed through the global |
// gc() function, we avoid being clever about forcing GCs when |
// contexts are disposed and leave it to the embedder to make |