JavaMonitor.st
branchdevelopment
changeset 2457 0cef0ce3d1ac
parent 2429 ebece4dcaab9
child 2711 a00302fe5083
--- a/JavaMonitor.st	Sun Mar 10 20:03:51 2013 +0000
+++ b/JavaMonitor.st	Sun Mar 10 20:08:42 2013 +0000
@@ -248,7 +248,7 @@
         "threadId is not zero (zero is threadId of scheduler process, which will never try to acquire the monitor)"
         "so it means it is possible that the thin lock is already locked for other thread, we must be careful " 
 
-        owningProcess := Process findProcessWithId:threadId.
+        owningProcess := ObjectMemory processesKnownInVM detect:[:p|p id == threadId] ifNone:[nil].
         self assert: owningProcess notNil.
         processesEntered add: owningProcess.  
         cnt timesRepeat:[