RFR: 8314243: Make VM_Exit::wait_for_threads_in_native_to_block wait for user threads time configurable [v2]

Jiangli Zhou jiangli at openjdk.org
Tue Nov 14 23:34:29 UTC 2023


On Tue, 14 Nov 2023 23:30:33 GMT, Jiangli Zhou <jiangli at openjdk.org> wrote:

>> Also I just realized that it makes sense to limit the user thread attempts to the internal compiler thread maximum - otherwise we would still stop waiting once the compiler thread maximum was reached.
>
>> Suggestion:
>> 
>> ```
>> The number of times to wait for user threads to stop executing native code
>> during JVM exit. Each wait lasts 10 milliseconds. The maximum number of waits
>> is 1000, to wait at most 10 seconds.
>> ```
> 
> The suggested edit looks good to me. Incorporated, thanks.

> Also I just realized that it makes sense to limit the user thread attempts to the internal compiler thread maximum - otherwise we would still stop waiting once the compiler thread maximum was reached.

`max_wait_attempts_compiler_thread` is 1000.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/16591#discussion_r1393439472


More information about the hotspot-runtime-dev mailing list