Skip to content

Commit 3edd4ca

Browse files
committed
Account for CarrierThread as well
Closes #11
1 parent 1e89460 commit 3edd4ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lambdaisland/classpath.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,8 @@
387387
;; SecurityException, so we skip those. We can't do an
388388
;; `instance?` check because the module jdk.internal.misc is
389389
;; private.
390-
:when (not (= "class jdk.internal.misc.InnocuousThread" (str (class thread))))
390+
:when (not (#{"class jdk.internal.misc.CarrierThread"
391+
"class jdk.internal.misc.InnocuousThread"} (str (class thread))))
391392
;; Install the new loader in every thread that has a Clojure
392393
;; loader, and always in the thread this is invoked in, even if
393394
;; for some reason it does not yet have a Clojure loader

0 commit comments

Comments
 (0)