< prev index next >
src/share/vm/gc/g1/g1CollectedHeap.hpp
Print this page
*** 1176,1186 ****
void remove_from_old_sets(const HeapRegionSetCount& old_regions_removed, const HeapRegionSetCount& humongous_regions_removed);
void prepend_to_freelist(FreeRegionList* list);
void decrement_summary_bytes(size_t bytes);
- // Returns "TRUE" iff "p" points into the committed areas of the heap.
virtual bool is_in(const void* p) const;
#ifdef ASSERT
// Returns whether p is in one of the available areas of the heap. Slow but
// extensive version.
bool is_in_exact(const void* p) const;
--- 1176,1185 ----
*** 1241,1250 ****
--- 1240,1252 ----
void heap_region_iterate(HeapRegionClosure* blk) const;
// Return the region with the given index. It assumes the index is valid.
inline HeapRegion* region_at(uint index) const;
+ // Return the next region (by index) if that region is also humongous, NULL otherwise.
+ inline HeapRegion* next_humongous_region(HeapRegion* hr) const;
+
// Calculate the region index of the given address. Given address must be
// within the heap.
inline uint addr_to_region(HeapWord* addr) const;
inline HeapWord* bottom_addr_for_region(uint index) const;
*** 1278,1292 ****
HeapRegion* next_compaction_region(const HeapRegion* from) const;
// Returns the HeapRegion that contains addr. addr must not be NULL.
template <class T>
- inline HeapRegion* heap_region_containing_raw(const T addr) const;
-
- // Returns the HeapRegion that contains addr. addr must not be NULL.
- // If addr is within a humongous continues region, it returns its humongous start region.
- template <class T>
inline HeapRegion* heap_region_containing(const T addr) const;
// A CollectedHeap is divided into a dense sequence of "blocks"; that is,
// each address in the (reserved) heap is a member of exactly
// one block. The defining characteristic of a block is that it is
--- 1280,1289 ----
< prev index next >