--- old/src/share/vm/oops/method.hpp 2014-05-06 15:13:01.000000000 -0700 +++ new/src/share/vm/oops/method.hpp 2014-05-06 15:13:01.000000000 -0700 @@ -371,6 +371,13 @@ } } #endif + int nmethod_age() const { + if (method_counters() == NULL) { + return INT_MAX; + } else { + return method_counters()->nmethod_age(); + } + } int invocation_count(); int backedge_count();