RFR: 8354330: [leyden] Crash inside AdapterHandlerEntry::metaspace_pointers_do
Ioi Lam
iklam at openjdk.org
Sat Apr 12 18:45:27 UTC 2025
The crash happens when a `SpeculativeTrapData` points to a `Method` that belongs to an excluded class. In this particular case, the `Method` is `java.lang.invoke.LambdaForm$MH/0x800000034.invoke(java.lang.Object, java.lang.Object)` and the holder class (a hidden class) is excluded from the binary AOT config file.
Te fix is to call `MethodData::clean_method_data(true)` on all archived `MethodData`. I had to adjust the rank of `MethodData::extra_data_lock()` to be lower than `DumpTimeTable_lock`.
-------------
Commit messages:
- clean up
- clean up
- investigation
Changes: https://git.openjdk.org/leyden/pull/56/files
Webrev: https://webrevs.openjdk.org/?repo=leyden&pr=56&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8354330
Stats: 17 lines in 3 files changed: 15 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/leyden/pull/56.diff
Fetch: git fetch https://git.openjdk.org/leyden.git pull/56/head:pull/56
PR: https://git.openjdk.org/leyden/pull/56
More information about the leyden-dev
mailing list