mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8151085: Change G1 concurrent timer and tracer measuring time
Change measuring time for G1 concurrent phases and reporting heap summary Reviewed-by: brutisso, sjohanss
This commit is contained in:
parent
50b0262b13
commit
9f63ca85a7
9 changed files with 63 additions and 142 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -126,7 +126,7 @@ class GCTracer : public ResourceObj {
|
|||
|
||||
protected:
|
||||
GCTracer(GCName name) : _shared_gc_info(name) {}
|
||||
void report_gc_start_impl(GCCause::Cause cause, const Ticks& timestamp);
|
||||
virtual void report_gc_start_impl(GCCause::Cause cause, const Ticks& timestamp);
|
||||
virtual void report_gc_end_impl(const Ticks& timestamp, TimePartitions* time_partitions);
|
||||
|
||||
private:
|
||||
|
@ -297,8 +297,11 @@ class CMSTracer : public OldGCTracer {
|
|||
};
|
||||
|
||||
class G1OldTracer : public OldGCTracer {
|
||||
protected:
|
||||
void report_gc_start_impl(GCCause::Cause cause, const Ticks& timestamp);
|
||||
public:
|
||||
G1OldTracer() : OldGCTracer(G1Old) {}
|
||||
void set_gc_cause(GCCause::Cause cause);
|
||||
};
|
||||
|
||||
#endif // SHARE_VM_GC_SHARED_GCTRACE_HPP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue