< prev index next >
src/hotspot/share/gc/serial/serialHeap.hpp
Print this page
rev 47884 : 8191564: Refactor GC related servicability code into GC specific subclasses
@@ -24,14 +24,21 @@
#ifndef SHARE_VM_GC_SERIAL_SERIALHEAP_HPP
#define SHARE_VM_GC_SERIAL_SERIALHEAP_HPP
#include "gc/shared/genCollectedHeap.hpp"
+#include "utilities/growableArray.hpp"
+class GCMemoryManager;
class GenCollectorPolicy;
+class MemoryPool;
class SerialHeap : public GenCollectedHeap {
+private:
+ GCMemoryManager* _minor_mgr;
+ GCMemoryManager* _major_mgr;
+
protected:
virtual void check_gen_kinds();
public:
SerialHeap(GenCollectorPolicy* policy);
@@ -42,17 +49,19 @@
virtual const char* name() const {
return "Serial";
}
+ virtual GrowableArray<GCMemoryManager*> memory_managers();
+ virtual GrowableArray<MemoryPool*> memory_pools();
+
// override
virtual bool is_in_closed_subset(const void* p) const {
return is_in(p);
}
virtual bool card_mark_must_follow_store() const {
return false;
}
-
};
#endif // SHARE_VM_GC_CMS_CMSHEAP_HPP
< prev index next >