coleenp@4037: /* coleenp@4037: * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. coleenp@4037: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. coleenp@4037: * coleenp@4037: * This code is free software; you can redistribute it and/or modify it coleenp@4037: * under the terms of the GNU General Public License version 2 only, as coleenp@4037: * published by the Free Software Foundation. coleenp@4037: * coleenp@4037: * This code is distributed in the hope that it will be useful, but WITHOUT coleenp@4037: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or coleenp@4037: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License coleenp@4037: * version 2 for more details (a copy is included in the LICENSE file that coleenp@4037: * accompanied this code). coleenp@4037: * coleenp@4037: * You should have received a copy of the GNU General Public License version coleenp@4037: * 2 along with this work; if not, write to the Free Software Foundation, coleenp@4037: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. coleenp@4037: * coleenp@4037: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA coleenp@4037: * or visit www.oracle.com if you need additional information or have any coleenp@4037: * questions. coleenp@4037: * coleenp@4037: */ coleenp@4037: coleenp@4037: #include "precompiled.hpp" coleenp@4037: #include "ci/ciObject.hpp" coleenp@4037: #include "ci/ciUtilities.hpp" coleenp@4037: #include "gc_interface/collectedHeap.inline.hpp" coleenp@4037: #include "oops/oop.inline2.hpp" coleenp@4037: coleenp@4037: // ------------------------------------------------------------------ coleenp@4037: // ciMetadata::print coleenp@4037: // coleenp@4037: // Print debugging output about this ciMetadata. coleenp@4037: // coleenp@4037: // Implementation note: dispatch to the virtual print_impl behavior coleenp@4037: // for this ciObject. coleenp@4037: void ciMetadata::print(outputStream* st) { coleenp@4037: st->print("<%s", type_string()); coleenp@4037: GUARDED_VM_ENTRY(print_impl(st);) coleenp@4037: st->print(" ident=%d address=0x%x>", ident(), (address)this); coleenp@4037: } coleenp@4037: coleenp@4037: coleenp@4037: // ------------------------------------------------------------------ coleenp@4037: // ciMetadata::print_oop coleenp@4037: // coleenp@4037: // Print debugging output about the metadata this ciMetadata represents. coleenp@4037: void ciMetadata::print_metadata(outputStream* st) { coleenp@4037: if (!is_loaded()) { coleenp@4037: st->print_cr("UNLOADED"); coleenp@4037: } else { coleenp@4037: GUARDED_VM_ENTRY(_metadata->print_on(st);) coleenp@4037: } coleenp@4037: }