File tree Expand file tree Collapse file tree 2 files changed +7
-10
lines changed
src/main/clojure/clojure/core Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -532,9 +532,9 @@ IOC and vthread code.
532
532
completed"
533
533
[& body]
534
534
(let [rt-check-step (when clojure.core/*compile-files*
535
- ' (dispatch/ensure-runtime-vthreads!))]
535
+ ` (dispatch/ensure-runtime-vthreads!))]
536
536
(if go-becomes-ioc?
537
- (do (dispatch/dynamic-require 'clojure.core.async.impl.go)
537
+ (do (clojure.core.async.impl. dispatch/dynamic-require 'clojure.core.async.impl.go)
538
538
((find-var 'clojure.core.async.impl.go/go-impl) &env body))
539
539
`(do ~rt-check-step
540
540
(thread-call (^:once fn* [] ~@body) :io )))))
Original file line number Diff line number Diff line change 88
88
(defn target-vthreads? []
89
89
(= (vthreads-directive ) " target" ))
90
90
91
- (def vthreads-available-and-allowed?
92
- (memoize
93
- (fn []
94
- (and (not= (vthreads-directive ) " avoid" )
95
- @virtual-threads-available?))))
91
+ (defn vthreads-available-and-allowed? []
92
+ (and (not= (vthreads-directive ) " avoid" )
93
+ @virtual-threads-available?))
96
94
97
95
(defn ensure-runtime-vthreads! []
98
96
(when (not (vthreads-available-and-allowed? ))
111
109
clojure.core/*loaded-libs* ll]
112
110
(try
113
111
(apply require args)
114
- (catch Exception e
115
- e)))))))
112
+ (catch Throwable t t)))))))
116
113
(let [res @p]
117
- (if ( instance? Exception res)
114
+ (if res
118
115
(throw res)
119
116
res))))
120
117
You can’t perform that action at this time.
0 commit comments