Skip to content

Draft: Fix alignment of Capability

Ben Gamari requested to merge wip/T22965-9.2 into ghc-9.2

In #22965 (closed) we noticed that changes in the size of Capability can result in unsound behavior due to the align pragma claiming an alignment which we don't in practice observe. Avoid this by statically asserting that the size is a multiple of the alignment and fix the bug that this found.

Fixes #22965 (closed) on ghc-9.2.

Edited by Ben Gamari

Merge request reports