RFR: 8308614: Enabling JVMTI ClassLoad event slows down vthread creation by factor 10 [v2]

Chris Plummer cjplummer at openjdk.org
Fri Nov 17 18:55:29 UTC 2023


On Fri, 17 Nov 2023 07:23:46 GMT, Serguei Spitsyn <sspitsyn at 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


More information about the serviceability-dev mailing list