On Fri, 29 Jan 2021 22:05:21 GMT, Phil Race <p...@openjdk.org> wrote:

>> So I should remember how env was retrieved and only detach when it's from 
>> `AttachCurrentThreadAsDaemon`? In fact, in my test the plain `GetEnv` has 
>> never succeeded and it was always attached.
>
> Yes that is the idea. BTW which thread was it attached to in what you saw ?

It's a new thread in the main group. After the method finishes, the thread 
exits (`Thread::exit`).

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

PR: https://git.openjdk.java.net/jdk/pull/1845

Reply via email to