diff -r 1a3bdc233bda src/share/vm/oops/instanceKlass.cpp --- a/src/share/vm/oops/instanceKlass.cpp Fri Aug 29 08:14:19 2014 -0700 +++ b/src/share/vm/oops/instanceKlass.cpp Tue Sep 09 22:31:42 2014 +0400 @@ -1813,6 +1813,7 @@ // int InstanceKlass::mark_dependent_nmethods(DepChange& changes) { assert_locked_or_safepoint(CodeCache_lock); + int considered = 0; int found = 0; nmethodBucket* b = _dependencies; while (b != NULL) { @@ -1832,7 +1833,13 @@ found++; } b = b->next(); + considered++; } + + if (considered > 0 && changes.is_call_site_change()) { + tty->print_cr("mark_dependent_nmethods: considered = %d, found = %d", considered, found); + } + return found; }