RFR JDK-8198249: Remove deprecated Runtime::runFinalizersOnExit and System::runFinalizersOnExit
david.holmes at oracle.com
Fri Feb 16 12:54:43 UTC 2018
On 16/02/2018 10:12 PM, Alan Bateman wrote:
> On 16/02/2018 04:09, mandy chung wrote:
>> Merged. New version:
> Good to see this change.
> One comment on Runtime.exec is that the 3rd paragraph of the updated
> spec is difficult to read (too many "ifs" and "thens"). What would you
> think about starting it with: "If this method is invoked after the
> virtual machine has started the shutdown hooks, the shutdown hooks have
> already run, and the status is nonzero, then this method halts the
> virtual machine with the given status code".
I already suggested something even simpler :) If the hooks have already
run then they must have been started so the first part is redundant. But
I don't think we care about whether they have finished running, only
that they have started.
More information about the core-libs-dev