Skip to content

Commit

Permalink
Revert "Force cleanup of ThreadLocal (#501)" (#579)
Browse files Browse the repository at this point in the history
This reverts commit c3b7703.
  • Loading branch information
jamezp authored Jul 2, 2024
1 parent 36c0a77 commit 995940e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 76 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
import org.jboss.arquillian.core.spi.Manager;
import org.jboss.arquillian.core.spi.NonManagedObserver;
import org.jboss.arquillian.core.spi.ObserverMethod;
import org.jboss.arquillian.core.spi.ThreadLocalUtil;
import org.jboss.arquillian.core.spi.Validate;
import org.jboss.arquillian.core.spi.context.ApplicationContext;
import org.jboss.arquillian.core.spi.context.Context;
Expand Down Expand Up @@ -280,9 +279,6 @@ public void shutdown() {
runtimeLogger.clear();

handledThrowables.remove();

//Force cleanup ThreadLocal:
ThreadLocalUtil.forceCleanupThreadLocal(handledThrowables);
}
if (shutdownException != null) {
UncheckedThrow.throwUnchecked(shutdownException);
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
import java.util.Stack;
import java.util.concurrent.ConcurrentHashMap;
import java.util.logging.Logger;

import org.jboss.arquillian.core.spi.ThreadLocalUtil;
import org.jboss.arquillian.core.spi.Validate;

/**
Expand Down Expand Up @@ -107,15 +105,10 @@ public void clearAll() {
deactivateAll();
}
activeStore.remove();

//Force cleanup ThreadLocal:
ThreadLocalUtil.forceCleanupThreadLocal(activeStore);

for (Map.Entry<T, ObjectStore> entry : stores.entrySet()) {
entry.getValue().clear();
}
stores.clear();

}
}

Expand Down

0 comments on commit 995940e

Please sign in to comment.