mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8076110: VM crash when class is redefined with Instrumentation.redefineClasses
Reviewed-by: coleenp, sspitsyn
This commit is contained in:
parent
a6a13b5344
commit
606468abc4
3 changed files with 146 additions and 3 deletions
|
@ -381,6 +381,9 @@ void InstanceKlass::deallocate_contents(ClassLoaderData* loader_data) {
|
|||
if (!constants()->is_shared()) {
|
||||
MetadataFactory::free_metadata(loader_data, constants());
|
||||
}
|
||||
// Delete any cached resolution errors for the constant pool
|
||||
SystemDictionary::delete_resolution_error(constants());
|
||||
|
||||
set_constants(NULL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue