-
Notifications
You must be signed in to change notification settings - Fork 406
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove COOLER_THAN and change HOTTER_THAN macro to a functional style
(refactoring) Issue #627 (bdwgc). * include/private/gc_priv.h (COOLER_THAN): Remove. * include/private/gc_priv.h (HOTTER_THAN): Change macro to have two arguments; add comment. * include/private/gc_priv.h (MAKE_HOTTER): Rename x,y arguments to p,d. * include/private/gc_priv.h [!THREADS] (GC_is_static_root): Change type of argument from void* to ptr_t. * mark_rts.c [!THREADS] (GC_is_static_root): Likewise. * ptr_chck.c [!THREADS] (GC_on_stack): Likewise. * mark_rts.c [THREADS] (GC_push_all_stack_sections): Update condition according to MAKE_HOTTER defintion change. * mark_rts.c [!THREADS] (GC_push_all_stack_part_eager_sections): Likewise. * misc.c [!ALWAYS_SMALL_CLEAR_STACK && !STACK_NOT_SCANNED && !ASM_CLEAR_CODE && !THREADS] (GC_clear_stack_inner): Likewise. * misc.c [!THREADS] (GC_init, GC_call_with_gc_active): Likewise. * os_dep.c [!ECOS && !NOSYS && !SYMBIAN && EMSCRIPTEN && !AMIGA && !EMBOX && !HAIKU && !OS2 && !ANY_MSWIN && !GC_OPENBSD_THREADS && (!GC_SOLARIS_THREADS || _STRICT_STDC) && !CPPCHECK] (GC_get_main_stack_base): Likewise. * os_dep.c [GC_DARWIN_THREADS && !NO_PTHREAD_GET_STACKADDR_NP || GC_SOLARIS_THREADS && !_STRICT_STDC || !GET_MAIN_STACKBASE_SPECIAL] (GC_get_stack_base): Likewise. * os_dep.c [NEED_CALLINFO && SAVE_CALL_CHAIN && !(NARGS==0 && NFRAMES%2==0 && GC_HAVE_BUILTIN_BACKTRACE) && (I386 || SPARC)] (GC_save_callers): Likewise. * pthread_support.c (GC_call_with_gc_active): Likewise. * ptr_chck.c [!THREADS] (GC_on_stack): Likewise. * win32_threads.c [!WOW64_THREAD_CONTEXT_WORKAROUND] (GC_push_stack_for): Likewise.
- Loading branch information
Showing
7 changed files
with
37 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters