summaryrefslogtreecommitdiffstats
path: root/libjava/classpath/java/lang/ThreadLocal.java
diff options
context:
space:
mode:
authordoko <doko@138bc75d-0d04-0410-961f-82ee72b054a4>2008-10-22 18:19:29 +0000
committerdoko <doko@138bc75d-0d04-0410-961f-82ee72b054a4>2008-10-22 18:19:29 +0000
commitc9197a91e180703238925902f4ec0203cf2d6da4 (patch)
tree577596282d00bf61e1bf433dc5d7aa0a417f5c5c /libjava/classpath/java/lang/ThreadLocal.java
parentb7860e648ee8150622ae3c006b183b76defa12cb (diff)
downloadppe42-gcc-c9197a91e180703238925902f4ec0203cf2d6da4.tar.gz
ppe42-gcc-c9197a91e180703238925902f4ec0203cf2d6da4.zip
2008-10-22 Matthias Klose <doko@ubuntu.com>
Import GNU Classpath (libgcj-import-20081021). * Regenerate class and header files. * Regenerate auto* files. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141302 138bc75d-0d04-0410-961f-82ee72b054a4
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);
OpenPOWER on IntegriCloud