Figure out rules for minimal alignment of system allocator #812
Labels
A-intptrcast
Area: affects int2ptr and ptr2int casts
A-shims
Area: This affects the external function shims
C-bug
Category: This is a bug.
libstd assumes that the system allocator (which does not have an explicitly alignment parameter) still provides some minimal alignment, given by
MIN_ALIGN
:However, at least on Unix,
MIN_ALIGN
is only exploited for allocations where the size is at least as big as the alignment. On Windows, OTOH,MIN_ALIGN
is exploited regardless of the size of the allocation.Does that mean that we can reduce the alignment we provide for small allocations?
The text was updated successfully, but these errors were encountered: