Home
last modified time | relevance | path

Searched refs:tl (Results 1 – 8 of 8) sorted by relevance

/libcore/jsr166-tests/src/test/java/jsr166/
DThreadLocalTest.java25 static ThreadLocal<Integer> tl = new ThreadLocal<Integer>() { field in ThreadLocalTest
46 assertSame(tl.get(), one); in testRemove()
47 tl.set(two); in testRemove()
48 assertSame(tl.get(), two); in testRemove()
49 tl.remove(); in testRemove()
50 assertSame(tl.get(), one); in testRemove()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DThreadLocalTest.java49 static ThreadLocal<Integer> tl = new ThreadLocal<Integer>() { field in ThreadLocalTest
70 assertSame(tl.get(), one); in testRemove()
71 tl.set(two); in testRemove()
72 assertSame(tl.get(), two); in testRemove()
73 tl.remove(); in testRemove()
74 assertSame(tl.get(), one); in testRemove()
/libcore/ojluni/src/main/java/jdk/internal/misc/
DTerminatingThreadLocal.java81 public static void register(TerminatingThreadLocal<?> tl) { in register() argument
82 REGISTRY.get().add(tl); in register()
90 private static void unregister(TerminatingThreadLocal<?> tl) { in unregister() argument
91 REGISTRY.get().remove(tl); in unregister()
/libcore/ojluni/src/test/java/util/ServiceLoader/basic/
DBasic.java78 for (TestLoader tl : Arrays.asList(tcclLoader)) { in main()
79 test(tl); in main()
83 static void test(TestLoader tl) { in test() argument
84 ServiceLoader<FooService> sl = tl.load(); in test()
85 out.format("%s: %s%n", tl.name, sl); in test()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DThreadLocalTest.java36 ThreadLocal<String> tl = new ThreadLocal<String>() { in test_remove() local
43 assertEquals("initial", tl.get()); in test_remove()
44 tl.set("fixture"); in test_remove()
45 assertEquals("fixture", tl.get()); in test_remove()
46 tl.remove(); in test_remove()
47 assertEquals("initial", tl.get()); in test_remove()
/libcore/ojluni/src/main/java/java/util/
DHashMap.java765 TreeNode<K,V> hd = null, tl = null; in treeifyBin() local
768 if (tl == null) in treeifyBin()
771 p.prev = tl; in treeifyBin()
772 tl.next = p; in treeifyBin()
774 tl = p; in treeifyBin()
2116 Node<K,V> hd = null, tl = null; in untreeify() local
2119 if (tl == null) in untreeify()
2122 tl.next = p; in untreeify()
2123 tl = p; in untreeify()
2532 TreeNode<K,V> tp = t.parent, tl = t.left, tr = t.right, in checkInvariants() local
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DLocaleTest.java181 Locale tl = new Locale("tl"); in test_tl_and_fil() local
183 assertEquals("Tagalog", tl.getDisplayLanguage(Locale.ENGLISH)); in test_tl_and_fil()
185 assertEquals("Tagalog", tl.getDisplayLanguage(tl)); in test_tl_and_fil()
189 assertEquals("tagalo", tl.getDisplayLanguage(es_MX)); in test_tl_and_fil()
/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentHashMap.java1509 TreeNode<K,V> hd = null, tl = null; in readObject() local
1513 if ((t.prev = tl) == null) in readObject()
1516 tl.next = t; in readObject()
1517 tl = t; in readObject()
2679 TreeNode<K,V> hd = null, tl = null; in treeifyBin() local
2684 if ((p.prev = tl) == null) in treeifyBin()
2687 tl.next = p; in treeifyBin()
2688 tl = p; in treeifyBin()
2701 Node<K,V> hd = null, tl = null; in untreeify() local
2704 if (tl == null) in untreeify()
[all …]