Lines Matching defs:thread

75      * Commands issued using such thread ids will only give reliable behavior
94 ThreadReference thread = null;
105 thread = thread2;
109 if (thread == null) {
110 //env.failure("No thread for id \"" + idToken + "\"");
111 env.failure("\"" + idToken + "\" is not a valid thread id.");
115 thread = null;
117 return thread;
230 //### Issue: Uniqueness of thread group names is not enforced.
273 // Right-justify the thread number at start of output string
315 // Command: thread
322 ThreadReference thread = findThread(t.nextToken());
323 if (thread != null) {
325 context.setCurrentThread(thread);
460 // Suspend all threads in the current thread group.
471 ThreadReference thread = findThread(t.nextToken());
472 if (thread != null) {
473 //thread.suspend();
474 runtime.suspendThread(thread);
484 // Suspend all threads in the current thread group.
495 ThreadReference thread = findThread(t.nextToken());
496 if (thread != null) {
497 //thread.resume();
498 runtime.resumeThread(thread);
520 env.failure("No current thread.");
541 env.failure("No current thread.");
552 env.failure("No current thread.");
568 env.failure("No current thread.");
577 //### Should change the way in which thread ids and threadgroup names
580 env.error("Usage: kill <threadgroup name> or <thread id>");
585 ThreadReference thread = findThread(idToken);
586 if (thread != null) {
587 runtime.stopThread(thread);
588 env.notice("Thread " + thread.name() + " killed.");
640 env.failure("No current thread.");
663 env.failure("No current thread.");
688 env.failure("No current thread.");
731 env.error("No thread specified.");
740 ThreadReference thread = it.next();
741 out.println(thread.name() + ": ");
742 dumpStack(thread, showPC);
745 ThreadReference thread = findThread(t.nextToken());
746 //### Do we want to set current thread here?
748 if (thread != null) {
749 context.setCurrentThread(thread);
751 dumpStack(thread, showPC);
756 private void dumpStack(ThreadReference thread, boolean showPC) {
760 //env.failure("Current thread isn't suspended.");
764 stack = thread.frames();
769 //### Previously mishandled cases where thread was not current.
960 env.error("No thread specified.");
1110 env.failure("No default thread specified: " +
1111 "use the \"thread\" command first.");
1203 env.failure("No default thread specified: " +
1204 "use the \"thread\" command first.");
1276 out.println("thread <thread id> -- set default thread");
1277 out.println("suspend [thread id(s)] -- suspend threads (default: all)");
1278 out.println("resume [thread id(s)] -- resume threads (default: all)");
1279 out.println("where [thread id] | all -- dump a thread's stack");
1280 out.println("wherei [thread id] | all -- dump a thread's stack, with pc info");
1291 out.println("up [n frames] -- move up a thread's stack");
1292 out.println("down [n frames] -- move down a thread's stack");
1323 out.println("kill <thread(group)> -- kill a thread or threadgroup\n");
1362 } else if (cmd.equals("thread")) {