Skip to content

Commit

Permalink
Account for CarrierThread as well
Browse files Browse the repository at this point in the history
Closes #11
  • Loading branch information
plexus committed Dec 4, 2024
1 parent 1e89460 commit 3edd4ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lambdaisland/classpath.clj
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,8 @@
;; SecurityException, so we skip those. We can't do an
;; `instance?` check because the module jdk.internal.misc is
;; private.
:when (not (= "class jdk.internal.misc.InnocuousThread" (str (class thread))))
:when (not (#{"class jdk.internal.misc.CarrierThread"
"class jdk.internal.misc.InnocuousThread"} (str (class thread))))
;; Install the new loader in every thread that has a Clojure
;; loader, and always in the thread this is invoked in, even if
;; for some reason it does not yet have a Clojure loader
Expand Down

0 comments on commit 3edd4ca

Please sign in to comment.