[jdk21u-dev] RFR: 8351484: Race condition in max stats in MonitorList::add

Francesco Andreuzzi duke at openjdk.org
Wed May 14 18:24:54 UTC 2025


On Wed, 14 May 2025 18:18:03 GMT, Paul Hohensee <phh at openjdk.org> wrote:

>> Unclean backport of JDK-8351484. Fixes a race condition in `MonitorList::add`. The new test does not pass on `master`. Conflicts were related to the import statements in the test file.
>
> "new test does not pass" ??

@phohensee The new test does not pass on the `master` branch of this repository, because the race condition is still there. But it's fixed by this backport. I simply tested that the race condition also happens in jdk21, and not only in the repository where it was originally found.

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

PR Comment: https://git.openjdk.org/jdk21u-dev/pull/1778#issuecomment-2881137019


More information about the jdk-updates-dev mailing list