Skip to content

[mimalloc] Disable assertions in emmalloc backend#23016

Merged
kripken merged 1 commit intoemscripten-core:mainfrom
kleisauke:mimalloc-disable-assertions
Nov 26, 2024
Merged

[mimalloc] Disable assertions in emmalloc backend#23016
kripken merged 1 commit intoemscripten-core:mainfrom
kleisauke:mimalloc-disable-assertions

Conversation

@kleisauke
Copy link
Collaborator

No description provided.

# TODO: add build modes that include debug checks 1,2,3
'-DMI_DEBUG=0',
# disable `assert()` in the underlying emmalloc allocator
'-DNDEBUG',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another option would be to make libmimalloc also inherit from DebugLibrary, which would add a debug variation. But if we don't have a specific reason to want that, I guess it would be wasteful.

@kripken kripken merged commit d0a2dce into emscripten-core:main Nov 26, 2024
@kleisauke kleisauke deleted the mimalloc-disable-assertions branch November 26, 2024 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants