Chromium Code Reviews| Index: src/heap.cc |
| =================================================================== |
| --- src/heap.cc (revision 6981) |
| +++ src/heap.cc (working copy) |
| @@ -844,8 +844,6 @@ |
| ContextSlotCache::Clear(); |
| DescriptorLookupCache::Clear(); |
| - RuntimeProfiler::MarkCompactPrologue(is_compacting); |
| - |
| CompilationCache::MarkCompactPrologue(); |
| CompletelyClearInstanceofCache(); |
| @@ -1056,14 +1054,6 @@ |
| // Scavenge object reachable from the global contexts list directly. |
| scavenge_visitor.VisitPointer(BitCast<Object**>(&global_contexts_list_)); |
| - // Scavenge objects reachable from the runtime-profiler sampler |
| - // window directly. |
| - Object** sampler_window_address = RuntimeProfiler::SamplerWindowAddress(); |
| - int sampler_window_size = RuntimeProfiler::SamplerWindowSize(); |
| - scavenge_visitor.VisitPointers( |
| - sampler_window_address, |
| - sampler_window_address + sampler_window_size); |
| - |
| new_space_front = DoScavenge(&scavenge_visitor, new_space_front); |
| UpdateNewSpaceReferencesInExternalStringTable( |
| @@ -1080,6 +1070,9 @@ |
| IncrementYoungSurvivorsCounter(static_cast<int>( |
| (PromotedSpaceSize() - survived_watermark) + new_space_.Size())); |
|
Vyacheslav Egorov (Chromium)
2011/03/01 17:18:44
You can move it up and place it near LiveObjectLis
|
| + // Update JSFunction pointers from the runtime profiler. |
| + RuntimeProfiler::UpdateSamplesAfterScavenge(); |
| + |
| LOG(ResourceEvent("scavenge", "end")); |
| gc_state_ = NOT_IN_GC; |