mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8149035: Make the full_gc_dump() calls be recorded as part of the GC
Reviewed-by: jmasa, sjohanss
This commit is contained in:
parent
d2da0cb052
commit
1322b0fe56
9 changed files with 29 additions and 33 deletions
|
@ -156,8 +156,6 @@ bool PSMarkSweep::invoke_no_policy(bool clear_all_softrefs) {
|
|||
old_gen->verify_object_start_array();
|
||||
}
|
||||
|
||||
heap->pre_full_gc_dump(_gc_timer);
|
||||
|
||||
// Filled in below to track the state of the young gen after the collection.
|
||||
bool eden_empty;
|
||||
bool survivors_empty;
|
||||
|
@ -168,6 +166,9 @@ bool PSMarkSweep::invoke_no_policy(bool clear_all_softrefs) {
|
|||
|
||||
GCTraceCPUTime tcpu;
|
||||
GCTraceTime(Info, gc) t("Pause Full", NULL, gc_cause, true);
|
||||
|
||||
heap->pre_full_gc_dump(_gc_timer);
|
||||
|
||||
TraceCollectorStats tcs(counters());
|
||||
TraceMemoryManagerStats tms(true /* Full GC */,gc_cause);
|
||||
|
||||
|
@ -345,6 +346,8 @@ bool PSMarkSweep::invoke_no_policy(bool clear_all_softrefs) {
|
|||
// Track memory usage and detect low memory
|
||||
MemoryService::track_memory_usage();
|
||||
heap->update_counters();
|
||||
|
||||
heap->post_full_gc_dump(_gc_timer);
|
||||
}
|
||||
|
||||
if (VerifyAfterGC && heap->total_collections() >= VerifyGCStartAt) {
|
||||
|
@ -367,8 +370,6 @@ bool PSMarkSweep::invoke_no_policy(bool clear_all_softrefs) {
|
|||
heap->print_heap_after_gc();
|
||||
heap->trace_heap_after_gc(_gc_tracer);
|
||||
|
||||
heap->post_full_gc_dump(_gc_timer);
|
||||
|
||||
#ifdef TRACESPINNING
|
||||
ParallelTaskTerminator::print_termination_counts();
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue