JVMCI compilers need to release resources tied to a thread-local variable when the associated thread is exiting. The JDK internally uses the jdk.internal.misc.TerminatingThreadLocal class for this purpose. This issue exists to re-export the TerminatingThreadLocal functionality to JVMCI compilers.