You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix CI failures across release/debug, MSVC, GCC, 32-bit and clang-format
Aggregated fixes for issues surfaced by CI after the main feature
commits landed:
* arenabins.h Bitmap: add a constexpr default ctor so threadalloc.h's
default_alloc satisfies clang require_constant_initialization.
* redblacktree.h::print: initialise s_indent (GCC -Wmaybe-uninitialized).
* sizeclasstable.h: add operator!= alongside operator== for Apple Clang
gnu++17; restore sentinel slot's slab_mask = ~size_t(0) so the
bounds-checked memcpy shim treats foreign pointers as unbounded;
fix 32-bit overflow in start_of_object by routing through slab_index.
* largearenarange test: pass MinBaseSizeBits<Pal>() as the
MIN_REFILL_SIZE_BITS so PalRange has enough to reserve on Windows.
* smallarenarange test: MSVC rejects alignas(MIN_CHUNK_SIZE) on static
storage; oversize the backing buffers and align at runtime.
* arena test mock_index: replace the indirect probe in can_consolidate
with an explicit in-range guard (GCC -Warray-bounds saw the OOB path
even with SNMALLOC_ASSUME).
* Wrap assert-only test locals in UNUSED(...) for NDEBUG builds; use
size_t{} literals to silence -Wsign-conversion under clang/UBSan/TSan.
* Apply clang-format-15 fixes from CI verbatim (13 files).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments