--- a/hotspot/src/share/vm/memory/blockOffsetTable.hpp Thu Aug 21 23:36:31 2008 -0400
+++ b/hotspot/src/share/vm/memory/blockOffsetTable.hpp Thu Aug 21 23:38:19 2008 -0400
@@ -199,6 +199,12 @@
// "index" in "_offset_array".
HeapWord* address_for_index(size_t index) const;
+ // Return the address "p" incremented by the size of
+ // a region. This method does not align the address
+ // returned to the start of a region. It is a simple
+ // primitive.
+ HeapWord* inc_by_region_size(HeapWord* p) const { return p + N_words; }
+
// Shared space support
void serialize(SerializeOopClosure* soc, HeapWord* start, HeapWord* end);
};