Mercurial > hg > truffle
diff src/share/vm/runtime/handles.inline.hpp @ 12281:4f9a42c33738
8022887: Assertion hit while using class and redefining it with RedefineClasses simultaneously
Summary: Need to refetch each method from InstanceKlass after all safepoints. Removed leaky PreviousVersionInfo code.
Reviewed-by: dcubed, sspitsyn
author | coleenp |
---|---|
date | Fri, 20 Sep 2013 09:30:02 -0400 |
parents | cc6a617fffd2 |
children | de6a9e811145 |
line wrap: on
line diff
--- a/src/share/vm/runtime/handles.inline.hpp Thu Sep 19 08:47:46 2013 +0200 +++ b/src/share/vm/runtime/handles.inline.hpp Fri Sep 20 09:30:02 2013 -0400 @@ -79,6 +79,7 @@ } else { \ _thread = Thread::current(); \ } \ + assert (_thread->is_in_stack((address)this), "not on stack?"); \ _thread->metadata_handles()->push((Metadata*)_value); \ } else { \ _thread = NULL; \ @@ -95,6 +96,7 @@ } else { \ _thread = Thread::current(); \ } \ + assert (_thread->is_in_stack((address)this), "not on stack?"); \ _thread->metadata_handles()->push((Metadata*)_value); \ } else { \ _thread = NULL; \