8189688: NMT: Report per-class load metadata information

Report per-class loader metadata info via NMT jcmd metadata sub-command

Reviewed-by: stuefe, coleenp
This commit is contained in:
Zhengyu Gu 2017-11-07 09:37:45 -05:00
parent 75d5090c81
commit 92ae7c8cfd
6 changed files with 273 additions and 20 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -230,6 +230,10 @@ void VM_PrintJNI::doit() {
JNIHandles::print_on(_out);
}
void VM_PrintMetadata::doit() {
MetaspaceAux::print_metadata_for_nmt(_out, _scale);
}
VM_FindDeadlocks::~VM_FindDeadlocks() {
if (_deadlocks != NULL) {
DeadlockCycle* cycle = _deadlocks;