summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2000-02-15 08:47:16 +0000
committerbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2000-02-15 08:47:16 +0000
commit2f8c16798a306a9fc7b51d6b86f4365613911edd (patch)
treee93e067740730813099951597cb27092be93e529
parentb728e3fbe365f786938a15f5457ef83aee2404e1 (diff)
downloadppe42-gcc-2f8c16798a306a9fc7b51d6b86f4365613911edd.tar.gz
ppe42-gcc-2f8c16798a306a9fc7b51d6b86f4365613911edd.zip
* java/lang/natThread.cc (dumpStack): Removed.
* java/lang/Thread.java (dumpStack): Implemented. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31978 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--libjava/java/lang/Thread.java6
-rw-r--r--libjava/java/lang/natThread.cc9
2 files changed, 5 insertions, 10 deletions
diff --git a/libjava/java/lang/Thread.java b/libjava/java/lang/Thread.java
index 7dbabcf56c5..68dc24462cf 100644
--- a/libjava/java/lang/Thread.java
+++ b/libjava/java/lang/Thread.java
@@ -49,7 +49,11 @@ public class Thread implements Runnable
public native int countStackFrames ();
public static native Thread currentThread ();
public native void destroy ();
- public static native void dumpStack ();
+
+ public static void dumpStack ()
+ {
+ (new Exception ("Stack trace")).printStackTrace ();
+ }
public static int enumerate (Thread[] threads)
{
diff --git a/libjava/java/lang/natThread.cc b/libjava/java/lang/natThread.cc
index 741f2b587e8..6d052173dc6 100644
--- a/libjava/java/lang/natThread.cc
+++ b/libjava/java/lang/natThread.cc
@@ -123,15 +123,6 @@ java::lang::Thread::destroy (void)
}
void
-java::lang::Thread::dumpStack (void)
-{
- // We don't implement this because it is very hard. Once we have a
- // VM, this could potentially ask the VM to do the dump in cases
- // where it makes sense.
- JvFail ("java::lang::Thread::dumpStack unimplemented");
-}
-
-void
java::lang::Thread::interrupt (void)
{
interrupt_flag = true;
OpenPOWER on IntegriCloud