Home
last modified time | relevance | path

Searched refs:threadLocal (Results 1 – 3 of 3) sorted by relevance

/libcore/luni/src/test/java/libcore/java/lang/
DOldInheritableThreadLocalTest.java28 final ThreadLocal<Object> threadLocal in test_Ljava_lang_InheritableThreadLocal() local
36 threadLocal.set(value); in test_Ljava_lang_InheritableThreadLocal()
40 holder[0] = threadLocal.get(); in test_Ljava_lang_InheritableThreadLocal()
45 assertSame(value, threadLocal.get()); in test_Ljava_lang_InheritableThreadLocal()
49 threadLocal.remove(); in test_Ljava_lang_InheritableThreadLocal()
DInheritableThreadLocalTest.java31 TestInheritableThreadLocal<Object> threadLocal = new TestInheritableThreadLocal<>(); in childValue_shouldReturnInputArgument() local
33 assertNull(threadLocal.childValue(null)); in childValue_shouldReturnInputArgument()
35 assertEquals(parentValue, threadLocal.childValue(parentValue)); in childValue_shouldReturnInputArgument()
/libcore/ojluni/src/main/java/sun/nio/fs/
DNativeBuffers.java40 private static ThreadLocal<NativeBuffer[]> threadLocal = field in NativeBuffers
58 NativeBuffer[] buffers = threadLocal.get(); in getNativeBufferFromCache()
92 NativeBuffer[] buffers = threadLocal.get(); in releaseNativeBuffer()
96 threadLocal.set(buffers); in releaseNativeBuffer()