RFR: 8340547: Starting many threads can delay safepoints [v3]
Dean Long
dlong at openjdk.org
Wed Sep 25 20:32:40 UTC 2024
On Tue, 24 Sep 2024 09:27:13 GMT, Oli Gillespie <ogillespie at openjdk.org> wrote:
> > If JVM_StartThread is only called by Thread.start0, then how about putting the new lock in Java instead?
>
> What benefit do you see of that? One downside is that the lock will be coarser than necessary. I'd rather keep the lock as tightly scoped as possible.
I just thought it would be simpler, but I see your point. A coarser lock will serialize more of the native path.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/21111#issuecomment-2375195149
More information about the hotspot-dev
mailing list