RFR: 8275318: loaded_classes_do may see ArrayKlass before InstanceKlass is loaded

Ioi Lam iklam at openjdk.java.net
Thu Jan 13 21:03:41 UTC 2022


When a shared class K is restored, all of its archived array classes K[], K[][], etc, are also restored as well. Such restored classes are placed in the ClassLoaderData::_klasses list.

For safety, ClassLoaderData::loaded_classes_do() should skip all these classes until K is marked as "loaded".

-------------

Commit messages:
 - 8275318: loaded_classes_do may see ArrayKlass before InstanceKlass is loaded

Changes: https://git.openjdk.java.net/jdk/pull/7069/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=7069&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8275318
  Stats: 23 lines in 1 file changed: 15 ins; 1 del; 7 mod
  Patch: https://git.openjdk.java.net/jdk/pull/7069.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/7069/head:pull/7069

PR: https://git.openjdk.java.net/jdk/pull/7069


More information about the hotspot-runtime-dev mailing list