summaryrefslogtreecommitdiff
path: root/libjava/classpath/java/lang/ThreadLocal.java
diff options
context:
space:
mode:
authorMatthias Klose <doko@gcc.gnu.org>2008-10-22 18:19:29 +0000
committerMatthias Klose <doko@gcc.gnu.org>2008-10-22 18:19:29 +0000
commit58ddc179d494fd426aca184a1a5749d9fa6f81b9 (patch)
tree577596282d00bf61e1bf433dc5d7aa0a417f5c5c /libjava/classpath/java/lang/ThreadLocal.java
parent51c869cac9a2b641ee21172ea193eadef9b1f476 (diff)
Import GNU Classpath (libgcj-import-20081021).
2008-10-22 Matthias Klose <doko@ubuntu.com> Import GNU Classpath (libgcj-import-20081021). * Regenerate class and header files. * Regenerate auto* files. From-SVN: r141302
Diffstat (limited to 'libjava/classpath/java/lang/ThreadLocal.java')
-rw-r--r--libjava/classpath/java/lang/ThreadLocal.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/libjava/classpath/java/lang/ThreadLocal.java b/libjava/classpath/java/lang/ThreadLocal.java
index 14778c65c2f..1f60a55539b 100644
--- a/libjava/classpath/java/lang/ThreadLocal.java
+++ b/libjava/classpath/java/lang/ThreadLocal.java
@@ -90,7 +90,7 @@ public class ThreadLocal<T>
* user. Do not expose this to the public. Package visible for use by
* InheritableThreadLocal
*/
- static final Object notFound = new Object();
+ static final Object sentinel = new Object();
/**
* The base for the computation of the next hash for a thread local.
@@ -100,7 +100,8 @@ public class ThreadLocal<T>
/**
* Allocate a new hash.
*/
- private synchronized int computeNextHash() {
+ private synchronized int computeNextHash()
+ {
return nextHashBase++ * 6709;
}
@@ -144,7 +145,7 @@ public class ThreadLocal<T>
// Note that we don't have to synchronize, as only this thread will
// ever modify the map.
T value = (T) map.get(this);
- if (value == notFound)
+ if (value == sentinel)
{
value = initialValue();
map.set(this, value);