src/share/vm/gc_implementation/g1/heapRegionSeq.hpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
hs-gc-g1-assert Cdiff src/share/vm/gc_implementation/g1/heapRegionSeq.hpp
src/share/vm/gc_implementation/g1/heapRegionSeq.hpp
Print this page
*** 90,107 ****
// Map a heap address to a biased region index. Assume that the
// address is valid.
inline uintx addr_to_index_biased(HeapWord* addr) const;
! void increment_length(uint* length) {
! assert(*length < _max_length, "pre-condition");
! *length += 1;
}
! void decrement_length(uint* length) {
! assert(*length > 0, "pre-condition");
! *length -= 1;
}
public:
// Empty contructor, we'll initialize it with the initialize() method.
HeapRegionSeq() { }
--- 90,112 ----
// Map a heap address to a biased region index. Assume that the
// address is valid.
inline uintx addr_to_index_biased(HeapWord* addr) const;
! void increment_allocated_length() {
! assert(_allocated_length < _max_length, "pre-condition");
! _allocated_length++;
}
! void increment_length() {
! assert(_length < _max_length, "pre-condition");
! _length++;
! }
!
! void decrement_length() {
! assert(_length > 0, "pre-condition");
! _length--;
}
public:
// Empty contructor, we'll initialize it with the initialize() method.
HeapRegionSeq() { }
*** 151,165 ****
// As above, but start the iteration from hr and loop around. If hr
// is NULL, we start from the first region in the heap.
void iterate_from(HeapRegion* hr, HeapRegionClosure* blk) const;
// Tag as uncommitted as many regions that are completely free as
! // possible, up to shrink_bytes, from the suffix of the committed
! // sequence. Return a MemRegion that corresponds to the address
! // range of the uncommitted regions. Assume shrink_bytes is page and
! // heap region aligned.
! MemRegion shrink_by(size_t shrink_bytes, uint* num_regions_deleted);
// Do some sanity checking.
void verify_optional() PRODUCT_RETURN;
};
--- 156,168 ----
// As above, but start the iteration from hr and loop around. If hr
// is NULL, we start from the first region in the heap.
void iterate_from(HeapRegion* hr, HeapRegionClosure* blk) const;
// Tag as uncommitted as many regions that are completely free as
! // possible, up to num_regions_to_remove, from the suffix of the committed
! // sequence. Return the actual number of removed regions.
! uint shrink_by(uint num_regions_to_remove);
// Do some sanity checking.
void verify_optional() PRODUCT_RETURN;
};
src/share/vm/gc_implementation/g1/heapRegionSeq.hpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File