equal
deleted
inserted
replaced
25 #ifndef SHARE_VM_SERVICES_MEMORYSERVICE_HPP |
25 #ifndef SHARE_VM_SERVICES_MEMORYSERVICE_HPP |
26 #define SHARE_VM_SERVICES_MEMORYSERVICE_HPP |
26 #define SHARE_VM_SERVICES_MEMORYSERVICE_HPP |
27 |
27 |
28 #include "gc/shared/gcCause.hpp" |
28 #include "gc/shared/gcCause.hpp" |
29 #include "gc/shared/generation.hpp" |
29 #include "gc/shared/generation.hpp" |
|
30 #include "logging/log.hpp" |
30 #include "memory/allocation.hpp" |
31 #include "memory/allocation.hpp" |
31 #include "runtime/handles.hpp" |
32 #include "runtime/handles.hpp" |
32 #include "services/memoryUsage.hpp" |
33 #include "services/memoryUsage.hpp" |
33 |
34 |
34 // Forward declaration |
35 // Forward declaration |
162 bool recordGCEndTime, bool countCollection, |
163 bool recordGCEndTime, bool countCollection, |
163 GCCause::Cause cause); |
164 GCCause::Cause cause); |
164 |
165 |
165 static void oops_do(OopClosure* f); |
166 static void oops_do(OopClosure* f); |
166 |
167 |
167 static bool get_verbose() { return PrintGC; } |
168 static bool get_verbose() { return log_is_enabled(Info, gc); } |
168 static bool set_verbose(bool verbose); |
169 static bool set_verbose(bool verbose); |
169 |
170 |
170 // Create an instance of java/lang/management/MemoryUsage |
171 // Create an instance of java/lang/management/MemoryUsage |
171 static Handle create_MemoryUsage_obj(MemoryUsage usage, TRAPS); |
172 static Handle create_MemoryUsage_obj(MemoryUsage usage, TRAPS); |
172 |
173 |