-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide correct GC_uintptr_t, CPP_PTRSZ, GC_GRANULE_PTRS for CHERI
(a cherry-pick of commits 8120c8b, 4f431ac partly from capablevms/bdwgc) Issue #627 (bdwgc). Changes specific to CHERI capability systems are conditionally compiled using the macro __CHERI_PURE_CAPABILITY__. * include/gc/gc.h [_UINTPTR_T_DECLARED && !__MSYS__] (GC_uintptr_t): Define to uintptr_t. * include/gc/gc.h [__GNUC__ && !__INTEL_COMPILER && __CHERI_PURE_CAPABILITY__] (GC_reachable_here): Use "g" constraint instead of "X". * include/gc/gc_config_macros.h [__GNUC__ && __CHERI_PURE_CAPABILITY__]: Include stdint.h; reformat comment. * include/gc/gc_tiny_fl.h [!GC_GRANULE_BYTES && __CHERI_PURE_CAPABILITY__] (GC_GRANULE_PTRS): Define to 1 (instead of 2). * include/private/gcconfig.h [__CHERI_PURE_CAPABILITY__ && USE_MMAP] (USE_MUNMAP): Undefine; add TODO item. * include/private/gcconfig.h [!CPP_PTRSZ && __CHERI_PURE_CAPABILITY__] (CPP_PTRSZ): Define to __SIZEOF_POINTER__*8 instead of CPP_WORDSZ. Co-authored-by: Ivan Maidanski <[email protected]>
- Loading branch information
Showing
4 changed files
with
25 additions
and
10 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