summaryrefslogtreecommitdiff
path: root/vm
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2006-03-16 21:06:08 +0000
committerKeith Seitz <keiths@redhat.com>2006-03-16 21:06:08 +0000
commitfe2f15b57659d258ebafdf0262b693b796e1d9ac (patch)
tree37b6654c155c22cbab3e426f390de2ea5f802588 /vm
parent2ddf91e093932857c14c6e01c341cdcfe47392a6 (diff)
downloadclasspath-fe2f15b57659d258ebafdf0262b693b796e1d9ac.tar.gz
* gnu/classpath/jdwp/Jdwp.java (getJdwpThreadGroup): New method.
* vm/reference/gnu/classpath/jdwp/VMVirtualMachine.java (suspendAllThreads): Use Jdwp.getJdwpThreadGroup. Don't suspend the current thread unless it is not part of the JDWP thread group.
Diffstat (limited to 'vm')
-rw-r--r--vm/reference/gnu/classpath/jdwp/VMVirtualMachine.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/vm/reference/gnu/classpath/jdwp/VMVirtualMachine.java b/vm/reference/gnu/classpath/jdwp/VMVirtualMachine.java
index 31f68cb6e..d4985bf2f 100644
--- a/vm/reference/gnu/classpath/jdwp/VMVirtualMachine.java
+++ b/vm/reference/gnu/classpath/jdwp/VMVirtualMachine.java
@@ -73,7 +73,7 @@ public class VMVirtualMachine
{
// Our JDWP thread group -- don't suspend any of those threads
Thread current = Thread.currentThread ();
- ThreadGroup jdwpGroup = current.getThreadGroup ();
+ ThreadGroup jdwpGroup = Jdwp.getDefault().getJdwpThreadGroup();
// Find the root ThreadGroup
ThreadGroup group = jdwpGroup;
@@ -105,7 +105,8 @@ public class VMVirtualMachine
}
// Now suspend the current thread
- suspendThread (current);
+ if (current.getThreadGroup() != jdwpGroup)
+ suspendThread (current);
}
/**