Home
last modified time | relevance | path

Searched refs:th (Results 1 – 16 of 16) sorted by relevance

/libcore/ojluni/src/main/java/sun/nio/ch/
DNativeThreadSet.java46 long th = NativeThread.current(); in add() local
48 if (th == 0) in add()
49 th = -1; in add()
62 elts[i] = th; in add()
90 long th = elts[i]; in signalAndWait() local
91 if (th == 0) in signalAndWait()
93 if (th != -1) in signalAndWait()
94 NativeThread.signal(th); in signalAndWait()
DSourceChannelImpl.java90 long th = thread; in implCloseSelectableChannel() local
91 if (th != 0) in implCloseSelectableChannel()
92 NativeThread.signal(th); in implCloseSelectableChannel()
DSinkChannelImpl.java89 long th = thread; in implCloseSelectableChannel() local
90 if (th != 0) in implCloseSelectableChannel()
91 NativeThread.signal(th); in implCloseSelectableChannel()
DServerSocketChannelImpl.java281 long th = thread; in implCloseSelectableChannel() local
282 if (th != 0) in implCloseSelectableChannel()
283 NativeThread.signal(th); in implCloseSelectableChannel()
DDatagramChannelImpl.java796 long th; in implCloseSelectableChannel() local
797 if ((th = readerThread) != 0) in implCloseSelectableChannel()
798 NativeThread.signal(th); in implCloseSelectableChannel()
799 if ((th = writerThread) != 0) in implCloseSelectableChannel()
800 NativeThread.signal(th); in implCloseSelectableChannel()
DUtil.java239 } catch (Throwable th) { in run()
240 throw new Error(th); in run()
/libcore/ojluni/src/main/native/
DObjectStreamClass.c63 jthrowable th = (*env)->ExceptionOccurred(env); in ObjectStreamClass_hasStaticInitializer() local
65 if (!(*env)->IsInstanceOf(env, th, noSuchMethodErrCl)) { in ObjectStreamClass_hasStaticInitializer()
66 (*env)->Throw(env, th); in ObjectStreamClass_hasStaticInitializer()
92 jthrowable th = (*env)->ExceptionOccurred(env); in ObjectStreamClass_hasStaticInitializer() local
94 if (!(*env)->IsInstanceOf(env, th, noSuchMethodErrCl)) { in ObjectStreamClass_hasStaticInitializer()
95 (*env)->Throw(env, th); in ObjectStreamClass_hasStaticInitializer()
/libcore/luni/src/test/java/libcore/java/lang/
DOldThreadTest.java313 Thread th = new Thread() { in test_getState() local
347 assertEquals(Thread.State.NEW, th.getState()); in test_getState()
348 th.start(); in test_getState()
350 assertEquals(Thread.State.RUNNABLE, th.getState()); in test_getState()
355 assertEquals(Thread.State.WAITING, th.getState()); in test_getState()
360 assertEquals(Thread.State.BLOCKED, th.getState()); in test_getState()
366 assertEquals(Thread.State.TIMED_WAITING, th.getState()); in test_getState()
367 th.interrupt(); in test_getState()
370 th.join(1000); in test_getState()
371 assertEquals(Thread.State.TERMINATED, th.getState()); in test_getState()
DThrowableTest.java45 } catch (Throwable th) { in testNonWritableStackTrace()
46 assertEquals("hi", th.getMessage()); in testNonWritableStackTrace()
49 assertEquals(0, th.getStackTrace().length); in testNonWritableStackTrace()
52 th.setStackTrace(new StackTraceElement[] { new StackTraceElement("c", "m", "f", -2) }); in testNonWritableStackTrace()
53 assertEquals(0, th.getStackTrace().length); in testNonWritableStackTrace()
56 th.fillInStackTrace(); in testNonWritableStackTrace()
57 assertEquals(0, th.getStackTrace().length); in testNonWritableStackTrace()
60 th.printStackTrace(new PrintWriter(new StringWriter())); in testNonWritableStackTrace()
/libcore/ojluni/src/main/java/java/util/
DArrayPrefixHelpers.java112 int th = threshold, org = origin, fnc = fence, l, h; in compute() local
115 if (h - l > th) { in compute()
120 new CumulateTask<T>(t, fn, a, org, fnc, th, mid, h); in compute()
122 new CumulateTask<T>(t, fn, a, org, fnc, th, l, mid); in compute()
264 int th = threshold, org = origin, fnc = fence, l, h; in compute() local
267 if (h - l > th) { in compute()
272 new LongCumulateTask(t, fn, a, org, fnc, th, mid, h); in compute()
274 new LongCumulateTask(t, fn, a, org, fnc, th, l, mid); in compute()
414 int th = threshold, org = origin, fnc = fence, l, h; in compute() local
417 if (h - l > th) { in compute()
[all …]
/libcore/ojluni/src/main/java/java/io/
DObjectStreamClass.java355 } catch (Throwable th) { in lookup()
356 entry = th; in lookup()
979 Throwable th = ex.getTargetException(); in invokeWriteObject()
980 if (th instanceof IOException) { in invokeWriteObject()
981 throw (IOException) th; in invokeWriteObject()
983 throwMiscException(th); in invokeWriteObject()
1008 Throwable th = ex.getTargetException(); in invokeReadObject()
1009 if (th instanceof ClassNotFoundException) { in invokeReadObject()
1010 throw (ClassNotFoundException) th; in invokeReadObject()
1011 } else if (th instanceof IOException) { in invokeReadObject()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DThreadTest.java615 Thread th = new Thread("test"); in test_join() local
617 th.join(); in test_join()
622 th.start(); in test_join()
676 Thread th = new Thread("test"); in test_joinJ() local
682 th.join(200); in test_joinJ()
688 th.start(); in test_joinJ()
729 Thread th = new Thread("test"); in test_joinJI() local
735 th.join(200, 20); in test_joinJI()
741 th.start(); in test_joinJI()
/libcore/ojluni/src/main/java/java/util/logging/
DXMLFormatter.java193 Throwable th = record.getThrown(); in format() local
196 escape(sb, th.toString()); in format()
198 StackTraceElement trace[] = th.getStackTrace(); in format()
/libcore/ojluni/src/main/java/java/lang/
DSystem.java1592 public static void logE(String message, Throwable th) { in logE() argument
1593 log('E', message, th); in logE()
1606 public static void logI(String message, Throwable th) { in logI() argument
1607 log('I', message, th); in logI()
1620 public static void logW(String message, Throwable th) { in logW() argument
1621 log('W', message, th); in logW()
1624 private static native void log(char type, String message, Throwable th); in log() argument
/libcore/ojluni/src/main/java/sun/security/ssl/
DSSLSocketImpl.java1602 } catch (Throwable th) { in closeInternal()
1607 cachedThrowable = th; in closeInternal()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTreeMapTest.java369 SortedMap th = t.headMap(null); in test_headMapLjava_lang_Object() local
646 SortedMap th = t.tailMap(null); in test_tailMapLjava_lang_Object() local