diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2022-10-15 11:24:00 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2022-10-17 12:42:08 +0300 |
commit | f970259118e2d9316eff0f59692f5f61363cfe72 (patch) | |
tree | 23855f6e7b1a80384078cc05c56211e4c9454981 /win32_threads.c | |
parent | e7e7c4c984b1516a46e196ad6ab14b1e67d13cae (diff) | |
download | bdwgc-f970259118e2d9316eff0f59692f5f61363cfe72.tar.gz |
Change type of GC_collecting variable to match atomic operations over it
(refactoring)
* include/private/gc_locks.h [!GC_WIN32_THREADS && GC_PTHREADS]
(GC_collecting): Change type from GC_bool to unsigned char.
* pthread_support.c (GC_collecting): Likewise.
* include/private/gc_locks.h [!GC_WIN32_THREADS && GC_PTHREADS
&& AO_HAVE_char_store] (ENTER_GC, EXIT_GC): Remove cast to unsigned
char*.
* pthread_support.c (GC_collecting): Move down to be near is_collecting.
* pthread_support.c [AO_HAVE_char_load && !BASE_ATOMIC_OPS_EMULATED]
(is_collecting): Likewise.
* pthread_support.c [!AO_HAVE_char_load || BASE_ATOMIC_OPS_EMULATED]
(is_collecting): Cast to GC_bool.
Diffstat (limited to 'win32_threads.c')
0 files changed, 0 insertions, 0 deletions