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

Unified Diff: runtime/vm/heap.cc

Issue 2960063002: Revert "Modifies the debug garbage collector (CollectAllGarbage()) to correctly remove inter-genera… (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « no previous file | runtime/vm/heap_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/heap.cc
diff --git a/runtime/vm/heap.cc b/runtime/vm/heap.cc
index 0a73abf4adb1dac1eeb8773ac7f9c81aff5d75c1..975d0d55c27a38cdea105418f05c13953f0103a2 100644
--- a/runtime/vm/heap.cc
+++ b/runtime/vm/heap.cc
@@ -444,10 +444,7 @@ void Heap::CollectGarbage(Space space) {
void Heap::CollectAllGarbage() {
Thread* thread = Thread::Current();
-
- // New space is evacuated so this GC will collect all dead objects
- // kept alive by a cross-generational pointer.
- new_space_.Evacuate();
+ CollectNewSpaceGarbage(thread, kInvokeApiCallbacks, kFull);
CollectOldSpaceGarbage(thread, kInvokeApiCallbacks, kFull);
}
« no previous file with comments | « no previous file | runtime/vm/heap_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698