Skip to content
Permalink
Browse files

Attempt to work around oracle/graal#1200

  • Loading branch information
dmlloyd committed Apr 27, 2019
1 parent 787e073 commit 536b219b7dbdae3fab1ba3e401e436faeb247d39
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/org/jboss/threads/Substitutions.java
@@ -44,7 +44,7 @@ static void onSpinWait() {
static final class Target_ThreadLocalResettingRunnable_Resetter {
@Substitute
static void run() {
Target_java_lang_Thread thread = (Target_java_lang_Thread) (Object) Thread.currentThread();
Target_java_lang_Thread thread = Target_java_lang_Thread.class.cast(Thread.currentThread());
thread.threadLocals = null;
thread.inheritableThreadLocals = null;
}

0 comments on commit 536b219

Please sign in to comment.
You can’t perform that action at this time.