Mercurial > hg > truffle
diff src/share/vm/oops/methodOop.hpp @ 977:74a5db69c1fe
6419370: 4/4 new jmethodID code has tiny holes in synchronization
Summary: Fix races in jmethodID cache and JNI itable index cache.
Reviewed-by: ikrylov, acorn
author | dcubed |
---|---|
date | Mon, 21 Sep 2009 09:30:24 -0600 |
parents | 75596850f863 |
children | dd57230ba8fe |
line wrap: on
line diff
--- a/src/share/vm/oops/methodOop.hpp Wed Sep 16 15:42:46 2009 -0400 +++ b/src/share/vm/oops/methodOop.hpp Mon Sep 21 09:30:24 2009 -0600 @@ -555,7 +555,7 @@ // Get this method's jmethodID -- allocate if it doesn't exist jmethodID jmethod_id() { methodHandle this_h(this); - return instanceKlass::jmethod_id_for_impl(method_holder(), this_h); } + return instanceKlass::get_jmethod_id(method_holder(), this_h); } // Lookup the jmethodID for this method. Return NULL if not found. // NOTE that this function can be called from a signal handler