openj9 icon indicating copy to clipboard operation
openj9 copied to clipboard

Ensure deserializer class invalidation is complete

Open cjjdespres opened this issue 6 months ago • 2 comments

When a class is redefined, the old, invalidated RAM methods may be held in the "oldClass" or the "newClass", depending on whether or not the class was redefined in-place. To ensure that all the old RAM methods from the redefined class are purged from the JITServer AOT deserializer's caches, and to avoid having to detect the type of redefinition, both the old and new classes are now invalidated.

The incomplete invalidation of classes is not currently a problem, as the only place the deserializer's method cache is queried for a stored RAM method during relocation happens to be reachable only if the defining class has not been invalidated. This change avoids a possible bug that would arise if this were ever not the case.

cjjdespres avatar Aug 28 '24 13:08 cjjdespres