comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp @ 353:9bb2c10ac07b

6723570: G1: assertion failure: p == current_top or oop(p)->is_oop(),"p is not a block start" (revisited!) Summary: Fixed the incorrect assigment to G1OffsetTableContigSpace::_gc_time_stamp. Also added a little more paranoia to operations on a global timestamp. Reviewed-by: tonyp
author iveresov
date Thu, 10 Jul 2008 09:29:54 -0700
parents e0c09f7ec5c4
children c0f8f7790199
comparison
equal deleted inserted replaced
352:e0c09f7ec5c4 353:9bb2c10ac07b
2277 ResourceMark rm; 2277 ResourceMark rm;
2278 assert(SafepointSynchronize::is_at_safepoint(), "should be at safepoint"); 2278 assert(SafepointSynchronize::is_at_safepoint(), "should be at safepoint");
2279 assert(Thread::current() == VMThread::vm_thread(), "should be in vm thread"); 2279 assert(Thread::current() == VMThread::vm_thread(), "should be in vm thread");
2280 guarantee(!is_gc_active(), "collection is not reentrant"); 2280 guarantee(!is_gc_active(), "collection is not reentrant");
2281 assert(regions_accounted_for(), "Region leakage!"); 2281 assert(regions_accounted_for(), "Region leakage!");
2282 ++_gc_time_stamp; 2282
2283 increment_gc_time_stamp();
2283 2284
2284 if (g1_policy()->in_young_gc_mode()) { 2285 if (g1_policy()->in_young_gc_mode()) {
2285 assert(check_young_list_well_formed(), 2286 assert(check_young_list_well_formed(),
2286 "young list should be well formed"); 2287 "young list should be well formed");
2287 } 2288 }