Searched refs:tg (Results 1 - 25 of 36) sorted by relevance

12

/openjdk7/jdk/test/java/lang/ThreadGroup/
H A DDaemon.java33 ThreadGroup tg = new ThreadGroup("madbot-threads");
34 Thread myThread = new MadThread(tg,"mad");
35 ThreadGroup aGroup = new ThreadGroup(tg, "ness");
36 tg.setDaemon(true);
37 if (tg.activeCount() != 0)
40 if (tg.isDestroyed())
53 MadThread(ThreadGroup tg, String name) { argument
54 super(tg, name);
H A DSetMaxPriority.java34 ThreadGroup tg = new ThreadGroup("foo");
35 ThreadGroup ptg = tg.getParent();
36 int currentMaxPriority = tg.getMaxPriority();
41 tg.setMaxPriority(halfMaxPriority - 2);
42 currentMaxPriority = tg.getMaxPriority();
50 tg.setMaxPriority(currentMaxPriority + 1);
51 int newMaxPriority = tg.getMaxPriority();
60 int oldPriority = tg.getMaxPriority();
61 tg.setMaxPriority(badPriority);
62 if (oldPriority != tg
[all...]
H A DNullThreadName.java45 ThreadGroup tg = new ThreadGroup("chegar-threads");
46 Thread goodThread = new Thread(tg, new GoodThread(), "goodThread");
48 Thread badThread = new Thread(tg, new Runnable(){
54 tg.setDaemon(true);
71 if (!tg.isDestroyed()) {
/openjdk7/jdk/test/java/lang/Thread/
H A DMainThreadTest.java32 ThreadGroup tg = Thread.currentThread().getThreadGroup();
33 int n = tg.activeCount();
35 int m = tg.enumerate(ts);
H A DStartOOMTest.java41 ThreadGroup tg = new ThreadGroup("buggy");
46 Thread t = new Thread(tg, r);
62 while (tg.activeCount() > i/2)
76 int activeCount = tg.activeCount();
/openjdk7/jdk/src/share/classes/com/sun/tools/example/debug/tty/
H A DThreadGroupIterator.java54 ThreadGroupIterator(ThreadGroupReference tg) { argument
56 tgl.add(tg);
92 ThreadGroupReference tg = top().next();
93 push(tg.threadGroups());
94 return tg;
105 ThreadGroupReference tg = tgi.nextThreadGroup();
106 if (tg.name().equals(name)) {
107 return tg;
H A DThreadIterator.java46 ThreadIterator(ThreadGroupReference tg) { argument
47 tgi = new ThreadGroupIterator(tg);
/openjdk7/jdk/test/com/sun/jdi/
H A DDebuggerThreadTest.java70 ThreadGroup tg = Thread.currentThread().getThreadGroup();
71 ThreadGroup parent = tg.getParent();
73 tg = parent;
74 parent = tg.getParent();
76 int listThreads = tg.activeCount();
78 int gotThreads = tg.enumerate(list, true);
H A DThreadGroupTest.java71 ThreadGroup tg = new ThreadGroup("Gus");
73 Thread thr = new Thread(tg, fetcher);
79 tg.destroy();
/openjdk7/jdk/test/java/lang/ref/
H A DNullQueue.java40 ThreadGroup tg = Thread.currentThread().getThreadGroup();
41 for (ThreadGroup tgn = tg;
43 tg = tgn, tgn = tg.getParent());
44 int nt = tg.activeCount();
46 tg.enumerate(ts);
/openjdk7/jdk/src/share/classes/java/lang/ref/
H A DFinalizer.java127 ThreadGroup tg = Thread.currentThread().getThreadGroup();
128 for (ThreadGroup tgn = tg;
130 tg = tgn, tgn = tg.getParent());
131 Thread sft = new Thread(tg, proc, "Secondary finalizer");
199 ThreadGroup tg = Thread.currentThread().getThreadGroup();
200 for (ThreadGroup tgn = tg;
202 tg = tgn, tgn = tg.getParent());
203 Thread finalizer = new FinalizerThread(tg);
[all...]
H A DReference.java152 ThreadGroup tg = Thread.currentThread().getThreadGroup();
153 for (ThreadGroup tgn = tg;
155 tg = tgn, tgn = tg.getParent());
156 Thread handler = new ReferenceHandler(tg, "Reference Handler");
/openjdk7/jdk/test/java/util/concurrent/ThreadPoolExecutor/
H A DConfigChanges.java39 static final ThreadGroup tg = new ThreadGroup("pool"); field in class:ConfigChanges
47 tg.activeCount(),
121 Thread t = new Thread(tg, r);
128 equal(tg.activeCount(), n);
129 equal(tg.activeCount(), tpe.getCorePoolSize());
154 equal(tg.activeCount(), 3*n);
155 equal(tg.activeCount(), tpe.getMaximumPoolSize());
167 equal(tg.activeCount(), 4*n);
168 equal(tg.activeCount(), tpe.getMaximumPoolSize());
179 // while (tg
[all...]
/openjdk7/jdk/src/share/classes/com/sun/tools/example/debug/bdi/
H A DThreadGroupIterator.java55 public ThreadGroupIterator(ThreadGroupReference tg) { argument
57 tgl.add(tg);
95 ThreadGroupReference tg = top().next();
96 push(tg.threadGroups());
97 return tg;
109 ThreadGroupReference tg = tgi.nextThreadGroup();
110 if (tg.name().equals(name)) {
111 return tg;
H A DThreadIterator.java46 public ThreadIterator(ThreadGroupReference tg) { argument
47 tgi = new ThreadGroupIterator(tg);
/openjdk7/jdk/src/share/classes/sun/misc/
H A DGC.java125 private Daemon(ThreadGroup tg) { argument
126 super(tg, "GC Daemon");
133 ThreadGroup tg = Thread.currentThread().getThreadGroup();
134 for (ThreadGroup tgn = tg;
136 tg = tgn, tgn = tg.getParent());
137 Daemon d = new Daemon(tg);
/openjdk7/jdk/src/share/classes/com/sun/imageio/stream/
H A DStreamCloser.java91 ThreadGroup tg =
93 for (ThreadGroup tgn = tg;
95 tg = tgn, tgn = tg.getParent());
96 streamCloser = new Thread(tg, streamCloserRunnable);
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/orbutil/threadpool/
H A DThreadPoolManagerImpl.java68 ThreadGroup tg;
88 tg = AccessController.doPrivileged(
91 ThreadGroup tg = Thread.currentThread().getThreadGroup();
92 ThreadGroup ptg = tg;
95 tg = ptg;
96 ptg = tg.getParent();
101 return new ThreadGroup(tg, "ORB ThreadGroup " + tgCount.getAndIncrement());
107 tg = Thread.currentThread().getThreadGroup();
110 return tg;
/openjdk7/jdk/src/share/classes/sun/font/
H A DCreatedFontTracker.java122 ThreadGroup tg =
124 for (ThreadGroup tgn = tg;
126 tg = tgn, tgn = tg.getParent());
127 t = new Thread(tg, new Runnable() {
/openjdk7/jdk/test/javax/management/remote/mandatory/connection/
H A DDaemonRMIExporterTest.java104 ThreadGroup tg = Thread.currentThread().getThreadGroup();
105 while (tg.getParent() != null)
106 tg = tg.getParent();
110 int n = tg.enumerate(threads, true);
/openjdk7/jdk/src/share/classes/sun/java2d/
H A DDisposer.java81 ThreadGroup tg = Thread.currentThread().getThreadGroup();
82 for (ThreadGroup tgn = tg;
84 tg = tgn, tgn = tg.getParent());
86 new Thread(tg, disposerInstance, "Java2D Disposer");
/openjdk7/jdk/test/java/nio/channels/AsynchronousChannelGroup/
H A DRestart.java48 final ThreadGroup tg = new ThreadGroup("test");
61 Thread t = new Thread(tg, r);
/openjdk7/jdk/src/share/classes/com/sun/media/sound/
H A DAbstractLine.java223 final ThreadGroup tg = Thread.currentThread().getThreadGroup();
225 EventDispatcher eventDispatcher = dispatchers.get(tg);
228 dispatchers.put(tg, eventDispatcher);
/openjdk7/jdk/test/javax/swing/system/6799345/
H A DTestShutdown.java56 ThreadGroup tg = new TestThreadGroup("TTG");
57 Thread t = new Thread(tg, new TestRunnable(), "InitThread");
/openjdk7/jdk/src/share/classes/com/sun/tools/example/debug/gui/
H A DCommandInterpreter.java145 private void setDefaultThreadGroup(ThreadGroupReference tg) { argument
146 defaultThreadGroup = tg;
219 ThreadGroupReference tg = findThreadGroup(name);
220 if (tg == null) {
224 printThreadGroup(out, tg, 0);
233 ThreadGroupReference tg = tgi.nextThreadGroup();
234 if (tg.name().equals(name)) {
235 return tg;
241 private int printThreadGroup(OutputSink out, ThreadGroupReference tg, int iThread) { argument
242 out.println("Group " + tg
[all...]

Completed in 146 milliseconds

12