RFR: 8345646: aotClassLinking/BulkLoaderTest.java fails if VM options are incompatible

Ioi Lam iklam at openjdk.org
Fri Dec 6 06:51:47 UTC 2024


I added logs that look like this to describe what optimizations are enabled in the CDS archive.


[0.305s][info][cds] is_dumping_static_archive           = false
[0.305s][info][cds] is_dumping_dynamic_archive          = true
[0.305s][info][cds] is_dumping_aot_linked_classes       = false
[0.305s][info][cds] is_dumping_heap                     = false
[0.305s][info][cds] is_dumping_invokedynamic            = false
[0.305s][info][cds] is_dumping_full_module_graph        = false
[0.305s][info][cds] is_initing_classes_at_dump_time     = false


If BulkLoaderTest.java finds "is_dumping_aot_linked_classes = false" in the log, that means the current set of VM options are not compatible with `-XX:+AOTClassLinking`. There's no point of continuing with the tests, so we throw a `SkippedException`.

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

Commit messages:
 - 8345646: aotClassLinking/BulkLoaderTest.java fails if VM options are incompatible

Changes: https://git.openjdk.org/jdk/pull/22599/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22599&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8345646
  Stats: 26 lines in 5 files changed: 26 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/22599.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/22599/head:pull/22599

PR: https://git.openjdk.org/jdk/pull/22599


More information about the hotspot-runtime-dev mailing list