On 12/12/2013 17:38, Laurent Bourgès wrote:
Alan,

Thanks for creating the bug 9005822 !
The logging bug we created is JDK-8029834


:

I think this bug should be converted into a more general shutdown hook issue:
- execute first application hooks (not JVM ones)
- fix priorities / order between all JVM hooks (~ 20 now)

The existing shutdown hooks already provide lots of rope to hang yourself and so I think any proposal to expose priorities in the API would need to be approached with great care. As you have found, the JDK internally can run hooks before or after the application hooks but given the delicate time when they run then great care also needs to be taken when doing any adjustments there too.

In any case, the LogManager shutdown hook does need to be looked at as it clearly has a number of issues.

-Alan.




Reply via email to