Index: src/global-handles.cc |
diff --git a/src/global-handles.cc b/src/global-handles.cc |
index 0207322755d35bf2cf97b40e671f44762d691adb..9ede90852831707059f5a3d174727236a0fb4b81 100644 |
--- a/src/global-handles.cc |
+++ b/src/global-handles.cc |
@@ -372,14 +372,13 @@ void GlobalHandles::IdentifyWeakHandles(WeakSlotCallback f) { |
int post_gc_processing_count = 0; |
-bool GlobalHandles::PostGarbageCollectionProcessing() { |
+void GlobalHandles::PostGarbageCollectionProcessing() { |
// Process weak global handle callbacks. This must be done after the |
// GC is completely done, because the callbacks may invoke arbitrary |
// API functions. |
// At the same time deallocate all DESTROYED nodes. |
ASSERT(Heap::gc_state() == Heap::NOT_IN_GC); |
const int initial_post_gc_processing_count = ++post_gc_processing_count; |
- bool weak_callback_invoked = false; |
Node** p = &head_; |
while (*p != NULL) { |
if ((*p)->PostGarbageCollectionProcessing()) { |
@@ -390,7 +389,6 @@ bool GlobalHandles::PostGarbageCollectionProcessing() { |
// restart the processing). |
break; |
} |
- weak_callback_invoked = true; |
} |
if ((*p)->state_ == Node::DESTROYED) { |
// Delete the link. |
@@ -409,7 +407,6 @@ bool GlobalHandles::PostGarbageCollectionProcessing() { |
if (first_deallocated()) { |
first_deallocated()->set_next(head()); |
} |
- return weak_callback_invoked; |
} |