43 bool _explicit_gc; |
43 bool _explicit_gc; |
44 G1CollectedHeap* _g1h; |
44 G1CollectedHeap* _g1h; |
45 GCIdMark _gc_id; |
45 GCIdMark _gc_id; |
46 SvcGCMarker _svc_marker; |
46 SvcGCMarker _svc_marker; |
47 STWGCTimer _timer; |
47 STWGCTimer _timer; |
48 SerialOldTracer _tracer; |
48 G1FullGCTracer _tracer; |
49 IsGCActiveMark _active; |
49 IsGCActiveMark _active; |
50 GCTraceCPUTime _cpu_time; |
50 GCTraceCPUTime _cpu_time; |
51 ClearedAllSoftRefs _soft_refs; |
51 ClearedAllSoftRefs _soft_refs; |
52 TraceCollectorStats _collector_stats; |
52 TraceCollectorStats _collector_stats; |
53 TraceMemoryManagerStats _memory_stats; |
53 TraceMemoryManagerStats _memory_stats; |
54 G1HeapTransition _heap_transition; |
54 G1HeapTransition _heap_transition; |
55 |
55 |
56 // Singleton instance. |
|
57 static G1FullGCScope* _instance; |
|
58 public: |
56 public: |
59 static G1FullGCScope* instance(); |
|
60 |
|
61 G1FullGCScope(bool explicit_gc, bool clear_soft); |
57 G1FullGCScope(bool explicit_gc, bool clear_soft); |
62 ~G1FullGCScope(); |
58 ~G1FullGCScope(); |
63 |
59 |
64 bool is_explicit_gc(); |
60 bool is_explicit_gc(); |
65 bool should_clear_soft_refs(); |
61 bool should_clear_soft_refs(); |
66 |
62 |
67 STWGCTimer* timer(); |
63 STWGCTimer* timer(); |
68 SerialOldTracer* tracer(); |
64 G1FullGCTracer* tracer(); |
69 G1HeapTransition* heap_transition(); |
65 G1HeapTransition* heap_transition(); |
70 }; |
66 }; |
71 |
67 |
72 #endif //SHARE_VM_GC_G1_G1FULLGCSCOPE_HPP |
68 #endif //SHARE_VM_GC_G1_G1FULLGCSCOPE_HPP |