changeset 39400 | daf3af35d6bf |
parent 39289 | a17f754703e5 |
child 39713 | 29ece76096cb |
--- a/hotspot/src/share/vm/oops/instanceKlass.cpp Mon Jun 20 17:38:14 2016 +0000 +++ b/hotspot/src/share/vm/oops/instanceKlass.cpp Mon Jun 20 22:02:20 2016 -0700 @@ -1961,6 +1961,11 @@ m->remove_unshareable_info(); } + // cached_class_file might be pointing to a malloc'ed buffer allocated by + // event-based tracing code at CDS dump time. It's not usable at runtime + // so let's clear it. + set_cached_class_file(NULL); + // do array classes also. array_klasses_do(remove_unshareable_in_class); }