Skip to content

Commit

Permalink
CLJ-1472 Ensure monitor object is on stack, for verifiers
Browse files Browse the repository at this point in the history
Signed-off-by: Stuart Halloway <stu@cognitect.com>
  • Loading branch information
richhickey authored and stuarthalloway committed Mar 3, 2020
1 parent 228e172 commit f5403e9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/clj/clojure/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -1651,10 +1651,12 @@
[x & body]
`(let [lockee# ~x]
(try
(monitor-enter lockee#)
~@body
(finally
(monitor-exit lockee#)))))
(let [locklocal# lockee#]
(monitor-enter locklocal#)
(try
~@body
(finally
(monitor-exit locklocal#)))))))

(defmacro ..
"form => fieldName-symbol or (instanceMethodName-symbol args*)
Expand Down

0 comments on commit f5403e9

Please sign in to comment.