Mercurial > hg > graal-compiler
diff src/share/vm/classfile/systemDictionary.cpp @ 17459:22c88c127fa4
8029383: assert(counter_changed) failed: failed dependencies, but counter didn't change
Summary: no call to SystemDictionary::notice_modification() when class is defined through Unsafe.defineAnonymousClass() can caused missed dependency change.
Reviewed-by: kvn, twisti
author | roland |
---|---|
date | Fri, 13 Dec 2013 09:25:44 +0100 |
parents | 86e6d691f2e1 |
children | 48314d596a04 |
line wrap: on
line diff
--- a/src/share/vm/classfile/systemDictionary.cpp Thu Dec 12 20:55:36 2013 -0500 +++ b/src/share/vm/classfile/systemDictionary.cpp Fri Dec 13 09:25:44 2013 +0100 @@ -1049,6 +1049,9 @@ add_to_hierarchy(k, CHECK_NULL); // No exception, but can block // But, do not add to system dictionary. + + // compiled code dependencies need to be validated anyway + notice_modification(); } // Rewrite and patch constant pool here.