comparison src/share/vm/memory/blockOffsetTable.hpp @ 301:387a62b4be60

6728478: Assertion at parallel promotion from young to old generation Summary: The fix avoids a call to address_for_index() in this particular situation where it is not known if the passed index is in bounds. Reviewed-by: tonyp
author jmasa
date Wed, 20 Aug 2008 23:05:04 -0700
parents a61af66fc99e
children 9ee9cf798b59 2564c620fa42
comparison
equal deleted inserted replaced
300:bfcb639d5bca 301:387a62b4be60
197 197
198 // Return the address indicating the start of the region corresponding to 198 // Return the address indicating the start of the region corresponding to
199 // "index" in "_offset_array". 199 // "index" in "_offset_array".
200 HeapWord* address_for_index(size_t index) const; 200 HeapWord* address_for_index(size_t index) const;
201 201
202 // Return the address "p" incremented by the size of
203 // a region. This method does not align the address
204 // returned to the start of a region. It is a simple
205 // primitive.
206 HeapWord* inc_by_region_size(HeapWord* p) const { return p + N_words; }
207
202 // Shared space support 208 // Shared space support
203 void serialize(SerializeOopClosure* soc, HeapWord* start, HeapWord* end); 209 void serialize(SerializeOopClosure* soc, HeapWord* start, HeapWord* end);
204 }; 210 };
205 211
206 ////////////////////////////////////////////////////////////////////////// 212 //////////////////////////////////////////////////////////////////////////