Integrated: 8354330: [leyden] Crash inside AdapterHandlerEntry::metaspace_pointers_do

Ioi Lam iklam at openjdk.org
Mon Apr 14 19:07:14 UTC 2025


On Sat, 12 Apr 2025 18:40:54 GMT, Ioi Lam <iklam at openjdk.org> wrote:

> 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`.

This pull request has now been integrated.

Changeset: 293edad4
Author:    Ioi Lam <iklam at openjdk.org>
URL:       https://git.openjdk.org/leyden/commit/293edad48b7a9f4336d0349901818a76e307050d
Stats:     17 lines in 3 files changed: 15 ins; 0 del; 2 mod

8354330: [leyden] Crash inside AdapterHandlerEntry::metaspace_pointers_do

Reviewed-by: kvn

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

PR: https://git.openjdk.org/leyden/pull/56


More information about the leyden-dev mailing list