equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
25 #ifndef SHARE_VM_GC_G1_G1FULLGCSCOPE_HPP |
25 #ifndef SHARE_VM_GC_G1_G1FULLGCSCOPE_HPP |
26 #define SHARE_VM_GC_G1_G1FULLGCSCOPE_HPP |
26 #define SHARE_VM_GC_G1_G1FULLGCSCOPE_HPP |
27 |
27 |
28 #include "gc/g1/g1CollectedHeap.hpp" |
28 #include "gc/g1/g1CollectedHeap.hpp" |
29 #include "gc/g1/g1HeapTransition.hpp" |
29 #include "gc/g1/g1HeapTransition.hpp" |
30 #include "gc/shared/collectorCounters.hpp" |
|
31 #include "gc/shared/gcId.hpp" |
30 #include "gc/shared/gcId.hpp" |
32 #include "gc/shared/gcTrace.hpp" |
31 #include "gc/shared/gcTrace.hpp" |
33 #include "gc/shared/gcTraceTime.hpp" |
32 #include "gc/shared/gcTraceTime.hpp" |
34 #include "gc/shared/gcTimer.hpp" |
33 #include "gc/shared/gcTimer.hpp" |
35 #include "gc/shared/isGCActiveMark.hpp" |
34 #include "gc/shared/isGCActiveMark.hpp" |
49 STWGCTimer _timer; |
48 STWGCTimer _timer; |
50 G1FullGCTracer _tracer; |
49 G1FullGCTracer _tracer; |
51 IsGCActiveMark _active; |
50 IsGCActiveMark _active; |
52 GCTraceCPUTime _cpu_time; |
51 GCTraceCPUTime _cpu_time; |
53 ClearedAllSoftRefs _soft_refs; |
52 ClearedAllSoftRefs _soft_refs; |
54 TraceCollectorStats _collector_stats; |
53 G1MonitoringScope _monitoring_scope; |
55 TraceMemoryManagerStats _memory_stats; |
|
56 G1HeapTransition _heap_transition; |
54 G1HeapTransition _heap_transition; |
57 |
55 |
58 public: |
56 public: |
59 G1FullGCScope(GCMemoryManager* memory_manager, bool explicit_gc, bool clear_soft); |
57 G1FullGCScope(G1MonitoringSupport* monitoring_support, bool explicit_gc, bool clear_soft); |
60 ~G1FullGCScope(); |
58 ~G1FullGCScope(); |
61 |
59 |
62 bool is_explicit_gc(); |
60 bool is_explicit_gc(); |
63 bool should_clear_soft_refs(); |
61 bool should_clear_soft_refs(); |
64 |
62 |