This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcj/7532] shutdown hooks not run upon abnormal termination
- From: "aph at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Sep 2004 07:50:08 -0000
- Subject: [Bug libgcj/7532] shutdown hooks not run upon abnormal termination
- References: <20020807153600.7532.jmr@fulcrummicro.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From aph at gcc dot gnu dot org 2004-09-23 07:49 -------
The signal handler (here called "shutdown()") can't legally be unwound if
::java::lang::System::exit throws an exception. Studying the libgcj runtime
code, I'm not sure if this might happen. The Java class lib spec says "This
method never returns normally", suggesting that an exceptional return is possible.
We could simply catch everything in shutdown() and then call exit(). With that
and the removal of ::gcj::reduceSignalUsage this patch would be fine for POSIXy
systems.
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2004-08-27 04:05:12 |2004-09-23 07:50:02
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7532