8159666: Better CDS support for Event-based tracing

Reviewed-by: jiangli, mgronlun
This commit is contained in:
Ioi Lam 2016-06-20 22:02:20 -07:00
parent a52192d206
commit 79377a1bf1
3 changed files with 11 additions and 1 deletions

View file

@ -1961,6 +1961,11 @@ void InstanceKlass::remove_unshareable_info() {
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);
}