diff options
| author | Alexey Borzenkov <[email protected]> | 2022-02-10 16:47:41 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:47:41 +0300 |
| commit | 22d92781ba2a10b7fb5b977b7d1a5c40ff53885f (patch) | |
| tree | 852611fd27f734847435b37aa5b0ad5d8b1c10ac /library/cpp/lfalloc | |
| parent | 667a4ee7da2e004784b9c3cfab824a81e96f4d66 (diff) | |
Restoring authorship annotation for Alexey Borzenkov <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/lfalloc')
| -rw-r--r-- | library/cpp/lfalloc/lf_allocX64.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/lfalloc/lf_allocX64.h b/library/cpp/lfalloc/lf_allocX64.h index fd2a906d6ff..408fefbdc67 100644 --- a/library/cpp/lfalloc/lf_allocX64.h +++ b/library/cpp/lfalloc/lf_allocX64.h @@ -889,15 +889,15 @@ static void* SlowLFAlloc(int nSizeIdx, int blockSize, EDefrag defrag) { IncrementCounter(CT_SLOW_ALLOC_CNT, 1); TLFLockHolder ls; - for (;;) { - bool locked = ls.TryLock(&LFGlobalLock); + for (;;) { + bool locked = ls.TryLock(&LFGlobalLock); void* res = LFAllocFromCurrentChunk(nSizeIdx, blockSize, 1); if (res) { return res; // might happen when other thread allocated new current chunk } - if (locked) { - break; - } + if (locked) { + break; + } } for (;;) { uintptr_t nChunk; |
