hotspot/src/share/vm/memory/blockOffsetTable.hpp
changeset 1389 854d473cbd9c
parent 1374 4c24294029a9
parent 1063 f666dc7f514d
child 1412 2bb3fe3e00ea
--- 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);
 };