hotspot/src/share/vm/utilities/debug.cpp
changeset 35900 d64cf9290fc4
parent 35061 be6025ebffea
child 35913 928548a43408
equal deleted inserted replaced
35899:0dbc821628fc 35900:d64cf9290fc4
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   459 
   459 
   460 
   460 
   461 extern "C" void dump_vtable(address p) {
   461 extern "C" void dump_vtable(address p) {
   462   Command c("dump_vtable");
   462   Command c("dump_vtable");
   463   Klass* k = (Klass*)p;
   463   Klass* k = (Klass*)p;
   464   InstanceKlass::cast(k)->vtable()->print();
   464   k->vtable()->print();
   465 }
   465 }
   466 
   466 
   467 
   467 
   468 extern "C" void nm(intptr_t p) {
   468 extern "C" void nm(intptr_t p) {
   469   // Actually we look through all CodeBlobs (the nm name has been kept for backwards compatability)
   469   // Actually we look through all CodeBlobs (the nm name has been kept for backwards compatability)