< prev index next >
src/hotspot/share/gc/parallel/psOldGen.hpp
Print this page
*** 43,53 ****
--- 43,55 ----
protected:
MemRegion _reserved; // Used for simple containment tests
PSVirtualSpace* _virtual_space; // Controls mapping and unmapping of virtual mem
ObjectStartArray _start_array; // Keeps track of where objects start in a 512b block
MutableSpace* _object_space; // Where all the objects live
+ #if INCLUDE_SERIALGC
PSMarkSweepDecorator* _object_mark_sweep; // The mark sweep view of _object_space
+ #endif
const char* const _name; // Name of this generation.
// Performance Counters
PSGenerationCounters* _gen_counters;
SpaceCounters* _space_counters;
*** 148,168 ****
--- 150,174 ----
bool is_in_reserved(const void* p) const {
return reserved().contains(p);
}
MutableSpace* object_space() const { return _object_space; }
+ #if INCLUDE_SERIALGC
PSMarkSweepDecorator* object_mark_sweep() const { return _object_mark_sweep; }
+ #endif
ObjectStartArray* start_array() { return &_start_array; }
PSVirtualSpace* virtual_space() const { return _virtual_space;}
// Has the generation been successfully allocated?
bool is_allocated();
+ #if INCLUDE_SERIALGC
// MarkSweep methods
virtual void precompact();
void adjust_pointers();
void compact();
+ #endif
// Size info
size_t capacity_in_bytes() const { return object_space()->capacity_in_bytes(); }
size_t used_in_bytes() const { return object_space()->used_in_bytes(); }
size_t free_in_bytes() const { return object_space()->free_in_bytes(); }
< prev index next >