src/share/vm/ci/ciMethod.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File
*** old/src/share/vm/ci/ciMethod.cpp	Wed May  7 00:02:24 2014
--- new/src/share/vm/ci/ciMethod.cpp	Wed May  7 00:02:24 2014

*** 127,136 **** --- 127,137 ---- _holder = env->get_instance_klass(h_m()->method_holder()); ciSymbol* sig_symbol = env->get_symbol(h_m()->signature()); constantPoolHandle cpool = h_m()->constants(); _signature = new (env->arena()) ciSignature(_holder, cpool, sig_symbol); _method_data = NULL; + _nmethod_age = h_m()->nmethod_age(); // Take a snapshot of these values, so they will be commensurate with the MDO. if (ProfileInterpreter || TieredCompilation) { int invcnt = h_m()->interpreter_invocation_count(); // if the value overflowed report it as max int _interpreter_invocation_count = invcnt < 0 ? max_jint : invcnt ;
*** 1274,1283 **** --- 1275,1292 ---- } return false; } // ------------------------------------------------------------------ + // ciMethod::profile_aging + // + // Should the method be compiled with an age counter? + bool ciMethod::profile_aging() const { + return UseCodeAging && (!MethodCounters::is_nmethod_hot(nmethod_age()) && + !MethodCounters::is_nmethod_age_unset(nmethod_age())); + } + // ------------------------------------------------------------------ // ciMethod::print_codes // // Print the bytecodes for this method. void ciMethod::print_codes_on(outputStream* st) { check_is_loaded();

src/share/vm/ci/ciMethod.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File