RFR: 8370344: Arbitrary Java frames on stack during scoped access [v6]

Jorn Vernee jvernee at openjdk.org
Wed Nov 5 12:17:32 UTC 2025


On Tue, 4 Nov 2025 15:39:12 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

>> Jorn Vernee has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Review comments Patricio
>
> Thanks for the reviews!

> @JornVernee: The new test has failed on AIX:
> 
> ```
> [fork] FATAL ERROR in native method: Wrong object class or methodID passed to JNI call
> [fork] 	at jdk.internal.foreign.MemorySessionImpl.checkValidStateRaw(java.base at 26-internal/MemorySessionImpl.java:206)
> [fork] 	at jdk.internal.foreign.MemorySessionImpl.checkValidState(java.base at 26-internal/MemorySessionImpl.java:215)
> [fork] 	at jdk.internal.foreign.SegmentFactories.allocateNativeInternal(java.base at 26-internal/SegmentFactories.java:189)
> [fork] 	at jdk.internal.foreign.SegmentFactories.allocateNativeSegment(java.base at 26-internal/SegmentFactories.java:181)
> [fork] 	at jdk.internal.foreign.ArenaImpl.allocate(java.base at 26-internal/ArenaImpl.java:56)
> [fork] 	at jdk.internal.foreign.ArenaImpl.allocate(java.base at 26-internal/ArenaImpl.java:31)
> [fork] 	at java.lang.foreign.SegmentAllocator.allocate(java.base at 26-internal/SegmentAllocator.java:644)
> [fork] 	at TestSharedCloseJvmti$EventDuringScopedAccessRunner.<clinit>(TestSharedCloseJvmti.java:75)
> ```
> 
> Should I file a new issue?

Please file a new issue. We haven't seen this failure in our CI.

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

PR Comment: https://git.openjdk.org/jdk/pull/27919#issuecomment-3490884908


More information about the hotspot-dev mailing list