提交 67b52945 编写于 作者: S sjohanss

8065227: Report allocation context stats at end of cleanup

Summary: Moved allocation context update from remark to the cleanup phase.
Reviewed-by: mgerdin, jmasa
上级 020dfb6b
......@@ -2175,6 +2175,7 @@ void ConcurrentMark::cleanup() {
// We reclaimed old regions so we should calculate the sizes to make
// sure we update the old gen/space data.
g1h->g1mm()->update_sizes();
g1h->allocation_context_stats().update_after_mark();
g1h->trace_heap_after_concurrent_cycle();
}
......@@ -3346,7 +3347,6 @@ void ConcurrentMark::aggregate_count_data() {
} else {
g1_par_agg_task.work(0);
}
_g1h->allocation_context_stats().update_at_remark();
}
// Clear the per-worker arrays used to store the per-region counting data
......
......@@ -45,7 +45,7 @@ class AllocationContextStats: public StackObj {
public:
inline void clear() { }
inline void update(bool full_gc) { }
inline void update_at_remark() { }
inline void update_after_mark() { }
inline bool available() { return false; }
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册