On Wed, 4 Jun 2025 17:17:31 GMT, Johannes Bechberger <jbechber...@openjdk.org> wrote:
>> The Threads_lock is required to prevent JFR from sampling through an ongoing >> safepoint, touching oops, which is not supported by most GCs as well as JFR >> evolving its global epoch (happens during safepoint) while both threads are >> outside the safepoint protocol. Can be optimized (later), see for example: >> https://github.com/openjdk/jdk/pull/25602 > > I readded the lock. Thanks, a comment about that would be nice. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/25302#discussion_r2127239230