src/share/vm/oops/methodKlass.cpp

changeset 1100
c89f86385056
parent 435
a61af66fc99e
child 1145
e5b0439ef4ae
     1.1 --- a/src/share/vm/oops/methodKlass.cpp	Thu Mar 19 09:13:24 2009 -0700
     1.2 +++ b/src/share/vm/oops/methodKlass.cpp	Fri Mar 20 23:19:36 2009 -0700
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright 1997-2007 Sun Microsystems, Inc.  All Rights Reserved.
     1.6 + * Copyright 1997-2009 Sun Microsystems, Inc.  All Rights Reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -247,9 +247,14 @@
    1.11    st->print_cr(" - size of params:    %d",   m->size_of_parameters());
    1.12    st->print_cr(" - method size:       %d",   m->method_size());
    1.13    st->print_cr(" - vtable index:      %d",   m->_vtable_index);
    1.14 +  st->print_cr(" - i2i entry:         " INTPTR_FORMAT, m->interpreter_entry());
    1.15 +  st->print_cr(" - adapter:           " INTPTR_FORMAT, m->adapter());
    1.16 +  st->print_cr(" - compiled entry     " INTPTR_FORMAT, m->from_compiled_entry());
    1.17    st->print_cr(" - code size:         %d",   m->code_size());
    1.18 -  st->print_cr(" - code start:        " INTPTR_FORMAT, m->code_base());
    1.19 -  st->print_cr(" - code end (excl):   " INTPTR_FORMAT, m->code_base() + m->code_size());
    1.20 +  if (m->code_size() != 0) {
    1.21 +    st->print_cr(" - code start:        " INTPTR_FORMAT, m->code_base());
    1.22 +    st->print_cr(" - code end (excl):   " INTPTR_FORMAT, m->code_base() + m->code_size());
    1.23 +  }
    1.24    if (m->method_data() != NULL) {
    1.25      st->print_cr(" - method data:       " INTPTR_FORMAT, (address)m->method_data());
    1.26    }
    1.27 @@ -293,6 +298,10 @@
    1.28      m->code()->print_value_on(st);
    1.29      st->cr();
    1.30    }
    1.31 +  if (m->is_native()) {
    1.32 +    st->print_cr(" - native function:   " INTPTR_FORMAT, m->native_function());
    1.33 +    st->print_cr(" - signature handler: " INTPTR_FORMAT, m->signature_handler());
    1.34 +  }
    1.35  }
    1.36  
    1.37  

mercurial