-
Sub-task
-
Resolution: Delivered
-
P4
-
22
-
generic
-
generic
A new flag, `-XX:UserThreadWaitAttemptsAtExit=<number_of_waits>`, has been introduced. This flag is to specify the number of times the JVM waits for user threads to stop executing native code during a JVM exit. Each wait lasts 10 milliseconds. The maximum number of waits is 1000, to wait at most 10 seconds. By default, `UserThreadWaitAttemptsAtExit` is 30, thus the JVM may wait up to 300 milliseconds for user threads to stop executing native code when the JVM is exiting. That is the same as the existing behavior.