Skip to content

Commit 228e172

Browse files
Revert "CLJ-1472 - Ensure monitor object is on stack so its easier to analyze in the face of locals clearing"
This reverts commit 989a3b9.
1 parent f9b04ae commit 228e172

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/clj/clojure/core.clj

+4-6
Original file line numberDiff line numberDiff line change
@@ -1651,12 +1651,10 @@
16511651
[x & body]
16521652
`(let [lockee# ~x]
16531653
(try
1654-
(let [locklocal# lockee#]
1655-
(monitor-enter locklocal#)
1656-
(try
1657-
~@body
1658-
(finally
1659-
(monitor-exit locklocal#)))))))
1654+
(monitor-enter lockee#)
1655+
~@body
1656+
(finally
1657+
(monitor-exit lockee#)))))
16601658

16611659
(defmacro ..
16621660
"form => fieldName-symbol or (instanceMethodName-symbol args*)

0 commit comments

Comments
 (0)