RFR: 8343177: JFR: Remove critical section for thread id assignment [v3]

Markus Grönlund mgronlun at openjdk.org
Thu Oct 31 16:18:34 UTC 2024


On Thu, 31 Oct 2024 12:25:30 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

>> What happens to ID 1 and 2? Other threads that need to be tracked, and receive special treatment in a similar manner?
>
> There will be no Java thread-id 1 and 2.  Those values are used as values for deflated-marker and anonymous-owner for ObjectMonitor see https://github.com/openjdk/jdk/pull/21565

OK, they are reserved constants that do not denote a thread but particular states.

That's okay from our perspective.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/21756#discussion_r1824767341


More information about the hotspot-jfr-dev mailing list