8284336: CDS SignedJar.java test fails due to archived Reference object

Reviewed-by: alanb, ccheung
This commit is contained in:
Ioi Lam 2022-04-08 17:20:10 +00:00
parent 1bd8975caf
commit 662320a0ec
5 changed files with 28 additions and 3 deletions

View file

@ -2716,7 +2716,9 @@ public abstract class ClassLoader {
* Called by the VM, during -Xshare:dump
*/
private void resetArchivedStates() {
parallelLockMap.clear();
if (parallelLockMap != null) {
parallelLockMap.clear();
}
packages.clear();
package2certs.clear();
classes.clear();