Re: RFR: 8287982: Concurrent implicit attach from native threads crashes VM

2022-06-22 Thread David Holmes
On Tue, 21 Jun 2022 08:13:29 GMT, Alan Bateman wrote: > One thing that I'm wondering for the test is whether to move it to > test/hotspot/jtreg/runtime/jni/ so it lives with the other tests for JNI. I > had expected to find other tests for AttachCurrentThread in that location but > we don't.

Re: RFR: 8287982: Concurrent implicit attach from native threads crashes VM

2022-06-21 Thread Robbin Ehn
On Thu, 16 Jun 2022 13:34:18 GMT, Alan Bateman wrote: > If several native threads attach to the VM at around the same time, and > before any threads get an automatically generated name are created, then the > VM may crash attempting to access the thread status. The issue exists for > native th

Re: RFR: 8287982: Concurrent implicit attach from native threads crashes VM

2022-06-21 Thread Alan Bateman
On Tue, 21 Jun 2022 07:09:50 GMT, David Holmes wrote: > And I confirmed that the VM code will correctly handle a null name from the > current Java thread. Thanks, I checked that one. One thing that I'm wondering for the test is whether to move it to test/hotspot/jtreg/runtime/jni/ so it lives

Re: RFR: 8287982: Concurrent implicit attach from native threads crashes VM

2022-06-21 Thread David Holmes
On Thu, 16 Jun 2022 13:34:18 GMT, Alan Bateman wrote: > If several native threads attach to the VM at around the same time, and > before any threads get an automatically generated name are created, then the > VM may crash attempting to access the thread status. The issue exists for > native th

RFR: 8287982: Concurrent implicit attach from native threads crashes VM

2022-06-20 Thread Alan Bateman
If several native threads attach to the VM at around the same time, and before any threads get an automatically generated name are created, then the VM may crash attempting to access the thread status. The issue exists for native threads that attach explicitly with JNI AttachCurrentThread withou