Searched refs:nthreads (Results 1 - 11 of 11) sorted by relevance

/openjdk7/jdk/test/java/util/concurrent/locks/ReentrantLock/
H A DSimpleReentrantLockLoops.java80 private final int nthreads; field in class:SimpleReentrantLockLoops.ReentrantLockLoop
81 ReentrantLockLoop(int nthreads) { argument
82 this.nthreads = nthreads;
83 barrier = new CyclicBarrier(nthreads+1, timer);
87 for (int i = 0; i < nthreads; ++i)
93 long tpi = time / ((long)iters * nthreads);
H A DTimeoutLockLoops.java81 private final int nthreads; field in class:TimeoutLockLoops.ReentrantLockLoop
82 ReentrantLockLoop(int nthreads) { argument
83 this.nthreads = nthreads;
84 barrier = new CyclicBarrier(nthreads+1, timer);
88 for (int i = 0; i < nthreads; ++i) {
H A DCancelledLockLoops.java81 private final int nthreads; field in class:CancelledLockLoops.ReentrantLockLoop
82 ReentrantLockLoop(int nthreads) { argument
83 this.nthreads = nthreads;
84 barrier = new CyclicBarrier(nthreads+1, timer);
88 Thread[] threads = new Thread[nthreads];
H A DLockOncePerThreadLoops.java51 static int nthreads = 100; field in class:LockOncePerThreadLoops
82 barrier = new CyclicBarrier(nthreads+1, timer);
88 for (int i = 0; i < nthreads; ++i)
/openjdk7/jdk/test/java/util/concurrent/FutureTask/
H A DCancelledFutureLoops.java85 private final int nthreads; field in class:CancelledFutureLoops.FutureLoop
86 FutureLoop(int nthreads) { argument
87 this.nthreads = nthreads;
88 barrier = new CyclicBarrier(nthreads+1, timer);
92 Future[] futures = new Future[nthreads];
93 for (int i = 0; i < nthreads; ++i)
99 for (int i = 1; i < nthreads; ++i) {
109 for (int i = 1; i < nthreads; ++i) {
/openjdk7/jdk/test/com/sun/jdi/
H A DMultiBreakpointsTest.java44 * The current max allowed value of nthreads is 30.
71 int nthreads;
73 String nStr = System.getProperty("nthreads");
76 throw new RuntimeException("nthreads = null in debuggee");
78 nthreads = Integer.parseInt(nStr);
86 System.out.println("Debuggee: nthreads = " + nthreads + ", nhits = " + nhits);
88 MultiBreakpointsTarg ptr = new MultiBreakpointsTarg(nthreads, nhits);
90 // for (int i = 0; i < nthreads; i++) {
205 static int nthreads; field in class:MultiBreakpointsTest
[all...]
/openjdk7/jdk/test/java/util/concurrent/Exchanger/
H A DExchangeLoops.java121 static void oneRun(int nthreads, int iters) throws Exception { argument
123 CyclicBarrier barrier = new CyclicBarrier(nthreads + 1, timer);
126 for (int i = 0; i < nthreads; ++i) {
129 r = (i+2 < nthreads) ? new Exchanger<Int>() : null;
135 System.out.println(LoopHelpers.rightJustify(time / (iters * nthreads + iters * (nthreads-2))) + " ns per transfer");
/openjdk7/jdk/src/share/classes/java/lang/
H A DThreadGroup.java66 int nthreads; field in class:ThreadGroup
346 result = nthreads;
432 int nt = nthreads;
638 for (int i = 0 ; i < nthreads ; i++) {
692 for (int i = 0 ; i < nthreads ; i++) {
739 for (int i = 0 ; i < nthreads ; i++) {
774 if (destroyed || (nthreads > 0)) {
787 nthreads = 0;
842 if (nthreads == 0) {
845 if (daemon && (nthreads
[all...]
/openjdk7/hotspot/src/share/vm/prims/
H A DjvmtiEnv.cpp724 int nthreads = 0; local
731 nthreads = tle.num_threads();
732 *threads_count_ptr = nthreads;
734 if (nthreads == 0) {
739 thread_objs = NEW_RESOURCE_ARRAY(Handle, nthreads);
742 for (int i=0; i < nthreads; i++) {
747 jthread *jthreads = new_jthreadArray(nthreads, thread_objs);
1242 int nthreads = 0; local
1253 nthreads = java_lang_ThreadGroup::nthreads(group_hd
[all...]
/openjdk7/hotspot/src/share/vm/classfile/
H A DjavaClasses.hpp411 static int nthreads(oop java_thread_group);
H A DjavaClasses.cpp1029 int java_lang_ThreadGroup::nthreads(oop java_thread_group) { function in class:java_lang_ThreadGroup

Completed in 353 milliseconds