summaryrefslogtreecommitdiffstats
path: root/library/cpp/containers/stack_array/stack_array.cpp
diff options
context:
space:
mode:
authorantoshkka <[email protected]>2025-09-25 02:20:37 +0300
committerantoshkka <[email protected]>2025-09-25 02:50:07 +0300
commit6765091d97d7d54f600250b29951d91017157e90 (patch)
treef32667c1eaa37c99ce17c84ef7d53dc4ff87ed89 /library/cpp/containers/stack_array/stack_array.cpp
parent689931df9a2884ae8866523011cfe8105b26b230 (diff)
feat util: fix ThreadSanitizer reported data race
``` WARNING: ThreadSanitizer: data race (pid=123179) Read of size 8 at 0x0000065aad98 by thread T14: #0 NSystemInfo::CachedNumberOfCpus() util/system/info.cpp:241:10 (taxi-uservices-userver-core-tests+0x4155bba) #1 engine::(anonymous namespace)::TaskProcessorThreadStartedHook() userver/core/src/engine/task/task_processor.cpp:100:15 (taxi-uservices-userver-core-tests+0x5306bc8) #2 engine::TaskProcessor::PrepareWorkerThread(unsigned long) userver/core/src/engine/task/task_processor.cpp:347:5 (taxi-uservices-userver-core-tests+0x5306bc8) ``` The change on a hot path is equivalent to the previously compiler generated x86 code (just a `load` instruction). On other platforms this could actually fix a data race. commit_hash:acb1fe1b8f3075cc27b18aab4f1bd0b88292c270
Diffstat (limited to 'library/cpp/containers/stack_array/stack_array.cpp')
0 files changed, 0 insertions, 0 deletions