src/share/vm/ci/ciMethod.cpp

changeset 2103
3e8fbc61cee8
parent 2047
d2ede61b7a12
child 2138
d5d065957597
     1.1 --- a/src/share/vm/ci/ciMethod.cpp	Mon Aug 23 09:09:36 2010 -0700
     1.2 +++ b/src/share/vm/ci/ciMethod.cpp	Wed Aug 25 05:27:54 2010 -0700
     1.3 @@ -922,12 +922,12 @@
     1.4  
     1.5  // ------------------------------------------------------------------
     1.6  // ciMethod::instructions_size
     1.7 -// This is a rough metric for "fat" methods, compared
     1.8 -// before inlining with InlineSmallCode.
     1.9 -// The CodeBlob::instructions_size accessor includes
    1.10 -// junk like exception handler, stubs, and constant table,
    1.11 -// which are not highly relevant to an inlined method.
    1.12 -// So we use the more specific accessor nmethod::code_size.
    1.13 +//
    1.14 +// This is a rough metric for "fat" methods, compared before inlining
    1.15 +// with InlineSmallCode.  The CodeBlob::code_size accessor includes
    1.16 +// junk like exception handler, stubs, and constant table, which are
    1.17 +// not highly relevant to an inlined method.  So we use the more
    1.18 +// specific accessor nmethod::insts_size.
    1.19  int ciMethod::instructions_size() {
    1.20    GUARDED_VM_ENTRY(
    1.21      nmethod* code = get_methodOop()->code();
    1.22 @@ -939,7 +939,7 @@
    1.23          (TieredCompilation && code->compiler() != NULL && code->compiler()->is_c1())) {
    1.24        return 0;
    1.25      }
    1.26 -    return code->code_end() - code->verified_entry_point();
    1.27 +    return code->insts_end() - code->verified_entry_point();
    1.28    )
    1.29  }
    1.30  

mercurial