Skip to content

Commit

Permalink
adding yields
Browse files Browse the repository at this point in the history
  • Loading branch information
zacklj89 committed Dec 19, 2023
1 parent cd2beca commit 45b80b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler-rt/lib/asan/asan_thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ AsanThread *AsanThread::Create(const void *start_data, uptr data_size,
#if SANITIZER_WINDOWS
while (atomic_load(&main_thread_created, memory_order_acquire) == 0) {
// If another thread is trying to be created before the main thread, wait.
internal_sched_yield();
}
#endif
uptr PageSize = GetPageSizeCached();
Expand Down

0 comments on commit 45b80b9

Please sign in to comment.