Context Propagation ThreadLocal with Virtual Threads (Loom) #11174
Unanswered
marlonpatrick
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Why would you want to prevent it? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey folks,
I have an application micronaut 4.4.8 running on Java 21.
I created a new rest endpoint using @ExecuteOn(TaskExecutors.VIRTUAL) and enabled JVM flag -Djdk.traceVirtualThreadLocals=true.
When I do this, I noticed an use of ThreadLocal from micronaut:
Is this use of ThreadLocal a big problem? There is anything I can do to prevent this?
Beta Was this translation helpful? Give feedback.
All reactions