Skip to content

Alignment issue in mi_malloc_aligned when requested size = alignment (regression on dev-slice) #700

Closed

Description

Hello,

We recently tried to bump mimalloc from 1.7.9 to 2.0.9.
However we noticed a regression in mi_malloc_aligned when size = alignment for the following values: 256, 512, 1024 (all other values down to 8 and up to 1MB are correctly handled though).
Tests done on windows using Visual Studio 2022, MI_PADDING and MI_DEBUG are not set.

Activity

  1. added a commit that references this issue on Mar 20, 2023
  2. daanx commented on Mar 20, 2023

    @daanx
    Collaborator

    Wow, that was a terrible bug; :-( Should be fixed in the latest dev-slice -- Thanks so much for the report!

  3. added a commit that references this issue on May 31, 2023
  4. added a commit that references this issue on May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions