[Bug libgcj/7532] shutdown hooks not run upon abnormal termination

2016-09-30 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=7532

Andrew Pinski  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |WONTFIX

--- Comment #10 from Andrew Pinski  ---
Closing as won't fix as libgcj (and the java front-end) has been removed from
the trunk.

[Bug libgcj/7532] shutdown hooks not run upon abnormal termination

2005-12-01 Thread thebohemian at gmx dot net


--- Comment #8 from thebohemian at gmx dot net  2005-12-01 12:46 ---
Created an attachment (id=10378)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10378action=view)
a test for the shutdown situation

Here is another small test case.

Output on another free VM looks like this:

jamvm test.shutdownhook.Test
waiting ...
Shutting down!
Exception in thread Thread-3 java.lang.Error
   at test.shutdownhook.Test$3.run (Test.java:26)
   at java.lang.Thread.run (Thread.java:674)
Exception in thread Thread-2 java.lang.NullPointerException
   at test.shutdownhook.Test$2.run (Test.java:19)
   at java.lang.Thread.run (Thread.java:674)

On gcj the shutdown hooks are not called when stopping it via ctrl-c.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7532



[Bug libgcj/7532] shutdown hooks not run upon abnormal termination

2005-12-01 Thread thebohemian at gmx dot net


--- Comment #9 from thebohemian at gmx dot net  2005-12-01 14:05 ---
The Sun JVM does not run shutdown hooks and similar stuff when running with
-Xrs[0].

[0] -
http://www-inf.int-evry.fr/cours/java/jdk1.4docs/tooldocs/solaris/java.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7532