diff options
Diffstat (limited to 'openmp/runtime/src/kmp_alloc.cpp')
-rw-r--r-- | openmp/runtime/src/kmp_alloc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openmp/runtime/src/kmp_alloc.cpp b/openmp/runtime/src/kmp_alloc.cpp index e2d65b38510..b7d4732b45c 100644 --- a/openmp/runtime/src/kmp_alloc.cpp +++ b/openmp/runtime/src/kmp_alloc.cpp @@ -299,7 +299,7 @@ static void __kmp_bget_dequeue(kmp_info_t *th) { { volatile void *old_value = TCR_SYNC_PTR(th->th.th_local.bget_list); while (!KMP_COMPARE_AND_STORE_PTR(&th->th.th_local.bget_list, - CCAST(void *, old_value), NULL)) { + CCAST(void *, old_value), nullptr)) { KMP_CPU_PAUSE(); old_value = TCR_SYNC_PTR(th->th.th_local.bget_list); } @@ -1696,7 +1696,7 @@ void *___kmp_fast_allocate(kmp_info_t *this_thr, size_t size KMP_SRC_LOC_DECL) { // threads only) // pop the head of the sync free list, push NULL instead while (!KMP_COMPARE_AND_STORE_PTR( - &this_thr->th.th_free_lists[index].th_free_list_sync, ptr, NULL)) { + &this_thr->th.th_free_lists[index].th_free_list_sync, ptr, nullptr)) { KMP_CPU_PAUSE(); ptr = TCR_SYNC_PTR(this_thr->th.th_free_lists[index].th_free_list_sync); } |