File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
compiler-rt/lib/scudo/standalone/tests Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1475,17 +1475,17 @@ struct TestInitSizeTSDExclusiveConfig : public TestInitSizeConfig {
14751475 template <class A > using TSDRegistryT = scudo::TSDRegistryExT<A>;
14761476};
14771477
1478- template <class AllocatorT >
1479- void RunStress () {
1478+ template <class AllocatorT > void RunStress () {
14801479 auto Allocator = std::unique_ptr<AllocatorT>(new AllocatorT ());
14811480
14821481 // This test is designed to try and have many threads trying to initialize
14831482 // the TSD at the same time. Make sure this doesn't crash.
14841483 std::atomic_bool StartRunning = false ;
1485- std::vector<std::thread*> threads;
1484+ std::vector<std::thread *> threads;
14861485 for (size_t I = 0 ; I < 16 ; I++) {
1487- threads.emplace_back (new std::thread ([&Allocator, &StartRunning] (){
1488- while (!StartRunning.load ());
1486+ threads.emplace_back (new std::thread ([&Allocator, &StartRunning]() {
1487+ while (!StartRunning.load ())
1488+ ;
14891489
14901490 void *Ptr = Allocator->allocate (10 , Origin);
14911491 EXPECT_TRUE (Ptr != nullptr );
@@ -1497,7 +1497,7 @@ void RunStress() {
14971497
14981498 StartRunning = true ;
14991499
1500- for (auto * thread : threads) {
1500+ for (auto * thread : threads) {
15011501 thread->join ();
15021502 delete thread;
15031503 }
You can’t perform that action at this time.
0 commit comments