Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

small: fix incorrect mempool group creation #6678

Conversation

EvgenyMekhanik
Copy link
Contributor

If slab order of first several pools was equal to zero,
all these pools added to same group with pools with slab
order is equal to one. It's leds to incorrect behavior
of smfree function, because this function relies on
same slab order size of all pools in mempool group.
Fix this and add assertion and test to check it.

Closes #6659

If slab order of first several pools was equal to zero,
all these pools added to same group with pools with slab
order is equal to one. It's leds to incorrect behavior
of `smfree` function, because this function relies on
same slab order size of all pools in mempool group.
Fix this and add assertion and test to check it.

Closes #6659
@Korablev77 Korablev77 added the full-ci Enables all tests for a pull request label Dec 6, 2021
@Korablev77 Korablev77 merged commit 173ce9f into master Dec 7, 2021
@Korablev77 Korablev77 deleted the mechanik20051988/gh-6659-fix-segmentation-fault-on-apple-m1 branch December 7, 2021 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
full-ci Enables all tests for a pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Apple M1, 2.10_beta segfault on restart
2 participants