On Thu, 17 Nov 2022 19:25:42 GMT, Brent Christian <bchri...@openjdk.org> wrote:

> [JDK-8290036](https://bugs.openjdk.org/browse/JDK-8290036) documented the 
> shutdown sequence, noting that calling Runtime.halt() skips the shutdown 
> sequence and immediately terminates the VM. Thus, "threads' current methods 
> do not complete normally or abruptly; no finally clause of any method is 
> executed".
> 
> One ramification of this is that resources within try-with-resource blocks 
> will not be released. It would be good to state this explicitly.

This pull request has now been integrated.

Changeset: c7aca731
Author:    Brent Christian <bchri...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/c7aca73177339f931f7dfb6627365548a32874f7
Stats:     10 lines in 1 file changed: 5 ins; 0 del; 5 mod

8295857: Clarify that cleanup code can be skipped when the JVM terminates (e.g. 
when calling halt())

Reviewed-by: lancea, bpb, naoto, dholmes, smarks

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

PR: https://git.openjdk.org/jdk/pull/11218

Reply via email to