# HG changeset patch # User Tom Rodriguez # Date 1406335080 25200 # Node ID fcb186b03c8b4d1b0ce44b2bd36583d22fc2f017 # Parent 9e2317b1092b5e5fb4473ea0fb2a8a298168bdca loading of anonymous classes must update SystemDictionary::_number_of_modifications diff -r 9e2317b1092b -r fcb186b03c8b src/share/vm/classfile/systemDictionary.cpp --- a/src/share/vm/classfile/systemDictionary.cpp Fri Jul 25 08:35:34 2014 -0700 +++ b/src/share/vm/classfile/systemDictionary.cpp Fri Jul 25 17:38:00 2014 -0700 @@ -1059,7 +1059,9 @@ // deoptimizations. add_to_hierarchy(k, CHECK_NULL); // No exception, but can block - // But, do not add to system dictionary. + // But, do not add to system dictionary. That normally takes + // care of updating _number_of_modifications so do it here. + notice_modification(); } // Rewrite and patch constant pool here.