Chromium Code Reviews| Index: src/heap.cc |
| =================================================================== |
| --- src/heap.cc (revision 6377) |
| +++ src/heap.cc (working copy) |
| @@ -35,6 +35,7 @@ |
| #include "debug.h" |
| #include "heap-profiler.h" |
| #include "global-handles.h" |
| +#include "liveobjectlist-inl.h" |
|
Søren Thygesen Gjesse
2011/01/19 08:41:33
This suggests that the actual lol implementation l
marklam
2011/01/19 10:47:37
Done. It's at http://codereview.chromium.org/6335
|
| #include "mark-compact.h" |
| #include "natives.h" |
| #include "objects-visiting.h" |
| @@ -400,6 +401,8 @@ |
| #if defined(DEBUG) || defined(ENABLE_LOGGING_AND_PROFILING) |
| ReportStatisticsBeforeGC(); |
| #endif |
| + |
| + LiveObjectList::GCPrologue(); |
| } |
| intptr_t Heap::SizeOfObjects() { |
| @@ -412,6 +415,7 @@ |
| } |
| void Heap::GarbageCollectionEpilogue() { |
| + LiveObjectList::GCEpilogue(); |
| #ifdef DEBUG |
| allow_allocation(true); |
| ZapFromSpace(); |
| @@ -1066,6 +1070,8 @@ |
| UpdateNewSpaceReferencesInExternalStringTable( |
| &UpdateNewSpaceReferenceInExternalStringTableEntry); |
| + LiveObjectList::UpdateReferencesForScavengeGC(); |
| + |
| ASSERT(new_space_front == new_space_.top()); |
| // Set age mark. |