Reference
SPARK-39357 Fix pmCache memory leak caused by IsolatedClassLoader by tianshuang · Pull Request #36741 · apache/spark · GitHub
java - Effect of ThreadLocals and side-by-side classloading - Stack Overflow
java - How isolated are static variables? - Software Engineering Stack Exchange