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
{{ message }}
Repository navigation
Box[T], Mutex[T], RwLock[T] and task cores of an over-aligned T (§16.4) are 16-aligned: std's with_alloc(sizeof[T]) has no alignment #2039
Found with #2022 (Vec buffers now aligned for their element). lib/std/box.w:13, sync.w:135/222, task.w:311 allocate with_alloc(sizeof[T]()); the runtime allocator's payloads are 16-aligned, so Box.new(Al { ... }) with @[align(32)] b can place b at 16 mod 32. Expected: the allocation carries T's TypeLayout alignment (an aligned with_alloc taking alignof[T], freed through the matching path), with a fixture that prints addr % N == 0 like behav_2022_vec_over_aligned_elements.
Fixed on fix-2036 (PR #2044, commit c80d078). with_alloc_aligned places the value, and with_free recognizes the placement. Box/Mutex/RwLock/generator cores and LLVM's Box.new pass the model alignment, and alignof reads TypeLayout for every kind. Vec keeps the size-derived alignment because its with-abi §3 header has no alignment word. Fixture: behav_2039_heap_cells_over_aligned.
Activity
ehartford commentedon Oct 3, 2026
Fixed on fix-2036 (PR #2044, commit c80d078). with_alloc_aligned places the value, and with_free recognizes the placement. Box/Mutex/RwLock/generator cores and LLVM's Box.new pass the model alignment, and alignof reads TypeLayout for every kind. Vec keeps the size-derived alignment because its with-abi §3 header has no alignment word. Fixture: behav_2039_heap_cells_over_aligned.
emit-C nullable-pointer Options (#2036); over-aligned heap cells and …
ehartford commentedon Oct 3, 2026
Fixed on main (stack #2045: #2037 + #2044; seed-driven battery GREEN on 0577d56, tree identical to main).