Commits

Remi Meier committed 48863ce

stm: fix stupid mistake in thread locals

Comments (0)

Files changed (1)

pypy/module/thread/stm.py

             ecs = cast_instance_to_base_ptr(value)
             ecaddr = llmemory.cast_ptr_to_adr(ecs)
             stmgcintf.StmOperations.set_ec(ecaddr)
-        else:
-            OSThreadLocals.setvalue(self, value)
-
+        # always set dict, because other methods require it
+        OSThreadLocals.setvalue(self, value)
+            
 
     def getvalue(self):
         if we_are_translated():
             return cast_base_ptr_to_instance(ExecutionContext, ecptr)
         else:
             return OSThreadLocals.getvalue(self)
-
+    
 
 
 class STMLock(ll_thread.Lock):