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) { |