Searched defs:threads (Results 1 - 25 of 50) sorted by relevance

12

/openjdk7/jdk/test/java/nio/channels/AsynchronousFileChannel/
H A DMyThreadFactory.java29 private static final Set<Thread> threads = new HashSet<Thread>(); field in class:MyThreadFactory
32 synchronized (threads) {
33 return threads.contains(t);
44 synchronized (threads) {
45 threads.add(t);
/openjdk7/jdk/src/share/classes/com/sun/jdi/
H A DThreadGroupReference.java59 * Suspends all threads in this thread group. Each thread
65 * called, it is possible that new threads will be created
66 * between the time that threads are enumerated and all of them
73 * Resumes all threads in this thread group. Each thread
82 * in this thread group. Only the live threads in this immediate thread group
87 * live threads from this thread group in the target VM.
89 List<ThreadReference> threads(); method in interface:ThreadGroupReference
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/jdi/
H A DThreadGroupReferenceImpl.java62 public List threads() { method in class:ThreadGroupReferenceImpl
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/runtime/
H A DDeadlockDetector.java43 snapshot of Java threads and locks */
54 threads = VM.getVM().getThreads();
90 currentThread = threads.owningThreadFromMonitor(waitingToLockMonitor);
143 private static Threads threads; field in class:DeadlockDetector
149 for (JavaThread cur = threads.first(); cur != null; cur = cur.next()) {
191 currentThread = threads.owningThreadFromMonitor(waitingToLockMonitor);
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/ui/
H A DMonitorCacheDumpPanel.java75 JavaThread thread = threads.owningThreadFromMonitor(mon);
112 private static Threads threads = VM.getVM().getThreads(); field in class:MonitorCacheDumpPanel
H A DJavaThreadsPanel.java50 * threads as their native thread identifiers combined with their
52 * threads.
61 /** Constructor assumes the threads panel is created while the VM is
63 will cause the threads panel to clear and fill itself back in,
252 * Encapsulates the set of threads in a table model
259 public JavaThreadsTableModel(java.util.List threads) { argument
260 this.elements = threads;
434 * Shows stack memory for threads which have crashed (defined as
458 Threads threads = VM.getVM().getThreads();
459 for (JavaThread t = threads
[all...]
/openjdk7/jdk/src/share/classes/com/sun/tools/jdi/
H A DThreadGroupReferenceImpl.java89 for (ThreadReference thread : threads()) {
99 for (ThreadReference thread : threads()) {
133 public List<ThreadReference> threads() { method in class:ThreadGroupReferenceImpl
H A DVMState.java52 List<ThreadReference> threads = null; // cached Threads field in class:VMState.Cache
119 * All threads are resuming
192 List<ThreadReference> threads = null;
198 threads = local.threads;
200 if (threads == null) {
201 threads = Arrays.asList((ThreadReference[])JDWP.VirtualMachine.AllThreads.
202 process(vm).threads);
204 local.threads = threads;
[all...]
/openjdk7/jdk/test/com/sun/management/ThreadMXBean/
H A DThreadAllocatedMemory.java41 private static Thread[] threads = new Thread[NUM_THREADS]; field in class:ThreadAllocatedMemory
102 // start threads, wait for them to block
104 threads[i] = new MyThread("MyThread-" + i);
105 threads[i].start();
108 // threads block after doing some allocation
112 sizes[i] = mbean.getThreadAllocatedBytes(threads[i].getId());
115 // let threads go and do some more allocation
121 // wait for threads to get going again. we don't care if we
127 long newSize = mbean.getThreadAllocatedBytes(threads[i].getId());
130 threads[
[all...]
H A DThreadAllocatedMemoryArray.java41 private static Thread[] threads = new Thread[NUM_THREADS]; field in class:ThreadAllocatedMemoryArray
51 // start threads, wait for them to block
55 threads[i] = new MyThread("MyThread-" + i);
56 threads[i].start();
57 ids[i] = threads[i].getId();
84 threads[i].getName() + " = " + s + " expected = -1");
105 threads[i].getName() + " = " + s);
109 // let threads go and do some more allocation
115 // wait for threads to get going again. we don't care if we
126 threads[
[all...]
H A DThreadCpuTimeArray.java41 private static Thread[] threads = new Thread[NUM_THREADS]; field in class:ThreadCpuTimeArray
63 // start threads, wait for them to block
67 threads[i] = new MyThread("MyThread-" + i);
68 threads[i].start();
69 ids[i] = threads[i].getId();
72 // threads block after doing some computation
88 threads[i].getName() + " = " + t + " expected = -1");
94 threads[i].getName() + " = " + ut + " expected = -1");
118 threads[i].getName() + " = " + t);
124 threads[
[all...]
/openjdk7/jdk/test/java/lang/management/ThreadMXBean/
H A DMonitorDeadlock.java25 * @summary MonitorDeadlock creates threads that are deadlocked on
50 // make them daemon threads so that the test will exit
58 // Wait until all threads have started
74 // sleep a little so that all threads are blocked before notified.
88 // sleep a little while to wait until threads are blocked.
134 void checkResult(long[] threads) { argument
135 if (threads.length != EXPECTED_THREADS) {
140 for (int i = 0; i < threads.length; i++) {
142 if (dThreads[j].getId() == threads[i]) {
154 for (int j = 0; j < threads
[all...]
H A DSynchronizerDeadlock.java25 * @summary SynchronizerDeadlock creates threads that are deadlocked
50 // make them daemon threads so that the test will exit
58 // Wait until all threads have started
74 // sleep a little so that all threads are blocked before notified.
88 // sleep a little while to wait until threads are blocked.
136 void checkResult(long[] threads) { argument
137 if (threads.length != EXPECTED_THREADS) {
143 for (int i = 0; i < threads.length; i++) {
145 if (dThreads[j].getId() == threads[i]) {
157 for (int j = 0; j < threads
[all...]
H A DThreadCpuTime.java40 private static Thread[] threads = new Thread[NUM_THREADS]; field in class:ThreadCpuTime
102 threads[i] = new MyThread("MyThread-" + i);
103 threads[i].start();
109 times[i] = mbean.getThreadCpuTime(threads[i].getId());
115 long newTime = mbean.getThreadCpuTime(threads[i].getId());
118 threads[i].getName() +
124 threads[i].getName() +
130 System.out.println(threads[i].getName() +
142 threads[i].join();
174 ThreadInfo info = mbean.getThreadInfo(threads[
[all...]
H A DThreadUserTime.java40 private static Thread[] threads = new Thread[NUM_THREADS]; field in class:ThreadUserTime
102 threads[i] = new MyThread("MyThread-" + i);
103 threads[i].start();
109 times[i] = mbean.getThreadUserTime(threads[i].getId());
115 long newTime = mbean.getThreadUserTime(threads[i].getId());
118 threads[i].getName() +
124 threads[i].getName() +
130 System.out.println(threads[i].getName() +
142 threads[i].join();
174 ThreadInfo info = mbean.getThreadInfo(threads[
[all...]
/openjdk7/jdk/test/javax/sound/sampled/FileWriter/
H A DAlawEncoderSync.java26 static final ConversionThread[] threads = new ConversionThread[THREAD_COUNT]; field in class:AlawEncoderSync
33 threads[i] = new ConversionThread(i);
34 threads[i].start();
39 threads[i].join();
49 if (!Arrays.equals(threads[0].resultArray, threads[i].resultArray)) {
/openjdk7/hotspot/agent/test/jdi/
H A Dsagdoit.java95 pp("threads:");
97 doThreadList(xx.threads());
110 public void doThreadList(List threads) { argument
111 if (threads == null) {
114 Iterator myIter = threads.iterator();
/openjdk7/hotspot/src/share/vm/gc_implementation/parallelScavenge/
H A DpsTasks.hpp58 threads = 3, enumerator in enum:ScavengeRootsTask::RootType
99 // This task is used to distribute work to idle threads.
165 // exceed the top of the generation. Note that having fewer GC threads
168 // all the stripes and there are only 3 threads, one of the threads will
/openjdk7/jdk/src/share/classes/com/sun/tools/example/debug/tty/
H A DThreadInfo.java48 private static List<ThreadInfo> threads = Collections.synchronizedList(new ArrayList<ThreadInfo>()); field in class:ThreadInfo
67 threads.add(new ThreadInfo(thread));
74 synchronized (threads) {
79 // by a thread start event and by the initial call to threads()
81 threads.add(ti);
106 threads.remove(getThreadInfo(thread));
109 static List<ThreadInfo> threads() { method in class:ThreadInfo
110 synchronized(threads) {
113 return new ArrayList<ThreadInfo>(threads);
120 synchronized (threads) {
[all...]
/openjdk7/jdk/src/macosx/native/jobjc/src/runtime-additions/java/com/apple/jobjc/
H A DUtils.java53 public Threads threads() { method in class:Utils
/openjdk7/hotspot/src/share/vm/services/
H A DmemReporter.hpp52 virtual void num_of_threads(size_t threads) = 0;
62 virtual void diff_num_of_threads(size_t threads, int diff) = 0;
203 void num_of_threads(size_t threads) { argument
204 _num_of_threads = threads;
222 void diff_num_of_threads(size_t threads, int diff) { argument
223 _num_of_threads = threads;
/openjdk7/jdk/test/sun/net/www/http/HttpClient/
H A DMultiThreadTest.java27 * @summary HttpURLConnection duplicates HTTP GET requests when used with multiple threads
113 static int threads=5; field in class:MultiThreadTest
126 threads = Integer.parseInt (args[x]);
137 for (int i=0; i<threads; i++) {
154 if (cnt > threads) { // could be less
155 throw new RuntimeException ("Expected "+threads + " connections: used " +cnt);
157 if (reqs != threads*requests) {
158 throw new RuntimeException ("Expected "+ threads*requests+ " requests: got " +reqs);
164 * Server thread to accept connection and create worker threads
/openjdk7/jdk/src/share/classes/sun/nio/ch/
H A DSimpleAsynchronousFileChannelImpl.java53 // Thread-safe set of IDs of native threads, for signalling
54 private final NativeThreadSet threads = new NativeThreadSet(2); field in class:SimpleAsynchronousFileChannelImpl
90 // signal any threads blocked on this channel
92 threads.signalAndWait();
108 int ti = threads.add();
121 threads.remove(ti);
131 int ti = threads.add();
151 threads.remove(ti);
157 int ti = threads.add();
169 threads
[all...]
/openjdk7/hotspot/agent/src/os/bsd/
H A Dlibproc_impl.h46 // list of threads
103 thread_info* threads; // head of thread list member in struct:ps_prochandle
125 // adds a new thread to threads list, returns NULL on failure
/openjdk7/hotspot/agent/src/os/linux/
H A Dlibproc_impl.h46 // list of threads
101 thread_info* threads; // head of thread list member in struct:ps_prochandle
123 // adds a new thread to threads list, returns NULL on failure

Completed in 318 milliseconds

12