--- a/JavaVM.st Fri Aug 11 11:34:41 2017 +0100
+++ b/JavaVM.st Fri May 05 17:52:31 2017 +0200
@@ -4575,12 +4575,9 @@
enterMonitor: obj ofProcess: aProcess
"registers itself as one of processes wanting monitor and then tries to acquire it."
- | mon objInLists |
+ | mon |
MonitorTrace ifTrue:[
MonitorTraceId := MonitorTraceId + 1.
- objInLists := { obj . MonitorTraceId }
- ] ifFalse:[
- objInLists := obj
].
"/ self enteredMonitorsOf: aProcess add: objInLists.
mon := obj getJavaMonitor.
@@ -4599,12 +4596,9 @@
].
mon enter.
self assert: (mon isOwnedBy: aProcess).
-"/ self acquiredMonitorsOf: aProcess add: objInLists.
-"/ self assert: ((self enteredMonitorsOfProcessAt: aProcess) includes: objInLists).
-"/ self assert: ((self acquiredMonitorsOfProcessAt: aProcess) includes: objInLists).
"Created: / 17-11-2011 / 19:03:43 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
- "Modified: / 02-03-2015 / 14:00:08 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+ "Modified (comment): / 05-05-2017 / 17:09:40 / Jan Vrany <jan.vrany@fit.cvut.cz>"
!
enteredMonitorsOf: aProcess add: anyObject