hs-comp: VM is not exiting
Andrew Haley
aph at redhat.com
Thu Jun 11 17:12:51 UTC 2015
On 06/11/2015 06:11 PM, Vitaly Davidovich wrote:
> The OS is waiting.
>
> This class is fairly bad, and should be avoided because the internal thread
> is (a) non-daemon and (b) cannot be interrupted (it swallows IE and
> continues). Javadoc calls this out:
>
> After the last live reference to a Timer object goes away and all
> outstanding tasks have completed execution, the timer's task execution
> thread terminates gracefully (and becomes subject to garbage collection).
> However, this can take arbitrarily long to occur. By default, the task
> execution thread does not run as a daemon thread, so it is capable of
> keeping an application from terminating. If a caller wants to terminate a
> timer's task execution thread rapidly, the caller should invoke the timer's
> cancel method.
But the Timer should time out after 1 second...
Andrew.
More information about the hotspot-dev
mailing list