Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refine GC_calloc_typed_descr_s to support pointers larger than words
Issue #627 (bdwgc). * include/gc/gc_typed.h (GC_CALLOC_TYPED_DESCR_PTRS): New macro. * include/gc/gc_typed.h (GC_CALLOC_TYPED_DESCR_WORDS): Add comment (that the value is the number of both "normal" and "pointer-sized" words). * include/gc/gc_typed.h [!GC_BUILD] (GC_calloc_typed_descr_s.opaque_p): New field. * include/gc/gc_typed.h [!GC_BUILD] (GC_calloc_typed_descr_s.opaque): Change elements count from GC_CALLOC_TYPED_DESCR_WORDS to GC_CALLOC_TYPED_DESCR_WORDS-GC_CALLOC_TYPED_DESCR_PTRS. * typd_mlc.c (GC_calloc_typed_descr_s): Move complex_d field upper to be the first field. * typd_mlc.c (GC_calloc_prepare_explicitly_typed): Update static assert about size of GC_calloc_typed_descr_s to use both GC_CALLOC_TYPED_DESCR_WORDS and GC_CALLOC_TYPED_DESCR_PTRS.
- Loading branch information