< prev index next >
src/hotspot/share/gc/cms/cmsHeap.hpp
Print this page
rev 47476 : 8183542: Factor out serial GC specific code from GenCollectedHeap into its own subclass
*** 37,54 ****
class StrongRootsScope;
class ThreadClosure;
class WorkGang;
class CMSHeap : public GenCollectedHeap {
public:
CMSHeap(GenCollectorPolicy *policy);
// Returns JNI_OK on success
virtual jint initialize();
- virtual void check_gen_kinds();
-
// Convenience function to be used in situations where the heap type can be
// asserted to be this type.
static CMSHeap* heap();
virtual Name kind() const {
--- 37,56 ----
class StrongRootsScope;
class ThreadClosure;
class WorkGang;
class CMSHeap : public GenCollectedHeap {
+
+ protected:
+ virtual void check_gen_kinds();
+
public:
CMSHeap(GenCollectorPolicy *policy);
// Returns JNI_OK on success
virtual jint initialize();
// Convenience function to be used in situations where the heap type can be
// asserted to be this type.
static CMSHeap* heap();
virtual Name kind() const {
*** 68,81 ****
// Perform a full collection of the heap; intended for use in implementing
// "System.gc". This implies as full a collection as the CollectedHeap
// supports. Caller does not hold the Heap_lock on entry.
void collect(GCCause::Cause cause);
- bool is_in_closed_subset(const void* p) const {
- return is_in_reserved(p);
- }
-
bool card_mark_must_follow_store() const {
return true;
}
void stop();
--- 70,79 ----
< prev index next >