-
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.
Define internal macro for a number-to-pointer conversion
(refactoring) Issue #627 (bdwgc). Convert an unsigned value to a void pointer. Typically used to print a numeric value using "%p" format specifier. The pointer is not supposed to be dereferenced. * headers.c (GC_install_counts): Use NUMERIC_TO_VPTR(). * include/private/dbg_mlc.h [KEEP_BACK_PTRS || PRINT_BLACK_LIST] (MARKED_FOR_FINALIZATION, MARKED_FROM_REGISTER, NOT_MARKED): Likewise. * misc.c [E2K] (GC_call_with_stack_base): Likewise. * pthread_stop_world.c [NACL] (GC_suspend_all): Likewise. * pthread_support.c [PARALLEL_MARK && HAVE_PTHREAD_SETNAME_NP_WITH_TID_AND_ARG] (set_marker_thread_name): Likewise. * pthread_support.c [GC_PTHREADS_PARAMARK] (GC_start_mark_threads_inner): Likewise. * pthread_support.c [E2K] (GC_get_my_stackbottom): Likewise. * reclaim.c (GC_start_reclaim): Likewise. * tests/gctest.c (INT_TO_SEXPR, reverse_test_inner, typed_test): Likewise. * thread_local_alloc.c (return_freelists, GC_init_thread_local): Likewise. * win32_threads.c [PARALLEL_MARK && !GC_PTHREADS_PARAMARK] (GC_start_mark_threads_inner): Likewise. * win32_threads.c (GC_win32_start_inner): Likewise. * win32_threads.c [GC_WINMAIN_REDIRECT] (GC_waitForSingleObjectInfinite): Likewise. * include/private/dbg_mlc.h [CPP_WORDSZ!=32] (GC_FREED_MEM_MARKER, START_FLAG, END_FLAG): Add outermost parentheses. * include/private/gc_priv.h (NUMERIC_TO_VPTR): New macro. * pthread_support.c [E2K] (GC_record_stack_base, GC_set_stackbottom): Remove redundant parentheses. * win32_threads.c [CPPCHECK] (GC_use_threads_discovery): Add extra parentheses.
- Loading branch information
Showing
10 changed files
with
39 additions
and
33 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
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