code: static final void eraseThreadLocals(Thread thread) {
      U.putObject(thread, THREADLOCALS, null);
      U.putObject(thread, INHERITABLETHREADLOCALS, null);
    }
docs: Erases ThreadLocals by nulling out Thread maps.