diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2018-11-07 23:34:04 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2018-11-07 23:34:04 +0300 |
commit | 93374170974aba0e9992c5acedb52d887f237a93 (patch) | |
tree | 35d345fc070dd3d5cbbc68b2dd60e886c7aad900 /mark.c | |
parent | 36a6d79e182861a70c53a604e36bb34a8bad7bd1 (diff) | |
download | bdwgc-93374170974aba0e9992c5acedb52d887f237a93.tar.gz |
Use GC_WORD_MAX macro across all C source files
(code refactoring)
* alloc.c (GC_collect_at_heapsize, GC_compute_heap_usage_percent,
GC_add_to_heap, GC_expand_hp_inner): Use GC_WORD_MAX instead of
(word)-1.
* dyn_load.c [DATASTART_IS_FUNC]
(GC_register_dynamic_libraries_dl_iterate_phdr): Likewise.
* finalize.c [KEEP_BACK_PTRS] (GC_notify_or_invoke_finalizers):
Likewise.
* headers.c (GC_install_counts): Likewise.
* include/private/thread_local_alloc.h [GC_GCJ_SUPPORT] (ERROR_FL):
Likewise.
* os_dep.c [NEED_FIND_LIMIT || USE_PROC_FOR_LIBRARIES] (GC_find_limit):
Likewise.
* os_dep.c [MPROTECT_VDB && DARWIN] (GC_mprotect_thread): Likewise.
* pthread_support.c [PARALLEL_MARK] (GC_mark_thread): Likewise.
* win32_threads.c (ADDR_LIMIT): Likewise.
* win32_threads.c [PARALLEL_MARK] (GC_mark_thread): Likewise.
* alloc.c (GC_least_plausible_heap_addr): Use GC_WORD_MAX instead of
ONES macro.
* include/private/gc_priv.h [STACK_GROWS_DOWN] (MAKE_COOLER): Likewise.
* mark.c (GC_set_hdr_marks): Likewise.
* alloc.c (GC_WORD_MAX): Remove definition (in this file).
* headers.c (GC_install_counts): Reformat code.
* include/private/gc_priv.h (ONES): Rename to GC_WORD_MAX.
Diffstat (limited to 'mark.c')
-rw-r--r-- | mark.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -161,7 +161,7 @@ GC_INNER void GC_set_hdr_marks(hdr *hhdr) } # else for (i = 0; i < divWORDSZ(n_marks + WORDSZ); ++i) { - hhdr -> hb_marks[i] = ONES; + hhdr -> hb_marks[i] = GC_WORD_MAX; } # endif # ifdef MARK_BIT_PER_OBJ |