[lworld] RFR: 8329108: [lworld] valhalla/valuetypes/ObjectMethods.java fails with default CDS archive
Matias Saavedra Silva
matsaave at openjdk.org
Wed Jul 24 21:19:48 UTC 2024
When this test was run after `java -Xshare:dump --enable-preview`, the test would crash due to a null signature calling convention. This occurred because `has_scalarized_args`, a flag whose value should be determined at runtime when regenerating the method adapter, was stored in ConstMethod and then archived. The resulting mismatch in a subsequent run meant the wrong `sig_cc` would be used. This change moves the flags in question into `method.hpp` and avoids dumping them so they can be properly regenerated at runtime. The test was verified locally and the changes were further verified with tier 1-5 tests.
-------------
Commit messages:
- Moved static method
- 8329108: [lworld] valhalla/valuetypes/ObjectMethods.java fails with default CDS archive
Changes: https://git.openjdk.org/valhalla/pull/1180/files
Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=1180&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8329108
Stats: 19 lines in 7 files changed: 6 ins; 11 del; 2 mod
Patch: https://git.openjdk.org/valhalla/pull/1180.diff
Fetch: git fetch https://git.openjdk.org/valhalla.git pull/1180/head:pull/1180
PR: https://git.openjdk.org/valhalla/pull/1180
More information about the valhalla-dev
mailing list