RFR: 8303624: The java.lang.Thread.FieldHolder can be null for JNI attaching threads

David Holmes dholmes at openjdk.org
Tue Mar 7 01:04:05 UTC 2023


On Mon, 6 Mar 2023 21:52:47 GMT, David Holmes <dholmes at openjdk.org> wrote:

> There's no way to write a regression test for this.

Clarification: there's no way to write a general regression test for accessing the fieldHolder fields via JVMTI while the thread is attaching. The original failure scenario of the Thread constructor throwing an exception could potentially be testable.

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

PR: https://git.openjdk.org/jdk/pull/12892


More information about the hotspot-runtime-dev mailing list