comparison src/share/vm/gc_implementation/g1/heapRegion.hpp @ 4020:5e5d4821bf07

7097516: G1: assert(0<= from_card && from_card<HeapRegion::CardsPerRegion) failed: Must be in range. Summary: Introduced a version of is_in_reserved() that looks at _orig_end as opposed to _end. Reviewed-by: tonyp, stefank
author brutisso
date Thu, 20 Oct 2011 10:21:35 +0200
parents 65a8ff39a6da
children c6a6e936dc68
comparison
equal deleted inserted replaced
4014:bf2d2b8b1726 4020:5e5d4821bf07
427 bool startsHumongous() const { return _humongous_type == StartsHumongous; } 427 bool startsHumongous() const { return _humongous_type == StartsHumongous; }
428 bool continuesHumongous() const { return _humongous_type == ContinuesHumongous; } 428 bool continuesHumongous() const { return _humongous_type == ContinuesHumongous; }
429 // For a humongous region, region in which it starts. 429 // For a humongous region, region in which it starts.
430 HeapRegion* humongous_start_region() const { 430 HeapRegion* humongous_start_region() const {
431 return _humongous_start_region; 431 return _humongous_start_region;
432 }
433
434 // Same as Space::is_in_reserved, but will use the original size of the region.
435 // The original size is different only for start humongous regions. They get
436 // their _end set up to be the end of the last continues region of the
437 // corresponding humongous object.
438 bool is_in_reserved_raw(const void* p) const {
439 return _bottom <= p && p < _orig_end;
432 } 440 }
433 441
434 // Makes the current region be a "starts humongous" region, i.e., 442 // Makes the current region be a "starts humongous" region, i.e.,
435 // the first region in a series of one or more contiguous regions 443 // the first region in a series of one or more contiguous regions
436 // that will contain a single "humongous" object. The two parameters 444 // that will contain a single "humongous" object. The two parameters