< prev index next >

src/hotspot/share/gc/g1/g1BlockOffsetTable.hpp

Print this page
rev 56811 : imported patch 8189737-heapregion-remove-space-inheritance

*** 31,48 **** #include "memory/virtualspace.hpp" #include "utilities/globalDefinitions.hpp" // Forward declarations class G1BlockOffsetTable; ! class G1ContiguousSpace; // This implementation of "G1BlockOffsetTable" divides the covered region // into "N"-word subregions (where "N" = 2^"LogN". An array with an entry // for each such subregion indicates how far back one must go to find the // start of the chunk that includes the first word of the subregion. // ! // Each G1BlockOffsetTablePart is owned by a G1ContiguousSpace. class G1BlockOffsetTable: public CHeapObj<mtGC> { friend class G1BlockOffsetTablePart; friend class VMStructs; --- 31,48 ---- #include "memory/virtualspace.hpp" #include "utilities/globalDefinitions.hpp" // Forward declarations class G1BlockOffsetTable; ! class HeapRegion; // This implementation of "G1BlockOffsetTable" divides the covered region // into "N"-word subregions (where "N" = 2^"LogN". An array with an entry // for each such subregion indicates how far back one must go to find the // start of the chunk that includes the first word of the subregion. // ! // Each G1BlockOffsetTablePart is owned by a HeapRegion. class G1BlockOffsetTable: public CHeapObj<mtGC> { friend class G1BlockOffsetTablePart; friend class VMStructs;
*** 118,129 **** debug_only(bool _object_can_span;) // This is the global BlockOffsetTable. G1BlockOffsetTable* _bot; ! // The space that owns this subregion. ! G1ContiguousSpace* _space; // Sets the entries // corresponding to the cards starting at "start" and ending at "end" // to point back to the card before "start": the interval [start, end) // is right-open. --- 118,129 ---- debug_only(bool _object_can_span;) // This is the global BlockOffsetTable. G1BlockOffsetTable* _bot; ! // The region that owns this subregion. ! HeapRegion* _hr; // Sets the entries // corresponding to the cards starting at "start" and ending at "end" // to point back to the card before "start": the interval [start, end) // is right-open.
*** 181,191 **** void check_all_cards(size_t left_card, size_t right_card) const; public: // The elements of the array are initialized to zero. ! G1BlockOffsetTablePart(G1BlockOffsetTable* array, G1ContiguousSpace* gsp); void verify() const; // Returns the address of the start of the block containing "addr", or // else "null" if it is covered by no block. (May have side effects, --- 181,191 ---- void check_all_cards(size_t left_card, size_t right_card) const; public: // The elements of the array are initialized to zero. ! G1BlockOffsetTablePart(G1BlockOffsetTable* array, HeapRegion* hr); void verify() const; // Returns the address of the start of the block containing "addr", or // else "null" if it is covered by no block. (May have side effects,
< prev index next >