CVM_EMBEDDED_HOOK CVMhookVMShutdown and Runtime.addShutdownHook()
Hello all, I have a simple question that might bring more complex ones further down the road, but let us start simple shall we !
Why are the hooks not implemented by default ?
/* NOTE: The implementation of the following functions is to be provided
by the user of the hook functionality if CVM_EMBEDDED_HOOK is defined.
The shared code will not provide any implementations.
We just want to use Runtime.addShutdownHook(Thread). But our thread is never runned, Shutdown(.java).sequence() is never called.
Am I missing something or we should implement the methods specified in share/javavm/include/hook.h ourselves to notify accordingly the JVM by calling sequence() or ... ?
Thank you for your time.