code: private static ThreadState state()
      {
          ThreadState state=(ThreadState)__states.get();
          if (state==null)
          {
              state=new ThreadState();
              __states.set(state);
          }
          return state;
      }
docs: /* ------------------------------------------------------------