code: public static void removeAll() {
          InternalThreadLocalMap threadLocalMap = InternalThreadLocalMap.getIfSet();
          if (threadLocalMap == null) {
              return;
          }
  
          try {
              Object v = threadLocalMap.indexedVariable(variablesToRemoveIndex);
              if (v != null && v != InternalThreadLocalMap.UNSET) {
                  @SuppressWarnings("unchecked")
                  Set<FastThreadLocal<?>> variablesToRemove = (Set<FastThreadLocal<?>>) v;
                  FastThreadLocal<?>[] variablesToRemoveArray =
                          variablesToRemove.toArray(new FastThreadLocal[0]);
                  for (FastThreadLocal<?> tlv: variablesToRemoveArray) {
                      tlv.remove(threadLocalMap);
                  }
              }
          } finally {
              InternalThreadLocalMap.remove();
          }
      }
docs: Removes all {@link FastThreadLocal} variables bound to the current thread.  This operation is useful when you
  are in a container environment, and you don't want to leave the thread local variables in the threads you do not
  manage.