< prev index next >

src/share/vm/gc_implementation/g1/heapRegion.hpp

Print this page
rev 8912 : Add support for G1HeapRegionTypeChangeEvent

*** 33,42 **** --- 33,43 ---- #include "gc_implementation/shared/ageTable.hpp" #include "gc_implementation/shared/spaceDecorator.hpp" #include "memory/space.inline.hpp" #include "memory/watermark.hpp" #include "utilities/macros.hpp" + #include "gc_implementation/g1/g1HeapRegionTraceType.hpp" // A HeapRegion is the smallest piece of a G1CollectedHeap that // can be collected independently. // NOTE: Although a HeapRegion is a Space, its
*** 209,218 **** --- 210,221 ---- // issues.) HeapRegionRemSet* _rem_set; G1BlockOffsetArrayContigSpace* offsets() { return &_offsets; } + void report_region_type_change(G1HeapRegionTraceType::Type to); + protected: // The index of this region in the heap region sequence. uint _hrm_index; AllocationContext_t _allocation_context;
*** 403,412 **** --- 406,416 ---- _prev_marked_bytes = _next_marked_bytes = 0; } const char* get_type_str() const { return _type.get_str(); } const char* get_short_type_str() const { return _type.get_short_str(); } + G1HeapRegionTraceType::Type get_trace_type() { return _type.get_trace_type(); } bool is_free() const { return _type.is_free(); } bool is_young() const { return _type.is_young(); } bool is_eden() const { return _type.is_eden(); }
*** 665,681 **** } else { assert( _age_index == -1, "pre-condition" ); } } ! void set_free() { _type.set_free(); } ! void set_eden() { _type.set_eden(); } ! void set_eden_pre_gc() { _type.set_eden_pre_gc(); } ! void set_survivor() { _type.set_survivor(); } ! void set_old() { _type.set_old(); } // Determine if an object has been allocated since the last // mark performed by the collector. This returns true iff the object // is within the unmarked area of the region. bool obj_allocated_since_prev_marking(oop obj) const { --- 669,685 ---- } else { assert( _age_index == -1, "pre-condition" ); } } ! void set_free(); ! void set_eden(); ! void set_eden_pre_gc(); ! void set_survivor(); ! void set_old(); // Determine if an object has been allocated since the last // mark performed by the collector. This returns true iff the object // is within the unmarked area of the region. bool obj_allocated_since_prev_marking(oop obj) const {
< prev index next >