src/hotspot/share/gc/g1/g1FullGCScope.hpp
changeset 48168 cb5d2d4453d0
parent 47885 5caa1d5f74c1
child 51497 ec014e5694ec
equal deleted inserted replaced
48167:f04a848c6f00 48168:cb5d2d4453d0
    35 #include "gc/shared/isGCActiveMark.hpp"
    35 #include "gc/shared/isGCActiveMark.hpp"
    36 #include "gc/shared/vmGCOperations.hpp"
    36 #include "gc/shared/vmGCOperations.hpp"
    37 #include "memory/allocation.hpp"
    37 #include "memory/allocation.hpp"
    38 #include "services/memoryService.hpp"
    38 #include "services/memoryService.hpp"
    39 
    39 
       
    40 class GCMemoryManager;
       
    41 
    40 // Class used to group scoped objects used in the Full GC together.
    42 // Class used to group scoped objects used in the Full GC together.
    41 class G1FullGCScope : public StackObj {
    43 class G1FullGCScope : public StackObj {
    42   ResourceMark            _rm;
    44   ResourceMark            _rm;
    43   bool                    _explicit_gc;
    45   bool                    _explicit_gc;
    44   G1CollectedHeap*        _g1h;
    46   G1CollectedHeap*        _g1h;
    52   TraceCollectorStats     _collector_stats;
    54   TraceCollectorStats     _collector_stats;
    53   TraceMemoryManagerStats _memory_stats;
    55   TraceMemoryManagerStats _memory_stats;
    54   G1HeapTransition        _heap_transition;
    56   G1HeapTransition        _heap_transition;
    55 
    57 
    56 public:
    58 public:
    57   G1FullGCScope(bool explicit_gc, bool clear_soft);
    59   G1FullGCScope(GCMemoryManager* memory_manager, bool explicit_gc, bool clear_soft);
    58   ~G1FullGCScope();
    60   ~G1FullGCScope();
    59 
    61 
    60   bool is_explicit_gc();
    62   bool is_explicit_gc();
    61   bool should_clear_soft_refs();
    63   bool should_clear_soft_refs();
    62 
    64