On Fri, 17 Nov 2023 05:55:44 GMT, Chris Plummer <cjplum...@openjdk.org> wrote:
>> This is explained in the PR description. >> Do you think, a just comment is needed or this has to be separated from this >> fix? > > I see the PR comment, but I don't really understand it. Is this to force some > sort of early initialization to avoid a race later on? It just seems odd to > create the tlh, but never use it. The `tlh` is used to protect any existing at this point JavaThread's from being terminated while it is set. My understanding is that there is no need to iterate over all threads in the list to get this protection. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/16686#discussion_r1396795605