[ https://issues.apache.org/jira/browse/LOG4J2-3622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17738134#comment-17738134 ]
Volkan Yazici commented on LOG4J2-3622: --------------------------------------- For the records, {{Thread.Builder.OfVirtual#allowSetThreadLocals(boolean)}}, which used to exist up until [JDK 20|https://docs.oracle.com/en/java/javase/20/docs/api/java.base/java/lang/Thread.Builder.OfVirtual.html#allowSetThreadLocals(boolean)], is removed in [JDK 21|https://download.java.net/java/early_access/jdk21/docs/api/java.base/java/lang/Thread.Builder.OfVirtual.html]. Hence, I take the liberty to close this ticket and suggest users to refer to the following tickets for more specialized JEP 425 & 429 issues: * [#1401|https://github.com/apache/logging-log4j2/pull/1401] for the recycler API * [#1532|https://github.com/apache/logging-log4j2/issues/1532] for replacing {{synchronized}} blocks with locks > Support for virtual threads > --------------------------- > > Key: LOG4J2-3622 > URL: https://issues.apache.org/jira/browse/LOG4J2-3622 > Project: Log4j 2 > Issue Type: Bug > Components: Core > Reporter: liuxichen > Priority: Critical > > I noticed in ReusableMessageFactory threadlocal are used, so If a am using > jdk19 virtual threads while logging with threadlocal disabled, > UnsupportedOperationException would be thrown, and using log in a lot of > virtual threads might create a lot of useless objects, could you please fix > this? -- This message was sent by Atlassian Jira (v8.20.10#820010)