Function TempAlloc.getState
Allows caller to cache the state class on the stack and pass it in as a parameter. This is ugly, but results in a speed boost that can be significant in some cases because it avoids a thread-local storage lookup. Also used internally.
static scid .core .memory .TempAlloc .State getState
();