RFR: 8339725: Concurrent GC crashed due to GetMethodDeclaringClass [v2]

Liang Mao lmao at openjdk.org
Tue Sep 10 09:10:09 UTC 2024


On Tue, 10 Sep 2024 09:02:35 GMT, David Holmes <dholmes at openjdk.org> wrote:

> Okay then that is a programming error not a VM error. It is up to the application to ensure that classes are kept alive if you have jMethodID's for them:
> 
> https://docs.oracle.com/en/java/javase/22/docs/specs/jni/design.html#accessing-fields-and-methods
> 
> any validation the VM attempts with jMethodId's (and field id's) is best-effort and not required.

Thanks very much for the knowledge. Actually I'm not the original test creator and just try to fix the crash from a VM perspective.

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

PR Comment: https://git.openjdk.org/jdk/pull/20907#issuecomment-2340097296


More information about the hotspot-dev mailing list