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

12

/openjdk7/jdk/src/share/classes/java/lang/
H A DThreadGroup.java33 * A thread group represents a set of threads. In addition, a thread
67 Thread threads[]; field in class:ThreadGroup
320 * Returns an estimate of the number of active threads in this thread
325 * threads may change dynamically while this method traverses internal
327 * system threads. This method is intended primarily for debugging
330 * @return an estimate of the number of active threads in this thread
372 * an array into which to put the list of threads
374 * @return the number of threads put into the array
393 * hold all the threads, the extra threads ar
[all...]
H A DThread.java47 * 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/src/share/vm/gc_implementation/parallelScavenge/
H A DpcTasks.hpp50 // queue is a GCTaskQueue and threads steal tasks from this GCTaskQueue.
95 threads = 3, enumerator in enum:MarkFromRootsTask::RootType
178 // This task is used to distribute work to idle threads.
199 // This task is used to distribute work to idle threads.
246 // task (they may all be done by other threads).
/openjdk7/hotspot/src/share/vm/runtime/
H A Dvm_operations.cpp138 // deoptimize all java threads in the system
147 // Deoptimize some selected threads and frames
271 _num_threads = 0; // 0 indicates all threads
280 GrowableArray<instanceHandle>* threads,
287 _threads = threads;
326 // Snapshot all live threads
330 // skip terminating threads and hidden threads
341 // Snapshot threads in the given _threads array
402 // to wait for threads i
279 VM_ThreadDump(ThreadDumpResult* result, GrowableArray<instanceHandle>* threads, int num_threads, int max_depth, bool with_locked_monitors, bool with_locked_synchronizers) argument
[all...]
/openjdk7/jdk/test/sun/net/www/httptest/
H A DHttpServer.java32 * 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/sun/management/
H A DHotspotCompilation.java112 private CompilerThreadInfo[] threads; field in class:HotspotCompilation
113 private int numActiveThreads; // number of active compiler threads
146 compilerThreads = (LongCounter) lookup("threads");
163 threads = new CompilerThreadInfo[numActiveThreads+1];
167 threads[0] = new CompilerThreadInfo("adapterThread", 0);
170 threads[0] = null;
173 for (int i = 1; i < threads.length; i++) {
174 threads[i] = new CompilerThreadInfo("compilerThread", i-1);
203 List<CompilerThreadStat> list = new ArrayList<CompilerThreadStat>(threads.length);
205 if (threads[
[all...]
/openjdk7/jdk/src/solaris/native/java/net/
H A Dbsd_close.c55 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 Dlinux_close.c54 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/httpstest/
H A DHttpServer.java35 * 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/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/
H A DTunnelProxy.java38 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/native/jvmdi/
H A Dsa.cpp289 // We implement this by getting all of the threads and calling
297 // the VM while we are busy suspending other threads. We could
298 // solve this by looping until there are no more threads we can
304 jthread* threads; local
305 if (jvmdi->GetAllThreads(&threadCount, &threads) != JVMDI_ERROR_NONE) {
312 jthread thr = threads[i];
321 // FIXME: stop, resume all threads, report error
327 // Free up threads
328 jvmdi->Deallocate((jbyte*) threads);
358 reportErrorToSA("Error %d while resuming threads", firstErro
[all...]
/openjdk7/jdk/src/share/classes/com/sun/tools/example/debug/gui/
H A DCommandInterpreter.java70 private ThreadReference[] threads = null; field in class:CommandInterpreter
73 * The numbering of threads is relative to the current set of threads,
74 * and may be affected by the creation and termination of new threads.
80 private ThreadReference[] threads() throws NoSessionException { method in class:CommandInterpreter
81 if (threads == null) {
87 threads = tlist.toArray(new ThreadReference[tlist.size()]);
89 return threads;
101 ThreadReference[] threads = threads();
[all...]
/openjdk7/jdk/src/windows/classes/sun/nio/ch/
H A DWindowsSelectorImpl.java70 // Number of helper threads needed for select. We need one thread per
74 // A list of helper threads for select.
75 private final List<SelectThread> threads = new ArrayList<SelectThread>(); field in class:WindowsSelectorImpl
147 // Calculate number of helper threads needed for poll. If necessary
148 // threads are created here and start waiting on startLock
151 // Wakeup helper threads, waiting on startLock, so they start polling.
152 // Redundant threads will exit here after wakeup.
164 if (threads.size() > 0)
178 // Helper threads wait on this lock for the next poll.
183 // previous one. Incrementing runsCounter and notifying threads wil
[all...]
/openjdk7/jdk/src/share/demo/jvmti/hprof/
H A Dhprof_trace.c47 * threads in traces, which will cause many more traces to be created.
48 * Without it all threads share the traces.
54 * TlsIndex, threads come and go, and TlsIndex values are re-used
562 /* Get traces for all threads in list (traces[i]==0 if thread not running) */
564 trace_get_all_current(jint thread_count, jthread *threads, argument
577 HPROF_ASSERT(threads!=NULL);
588 /* Get the stack traces for all the threads */
589 getThreadListStackTraces(thread_count, threads, real_depth, &stack_info);
597 /* Loop over the stack traces we have for these 'thread_count' threads */
631 /* Increment the trace costs for all the threads (fo
633 trace_increment_all_sample_costs(jint thread_count, jthread *threads, SerialNumber *thread_serial_nums, int depth, jboolean skip_init) argument
[all...]
H A Dhprof_tls.c69 * 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...]
H A Dhprof_util.c1642 getThreadListStackTraces(jint count, jthread *threads, argument
1647 HPROF_ASSERT(threads!=NULL);
1653 (gdata->jvmti, count, threads, depth, stack_info);
/openjdk7/jdk/src/share/classes/sun/nio/ch/
H A DFileChannelImpl.java63 // Thread-safe set of IDs of native threads, for signalling
64 private final NativeThreadSet threads = new NativeThreadSet(2); field in class:FileChannelImpl
119 threads.signalAndWait();
145 ti = threads.add();
153 threads.remove(ti);
175 ti = threads.add();
183 threads.remove(ti);
201 ti = threads.add();
209 threads.remove(ti);
231 ti = threads
[all...]
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/runtime/
H A DVM.java83 private Threads threads; field in class:VM
272 // Note that we don't construct universe, heap, threads,
602 if (threads == null) {
603 threads = new Threads();
605 return threads;
/openjdk7/hotspot/src/share/vm/services/
H A DthreadService.cpp100 // Do not count VM internal or JVMTI agent threads
232 // Dump stack trace of threads specified in the given threads array.
234 // the corresponding entry in the given threads array
235 Handle ThreadService::dump_stack_traces(GrowableArray<instanceHandle>* threads, argument
242 threads,
515 assert(SafepointSynchronize::is_at_safepoint(), "all threads are stopped");
546 assert(SafepointSynchronize::is_at_safepoint(), "all threads are stopped");
615 assert(SafepointSynchronize::is_at_safepoint(), "all threads are stopped");
864 st->print_cr("Java stack information for the threads liste
[all...]
H A DthreadService.hpp72 // requested by multiple threads concurrently.
105 static Handle dump_stack_traces(GrowableArray<instanceHandle>* threads,
375 GrowableArray<JavaThread*>* threads() { return _threads; } function in class:DeadlockCycle
379 // Utility class to get list of java threads.
/openjdk7/hotspot/src/share/vm/utilities/
H A Ddebug.cpp301 // A number of threads may attempt to report OutOfMemoryError at around the
303 // commands multiple times we just do it once when the first threads reports
561 extern "C" void threads() { function
562 Command c("threads");
910 threads();;
/openjdk7/jdk/src/share/back/
H A DthreadControl.c116 * end events are maintained in the "runningThreads" list. All other threads known
201 * It assumed that this logic is never dealing with terminated threads,
221 * These functions maintain the linked list of currently running threads.
234 * any threads that we could match.
340 * If there is a pending suspendAll, all new threads should
353 * Some threads may not be in a state that allows setting of TLS,
354 * which is ok, see findThread, it deals with threads without TLS set.
540 * code to safely suspend and resume the application threads
757 * to suspend threads while any thread is within a
798 * the thread list with already-existing threads
814 jthread *threads; local
1510 jthread *threads; local
[all...]
H A Dutil.c631 filterDebugThreads(jthread *threads, int count) argument
636 /* Squish out all of the debugger-spawned threads */
638 jthread thread = threads[i];
641 threads[current] = thread;
886 * Debugger threads need cycles in all sorts of strange
890 * that debugger threads will be starved. (There needs to be
891 * a way to give debugger threads a priority higher than any
1009 * 1) for running application threads by deferring the interrupt
1012 * 2) for debugger threads by ignoring the interrupt; this is the
1013 * most robust solution since debugger threads do
1190 jthread *threads; local
[all...]
/openjdk7/hotspot/src/share/vm/prims/
H A DjvmtiEnv.cpp94 // More than one java threads or jvmti agents may be reading/
96 // interaction b/w these threads it is copied at safepoint.
729 // enumerate threads (including agent threads)
796 // the thread has not yet run or has exited (not on threads list)
825 // We need to try and suspend native threads here. Threads in
1257 objArrayOop threads = java_lang_ThreadGroup::threads(group_hdl()); local
1258 assert(nthreads <= threads->length(), "too many threads");
[all...]
/openjdk7/hotspot/src/share/vm/classfile/
H A DjavaClasses.cpp1034 objArrayOop java_lang_ThreadGroup::threads(oop java_thread_group) { function in class:java_lang_ThreadGroup
1035 oop threads = java_thread_group->obj_field(_threads_offset); local
1036 assert(threads != NULL, "threadgroups should have threads");
1037 assert(threads->is_objArray(), "just checking"); // Todo: Add better type checking code
1038 return objArrayOop(threads);

Completed in 172 milliseconds

12