Commit 83379bef by Bryce McKinlay

natThread.cc (dumpStack): Removed.

        * java/lang/natThread.cc (dumpStack): Removed.
        * java/lang/Thread.java (dumpStack): Implemented.

From-SVN: r31978
parent 571f8ce4
...@@ -49,7 +49,11 @@ public class Thread implements Runnable ...@@ -49,7 +49,11 @@ public class Thread implements Runnable
public native int countStackFrames (); public native int countStackFrames ();
public static native Thread currentThread (); public static native Thread currentThread ();
public native void destroy (); public native void destroy ();
public static native void dumpStack ();
public static void dumpStack ()
{
(new Exception ("Stack trace")).printStackTrace ();
}
public static int enumerate (Thread[] threads) public static int enumerate (Thread[] threads)
{ {
......
...@@ -123,15 +123,6 @@ java::lang::Thread::destroy (void) ...@@ -123,15 +123,6 @@ java::lang::Thread::destroy (void)
} }
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) java::lang::Thread::interrupt (void)
{ {
interrupt_flag = true; interrupt_flag = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment