Skip to content

Commit f5403e9

Browse files
richhickeystuarthalloway
authored andcommitted
CLJ-1472 Ensure monitor object is on stack, for verifiers
Signed-off-by: Stuart Halloway <[email protected]>
1 parent 228e172 commit f5403e9

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/clj/clojure/core.clj

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

16591661
(defmacro ..
16601662
"form => fieldName-symbol or (instanceMethodName-symbol args*)

0 commit comments

Comments
 (0)