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

Serguei Spitsyn sspitsyn at openjdk.org
Fri Nov 17 07:26:30 UTC 2023


On Fri, 17 Nov 2023 05:55:44 GMT, Chris Plummer <cjplummer at 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


More information about the serviceability-dev mailing list