Runtime.java (_exit): Declare new package-private native.
authorBryce McKinlay <bryce@albatross.co.nz>
Mon, 12 Mar 2001 07:40:17 +0000 (07:40 +0000)
committerBryce McKinlay <bryce@gcc.gnu.org>
Mon, 12 Mar 2001 07:40:17 +0000 (07:40 +0000)
commit456c0b60ad23e3d73e4b5cbc6c1f6113fb792534
treeea1cde64a91671a886ba0332dcbc3874ff477611
parent9612ab65bd2b44870545b8f8de8221eecea96732
Runtime.java (_exit): Declare new package-private native.

2001-03-12  Bryce McKinlay  <bryce@albatross.co.nz>

* java/lang/Runtime.java (_exit): Declare new package-private native.
* java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
without a security manager check.
(exit): Call _exit after security check.
* prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
"naturally".
* java/lang/System.java (setSecurityManager): If a security manager
is already in place, call checkPermission.
* java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
throws an exception, try to deal with it gracefully.
* java/lang/ExceptionInInitializerError.java (printStackTrace):
Only try to print the subordinate stack trace if "exception" is set.
Print our class name first.

From-SVN: r40401
libjava/ChangeLog
libjava/java/lang/ExceptionInInitializerError.java
libjava/java/lang/Runtime.java
libjava/java/lang/System.java
libjava/java/lang/ThreadGroup.java
libjava/java/lang/natRuntime.cc
libjava/prims.cc