summaryrefslogtreecommitdiff
path: root/mark.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2022-03-22 09:30:56 +0300
committerIvan Maidanski <ivmai@mail.ru>2022-03-22 18:32:42 +0300
commit4bf077e7a2e04e2efbf570daed76507a046664f5 (patch)
treec4abae8a4da36f7b9f176f3a1026084a7ea80ad4 /mark.c
parent1421c2d45844c6a7ca8fc91548e91b9f7b079418 (diff)
downloadbdwgc-4bf077e7a2e04e2efbf570daed76507a046664f5.tar.gz
Fix data race in fail_proc1 of gctest
* tests/gctest.c [!DBG_HDRS_ALL] (fail_count): Change type from int to volatile AO_t. * tests/gctest.c [!DBG_HDRS_ALL] (fail_proc1): Use AO_fetch_and_add1 to update fail_count. * tests/gctest.c [!DBG_HDRS_ALL && !THREADS] (TEST_FAIL_COUNT): Cast n to AO_t. * tests/gctest.c [!DBG_HDRS_ALL] (run_one_test): Cast &fail_count to void* when passed to GC_is_heap_ptr().
Diffstat (limited to 'mark.c')
0 files changed, 0 insertions, 0 deletions