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

Serguei Spitsyn sspitsyn at openjdk.org
Fri Nov 17 20:29:11 UTC 2023


On Fri, 17 Nov 2023 18:52:20 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:

>> 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. A comment indicating that purpose would be useful.

Okay, thanks!
I've added a comment:

  // Protects any existing JavaThread's from being terminated while it is set.
  // The FJP carrier thread compensating mechanism can create carrier threads concurrently.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/16686#discussion_r1397847729


More information about the serviceability-dev mailing list