36 #include "gc/g1/g1GCPhaseTimes.hpp"
37 #include "gc/g1/g1EvacFailureRegions.inline.hpp"
38 #include "gc/g1/g1EvacInfo.hpp"
39 #include "gc/g1/g1HeapRegionPrinter.hpp"
40 #include "gc/g1/g1MonitoringSupport.hpp"
41 #include "gc/g1/g1ParScanThreadState.inline.hpp"
42 #include "gc/g1/g1Policy.hpp"
43 #include "gc/g1/g1RedirtyCardsQueue.hpp"
44 #include "gc/g1/g1RegionPinCache.inline.hpp"
45 #include "gc/g1/g1RemSet.hpp"
46 #include "gc/g1/g1RootProcessor.hpp"
47 #include "gc/g1/g1Trace.hpp"
48 #include "gc/g1/g1YoungCollector.hpp"
49 #include "gc/g1/g1YoungGCAllocationFailureInjector.hpp"
50 #include "gc/g1/g1YoungGCPostEvacuateTasks.hpp"
51 #include "gc/g1/g1YoungGCPreEvacuateTasks.hpp"
52 #include "gc/shared/concurrentGCBreakpoints.hpp"
53 #include "gc/shared/gcTraceTime.inline.hpp"
54 #include "gc/shared/gcTimer.hpp"
55 #include "gc/shared/gc_globals.hpp"
56 #include "gc/shared/preservedMarks.hpp"
57 #include "gc/shared/referenceProcessor.hpp"
58 #include "gc/shared/weakProcessor.inline.hpp"
59 #include "gc/shared/workerPolicy.hpp"
60 #include "gc/shared/workerThread.hpp"
61 #include "jfr/jfrEvents.hpp"
62 #include "memory/resourceArea.hpp"
63 #include "runtime/threads.hpp"
64 #include "utilities/ticks.hpp"
65
66 // GCTraceTime wrapper that constructs the message according to GC pause type and
67 // GC cause.
68 // The code relies on the fact that GCTraceTimeWrapper stores the string passed
69 // initially as a reference only, so that we can modify it as needed.
70 class G1YoungGCTraceTime {
71 G1YoungCollector* _collector;
72
73 G1GCPauseType _pause_type;
74 GCCause::Cause _pause_cause;
75
76 static const uint MaxYoungGCNameLength = 128;
|
36 #include "gc/g1/g1GCPhaseTimes.hpp"
37 #include "gc/g1/g1EvacFailureRegions.inline.hpp"
38 #include "gc/g1/g1EvacInfo.hpp"
39 #include "gc/g1/g1HeapRegionPrinter.hpp"
40 #include "gc/g1/g1MonitoringSupport.hpp"
41 #include "gc/g1/g1ParScanThreadState.inline.hpp"
42 #include "gc/g1/g1Policy.hpp"
43 #include "gc/g1/g1RedirtyCardsQueue.hpp"
44 #include "gc/g1/g1RegionPinCache.inline.hpp"
45 #include "gc/g1/g1RemSet.hpp"
46 #include "gc/g1/g1RootProcessor.hpp"
47 #include "gc/g1/g1Trace.hpp"
48 #include "gc/g1/g1YoungCollector.hpp"
49 #include "gc/g1/g1YoungGCAllocationFailureInjector.hpp"
50 #include "gc/g1/g1YoungGCPostEvacuateTasks.hpp"
51 #include "gc/g1/g1YoungGCPreEvacuateTasks.hpp"
52 #include "gc/shared/concurrentGCBreakpoints.hpp"
53 #include "gc/shared/gcTraceTime.inline.hpp"
54 #include "gc/shared/gcTimer.hpp"
55 #include "gc/shared/gc_globals.hpp"
56 #include "gc/shared/referenceProcessor.hpp"
57 #include "gc/shared/weakProcessor.inline.hpp"
58 #include "gc/shared/workerPolicy.hpp"
59 #include "gc/shared/workerThread.hpp"
60 #include "jfr/jfrEvents.hpp"
61 #include "memory/resourceArea.hpp"
62 #include "runtime/threads.hpp"
63 #include "utilities/ticks.hpp"
64
65 // GCTraceTime wrapper that constructs the message according to GC pause type and
66 // GC cause.
67 // The code relies on the fact that GCTraceTimeWrapper stores the string passed
68 // initially as a reference only, so that we can modify it as needed.
69 class G1YoungGCTraceTime {
70 G1YoungCollector* _collector;
71
72 G1GCPauseType _pause_type;
73 GCCause::Cause _pause_cause;
74
75 static const uint MaxYoungGCNameLength = 128;
|