hotspot/src/share/vm/oops/method.cpp
changeset 43605 07baf498d588
parent 42608 14af45789042
child 43607 015723e36620
equal deleted inserted replaced
43604:49949d36e3f9 43605:07baf498d588
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2017, 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.
  2198 
  2198 
  2199 void Method::print_on(outputStream* st) const {
  2199 void Method::print_on(outputStream* st) const {
  2200   ResourceMark rm;
  2200   ResourceMark rm;
  2201   assert(is_method(), "must be method");
  2201   assert(is_method(), "must be method");
  2202   st->print_cr("%s", internal_name());
  2202   st->print_cr("%s", internal_name());
  2203   // get the effect of PrintOopAddress, always, for methods:
       
  2204   st->print_cr(" - this oop:          " INTPTR_FORMAT, p2i(this));
  2203   st->print_cr(" - this oop:          " INTPTR_FORMAT, p2i(this));
  2205   st->print   (" - method holder:     "); method_holder()->print_value_on(st); st->cr();
  2204   st->print   (" - method holder:     "); method_holder()->print_value_on(st); st->cr();
  2206   st->print   (" - constants:         " INTPTR_FORMAT " ", p2i(constants()));
  2205   st->print   (" - constants:         " INTPTR_FORMAT " ", p2i(constants()));
  2207   constants()->print_value_on(st); st->cr();
  2206   constants()->print_value_on(st); st->cr();
  2208   st->print   (" - access:            0x%x  ", access_flags().as_int()); access_flags().print_on(st); st->cr();
  2207   st->print   (" - access:            0x%x  ", access_flags().as_int()); access_flags().print_on(st); st->cr();