public uint GetNextThreadStaticsOffsetValue(TypeManagerHandle typeManagerHandle) { if (!_maxThreadLocalIndex.TryGetValue(typeManagerHandle.GetIntPtrUNSAFE(), out uint result)) { result = (uint)RuntimeAugments.GetHighestStaticThreadStaticIndex(typeManagerHandle); } _maxThreadLocalIndex[typeManagerHandle.GetIntPtrUNSAFE()] = checked (++result); return(result); }