On Fri, 17 Nov 2023 07:23:46 GMT, Serguei Spitsyn <sspit...@openjdk.org> wrote:
>> 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. Ok. I comment indicating that purpose would be useful. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/16686#discussion_r1397741421