/openjdk7/jdk/test/sun/net/www/http/HttpClient/ |
H A D | MultiThreadTest.java | 27 * @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/test/java/util/concurrent/ThreadPoolExecutor/ |
H A D | CoreThreadTimeOut.java | 47 Thread[] threads = new Thread[Thread.activeCount()+100]; 48 Thread.enumerate(threads); 50 for (Thread t : threads)
|
H A D | Custom.java | 83 Thread[] threads = new Thread[Thread.activeCount()+100]; 84 Thread.enumerate(threads); 86 for (Thread t : threads)
|
/openjdk7/jdk/test/sun/java2d/cmm/ColorConvertOp/ |
H A D | MTSafetyTest.java | 68 Vector<Thread> threads = 85 threads.add(colorThread); 92 for (Thread thread : threads) {
|
/openjdk7/jdk/src/share/classes/com/sun/tools/example/debug/bdi/ |
H A D | ThreadIterator.java | 61 it = tgi.nextThreadGroup().threads().iterator();
|
/openjdk7/jdk/src/share/classes/com/sun/tools/example/debug/tty/ |
H A D | ThreadIterator.java | 64 it = tgi.nextThreadGroup().threads().iterator();
|
/openjdk7/hotspot/src/share/vm/services/ |
H A D | memReporter.hpp | 52 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/src/solaris/native/java/net/ |
H A D | bsd_close.c | 55 threadEntry_t *threads; /* threads blocked on fd */ member in struct:__anon957 149 self->next = fdEntry->threads; 150 fdEntry->threads = self; 167 curr = fdEntry->threads; 174 fdEntry->threads = curr->next; 189 * Close or dup2 a file descriptor ensuring that all threads blocked on 212 * Send a wakeup signal to all threads blocked on this 215 threadEntry_t *curr = fdEntry->threads; 248 * that any threads blocke [all...] |
H A D | linux_close.c | 54 threadEntry_t *threads; /* threads blocked on fd */ member in struct:__anon958 132 self->next = fdEntry->threads; 133 fdEntry->threads = self; 150 curr = fdEntry->threads; 157 fdEntry->threads = curr->next; 172 * Close or dup2 a file descriptor ensuring that all threads blocked on 195 * Send a wakeup signal to all threads blocked on this 198 threadEntry_t *curr = fdEntry->threads; 231 * that any threads blocke [all...] |
/openjdk7/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/ |
H A D | TunnelProxy.java | 38 int threads; field in class:TunnelProxy 56 * threads and maximum number of connections per thread. This functions 60 * @param threads the number of threads to create to handle requests 66 public TunnelProxy (int threads, int cperthread) argument 68 this (threads, cperthread, 0); 73 * of threads and maximum number of connections per thread and running on 74 * the specified port. The specified number of threads are created to 79 * @param threads the number of threads t 87 TunnelProxy(int threads, int cperthread, int port) argument [all...] |
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/bugspot/ |
H A D | ThreadListPanel.java | 44 visualize all threads in the target process. The caller passes in 46 JavaThreads' associations with these underlying threads be 118 // Collect Java threads from virtual machine and insert them in 121 Threads threads = VM.getVM().getThreads(); 122 for (JavaThread thr = threads.first(); thr != null; thr = thr.next()) { 127 java.util.List/*<ThreadProxy>*/ threads = dbg.getThreadList(); 128 threadList = new ArrayList(threads.size()); 129 for (Iterator iter = threads.iterator(); iter.hasNext(); ) {
|
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/tools/ |
H A D | StackTrace.java | 31 /** Traverses and prints the stack traces for all Java threads in the 63 Threads threads = VM.getVM().getThreads(); 65 for (JavaThread cur = threads.first(); cur != null; cur = cur.next(), i++) {
|
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/ui/ |
H A D | MonitorCacheDumpPanel.java | 75 JavaThread thread = threads.owningThreadFromMonitor(mon); 112 private static Threads threads = VM.getVM().getThreads(); field in class:MonitorCacheDumpPanel
|
/openjdk7/jdk/src/share/demo/jvmti/hprof/ |
H A D | hprof_tls.c | 69 * threads. 118 jthread *threads; member in struct:ThreadList 363 /* Get various lists on known threads */ 386 list->threads[list->count] = thread; 877 /* Sample ALL threads and update the trace costs */ 882 jthread *threads; local 893 threads = (jthread*)HPROF_MALLOC(nbytes); 897 /* Get list of threads and serial numbers */ 898 list.threads = threads; 1017 jthread *threads; local [all...] |
/openjdk7/jdk/test/java/rmi/transport/runtimeThreadInheritanceLeak/ |
H A D | RuntimeThreadInheritanceLeak.java | 26 * @summary When the RMI runtime (lazily) spawns system threads that could 28 * created, such threads should not inherit (thread local) data specific to 35 * object is exported (and thus when some long-lived RMI daemon threads are 38 * subsystems also not holding on to the loader in their daemon threads.] 139 * Dumps information about all live threads to System.err, 144 "current live threads and their context class loaders:"); 145 Map threads = Thread.getAllStackTraces(); 146 for (Iterator iter = threads.entrySet().iterator(); iter.hasNext();) {
|
/openjdk7/jdk/test/javax/management/notification/ |
H A D | BroadcasterSupportDeadlockTest.java | 53 ThreadMXBean threads = ManagementFactory.getThreadMXBean(); 54 threads.setThreadContentionMonitoringEnabled(true);
|
/openjdk7/hotspot/agent/test/jdi/ |
H A D | sagdoit.java | 95 pp("threads:"); 97 doThreadList(xx.threads()); 110 public void doThreadList(List threads) { argument 111 if (threads == null) { 114 Iterator myIter = threads.iterator();
|
/openjdk7/jdk/test/java/lang/instrument/ |
H A D | TransformerManagementThreadAddTests.java | 63 * There will be a total of MAX_TRANS-MIN_TRANS+1 threads created. 67 * REMOVE_THREADS: the number of threads to run that spend their time 126 TransformerThread[] threads = new TransformerThread[TOTAL_THREADS]; 130 threads[index] = new TransformerThread("Trans"+prettyNum(index,2), i); 135 for (int i = threads.length - 1; i >= 0; i--) 137 threads[i].start();
|
/openjdk7/jdk/test/java/lang/management/ThreadMXBean/ |
H A D | Locks.java | 333 long[] threads = new long[10]; 335 threads[count++] = ownerInfo.getThreadId(); 338 threads[count++] = ownerInfo.getThreadId(); 350 "Expected chain of threads not matched; current count =" + count); 353 if (threads[i] != expectedThreads[i]) { 355 "Unexpected thread in the chain " + threads[i] +
|
/openjdk7/jdk/test/sun/security/ssl/sun/net/www/httpstest/ |
H A D | HttpServer.java | 35 * This class implements a simple HTTPS server. It uses multiple threads to 57 int threads; field in class:HttpServer 79 * threads and maximum number of connections per thread. This functions 83 * @param threads the number of threads to create to handle requests 89 public HttpServer (HttpCallback cb, int threads, int cperthread) argument 91 this (cb, threads, cperthread, 0); 96 * of threads and maximum number of connections per thread and running on 97 * the specified port. The specified number of threads are created to 102 * @param threads th 110 HttpServer(HttpCallback cb, int threads, int cperthread, int port) argument [all...] |
/openjdk7/jdk/test/sun/net/www/httptest/ |
H A D | HttpServer.java | 32 * This class implements a simple HTTP server. It uses multiple threads to 54 int threads; field in class:HttpServer 73 * threads and maximum number of connections per thread. This functions 77 * @param threads the number of threads to create to handle requests 83 public HttpServer (HttpCallback cb, int threads, int cperthread) argument 85 this (cb, threads, cperthread, 0); 90 * of threads and maximum number of connections per thread and running on 91 * the specified port. The specified number of threads are created to 96 * @param threads th 104 HttpServer(HttpCallback cb, int threads, int cperthread, int port) argument [all...] |
/openjdk7/jdk/src/share/classes/java/lang/ |
H A D | Thread.java | 47 * Virtual Machine allows an application to have multiple threads of 51 * executed in preference to threads with lower priority. Each thread 61 * Machine continues to execute threads until either of the following 67 * <li>All threads that are not daemon threads have died, either by 174 /* For autonumbering anonymous threads. */ 272 * between threads that would otherwise over-utilise a CPU. Its use 595 * threads to exist concurrently without throwing an {@link 661 * The result is that two threads are running concurrently: the 678 * group threads create 1701 dumpThreads(Thread[] threads) argument [all...] |
/openjdk7/hotspot/agent/test/libproc/ |
H A D | LibprocClient.java | 35 validity of threads and frames logically. This class has reference 36 frame names from "known" threads. The debuggee is assumed to run 47 // try getting threads 48 Threads threads = VM.getVM().getThreads(); 52 for (JavaThread cur = threads.first(); cur != null; cur = cur.next()) { 55 // testing of basic frame walking for all threads 60 // special testing for "known" threads. For now, only "main" thread.
|
/openjdk7/jdk/test/sun/net/www/http/KeepAliveCache/ |
H A D | B5045306.java | 106 long[] threads = threadMXBean.getAllThreadIds(); 107 ThreadInfo[] threadInfo = threadMXBean.getThreadInfo(threads);
|
/openjdk7/hotspot/agent/src/os/bsd/ |
H A D | libproc_impl.c | 133 thread_info* thr = ph->threads; 258 newthr->next = ph->threads; 259 ph->threads = newthr; 304 // we use libthread_db iterator to iterate thru list of threads. 318 // get number of threads 326 thread_info* thr = ph->threads;
|