[jdk21u-dev] Integrated: 8340547: Starting many threads can delay safepoints

Sergey Nazarkin snazarki at openjdk.org
Mon Aug 25 10:00:55 UTC 2025


On Tue, 28 Jan 2025 16:44:06 GMT, Sergey Nazarkin <snazarki at openjdk.org> wrote:

> I'd like to backport this fix to fix the issue with starting a lot of threads in a burst. Some users found this to be a barrier to migrating from JDK8. 
> 
> The backport is not clean as required to adjust `globals.hpp` and replace `ConditionalMutexLocker` with classic `MutexLocker`. Original fix and discussion are [here](https://github.com/openjdk/jdk/pull/21111)
> 
> Tested with `tier1` and reproducers from [JDK-8340547](https://bugs.openjdk.org/browse/JDK-8340547), [JDK-8307970](https://bugs.openjdk.org/browse/JDK-8307970)

This pull request has now been integrated.

Changeset: 5306687c
Author:    Sergey Nazarkin <snazarki at openjdk.org>
URL:       https://git.openjdk.org/jdk21u-dev/commit/5306687c21daf8c81a61ba78b0c6f4fe13480026
Stats:     15 lines in 5 files changed: 12 ins; 0 del; 3 mod

8340547: Starting many threads can delay safepoints

Reviewed-by: ogillespie, dcherepanov, phh
Backport-of: e704c055a4cf2aab77cc2b3d034f5a8b8d9e3331

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

PR: https://git.openjdk.org/jdk21u-dev/pull/1365


More information about the jdk-updates-dev mailing list