Skip to content
  • Ondrej Sury's avatar
    Use max_align_t for memory sizeinfo alignment on OpenBSD · 6eca4b40
    Ondrej Sury authored and Ondřej Surý's avatar Ondřej Surý committed
    On OpenBSD and more generally on platforms without either jemalloc or
    malloc_(usable_)size, we need to increase the alignment for the memory
    to sizeof(max_align_t) as with plain sizeof(void *), the compiled code
    would be crashing when accessing the returned memory.
    6eca4b40