src/share/vm/gc_implementation/parallelScavenge/psMarkSweep.cpp

changeset 4176
4202510ee0fe
parent 4098
8966c2d65d96
child 4298
d0aa87f04bd5
equal deleted inserted replaced
4175:dd2b66d09ccd 4176:4202510ee0fe
137 heap->ensure_parsability(true); // retire TLABs 137 heap->ensure_parsability(true); // retire TLABs
138 138
139 if (VerifyBeforeGC && heap->total_collections() >= VerifyGCStartAt) { 139 if (VerifyBeforeGC && heap->total_collections() >= VerifyGCStartAt) {
140 HandleMark hm; // Discard invalid handles created during verification 140 HandleMark hm; // Discard invalid handles created during verification
141 gclog_or_tty->print(" VerifyBeforeGC:"); 141 gclog_or_tty->print(" VerifyBeforeGC:");
142 Universe::verify(true); 142 Universe::verify();
143 } 143 }
144 144
145 // Verify object start arrays 145 // Verify object start arrays
146 if (VerifyObjectStartArray && 146 if (VerifyObjectStartArray &&
147 VerifyBeforeGC) { 147 VerifyBeforeGC) {
339 } 339 }
340 340
341 if (VerifyAfterGC && heap->total_collections() >= VerifyGCStartAt) { 341 if (VerifyAfterGC && heap->total_collections() >= VerifyGCStartAt) {
342 HandleMark hm; // Discard invalid handles created during verification 342 HandleMark hm; // Discard invalid handles created during verification
343 gclog_or_tty->print(" VerifyAfterGC:"); 343 gclog_or_tty->print(" VerifyAfterGC:");
344 Universe::verify(false); 344 Universe::verify();
345 } 345 }
346 346
347 // Re-verify object start arrays 347 // Re-verify object start arrays
348 if (VerifyObjectStartArray && 348 if (VerifyObjectStartArray &&
349 VerifyAfterGC) { 349 VerifyAfterGC) {

mercurial