summaryrefslogtreecommitdiff
path: root/mcs/class/corlib/System.Threading/NamedDataSlot.cs
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/corlib/System.Threading/NamedDataSlot.cs')
-rw-r--r--mcs/class/corlib/System.Threading/NamedDataSlot.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/mcs/class/corlib/System.Threading/NamedDataSlot.cs b/mcs/class/corlib/System.Threading/NamedDataSlot.cs
index 9997be1f5d..4c9d31624a 100644
--- a/mcs/class/corlib/System.Threading/NamedDataSlot.cs
+++ b/mcs/class/corlib/System.Threading/NamedDataSlot.cs
@@ -64,6 +64,7 @@ namespace System.Threading
LocalDataStoreSlot slot;
if (!datastorehash.TryGetValue (name, out slot)) {
slot = new LocalDataStoreSlot (true);
+ datastorehash.Add (name, slot);
}
return slot;