7200229: NPG: possible performance issue exposed by closed/runtime/6559877/Test6559877.java

Reduce the amount of calls to ChunkManager verification code

Reviewed-by: jmasa, coleenp
This commit is contained in:
Mikael Gerdin 2012-11-09 00:38:31 +01:00
parent d81c4b5d7d
commit 14d6692461
3 changed files with 47 additions and 21 deletions

View file

@ -1304,6 +1304,8 @@ void Universe::verify(bool silent, VerifyOption option) {
if (!silent) gclog_or_tty->print("cldg ");
ClassLoaderDataGraph::verify();
#endif
if (!silent) gclog_or_tty->print("metaspace chunks ");
MetaspaceAux::verify_free_chunks();
if (!silent) gclog_or_tty->print("hand ");
JNIHandles::verify();
if (!silent) gclog_or_tty->print("C-heap ");