| 1173 | static TLFLockData LFLockThreadInfo; |
| 1174 | |
| 1175 | static Y_FORCE_INLINE void IncrementCounter(ELFAllocCounter counter, size_t value) { |
| 1176 | #ifdef LFALLOC_YT |
| 1177 | TThreadAllocInfo* thr = pThreadInfo; |
| 1178 | if (thr) { |
| 1179 | thr->LocalCounters[counter].Increment(value); |
| 1180 | } else { |
| 1181 | AtomicAdd(GlobalCounters[counter], value); |
| 1182 | } |
| 1183 | #endif |
| 1184 | } |
| 1185 | |
| 1186 | extern "C" i64 GetLFAllocCounterFast(int counter) { |
| 1187 | #ifdef LFALLOC_YT |
no test coverage detected