diff -r 50946251753f -r 4d4ae31dea26 hotspot/src/share/vm/oops/method.hpp --- a/hotspot/src/share/vm/oops/method.hpp Tue May 13 11:25:17 2014 +0200 +++ b/hotspot/src/share/vm/oops/method.hpp Tue May 13 11:32:10 2014 -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();