[kaffe] Shutdown patch

Guilhem Lavaux guilhem.lavaux at free.fr
Tue Jul 8 10:14:02 PDT 2003


Hi,

This patch adds the ShutdownHook (Java 1.3) feature to kaffe. Here is a 
Changelog:

* libraries/clib/native/Application.c, 
libraries/javalib/kaffe/lang/Application.java: removed
* libraries/clib/native/Runtime.c: renamed exitInternal() into exit0()
* libraries/javalib/java/lang/Runtime.java (exitInternal, addShutdownHook, 
removeShutdownHook, exitJavaCleanup, runShutdownHooks): implement the 
Shutdown hook Java 1.3 feature, removed kaffe/lang/Application.
* libraries/javalib/java/lang/System.java (exitJavaCleanup): Added a hook for 
java.lang.Runtime.exitJavaCleanup.
* kaffe/kaffevm/threads.c: Call System.exitJavaCleanup() before final exit.

If you check it in, you will first need to delete kaffe/lang/Application.java 
and native/Application.c as mentioned. Hope it's allright.

Cheers,

Guilhem.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shutdown.patch
Type: text/x-diff
Size: 9259 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/20030708/54b56d74/attachment-0002.patch 


More information about the kaffe mailing list