RFR: 8340547: Starting many threads can delay safepoints [v3]
Aleksey Shipilev
shade at openjdk.org
Mon Sep 30 14:45:37 UTC 2024
On Wed, 25 Sep 2024 20:30:28 GMT, Dean Long <dlong 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.
>
>> > 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.
I think @dean-long and @merykitty might need to approve or indicate they do not have other comments without the formal review.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/21111#issuecomment-2383408983
More information about the hotspot-dev
mailing list