| Index: src/heap.cc
|
| diff --git a/src/heap.cc b/src/heap.cc
|
| index 2b5517418e0b4099e4ea2ec23354dbd733a6b761..088f0430f8c4f657db5fc193bb6cf3e9c1cd3d36 100644
|
| --- a/src/heap.cc
|
| +++ b/src/heap.cc
|
| @@ -390,8 +390,7 @@ void Heap::PerformGarbageCollection(AllocationSpace space,
|
| }
|
| Counters::objs_since_last_young.Set(0);
|
|
|
| - // Process weak handles post gc.
|
| - GlobalHandles::PostGarbageCollectionProcessing();
|
| + PostGarbageCollectionProcessing();
|
|
|
| if (collector == MARK_COMPACTOR) {
|
| // Register the amount of external allocated memory.
|
| @@ -406,6 +405,14 @@ void Heap::PerformGarbageCollection(AllocationSpace space,
|
| }
|
|
|
|
|
| +void Heap::PostGarbageCollectionProcessing() {
|
| + // Process weak handles post gc.
|
| + GlobalHandles::PostGarbageCollectionProcessing();
|
| + // Update flat string readers.
|
| + FlatStringReader::PostGarbageCollectionProcessing();
|
| +}
|
| +
|
| +
|
| void Heap::MarkCompact(GCTracer* tracer) {
|
| gc_state_ = MARK_COMPACT;
|
| mc_count_++;
|
|
|