Skip to content

Fix return values from jemalloc hooks #117

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

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

igchor
Copy link
Member

@igchor igchor commented Jan 9, 2024

For OS provider, merge, split and commits are nops. This means we should return false, not true from
those hooks.

Ref: https://github.com/memkind/memkind/blob/c425635feb0367c43da8fa0deadb50a4bc127988/src/memkind_arena.c

@kswiecicki this should fix the ASAN issue.

@igchor igchor requested a review from a team as a code owner January 9, 2024 18:39
For OS provider, merge, split and commits are nops.
This means we should return false, not true from
those hooks.

Ref: https://github.com/memkind/memkind/blob/c425635feb0367c43da8fa0deadb50a4bc127988/src/memkind_arena.c
@igchor igchor force-pushed the fix_hooks_jemalloc branch from cc61364 to 459a492 Compare January 9, 2024 18:47
@igchor
Copy link
Member Author

igchor commented Jan 9, 2024

Eventually, we'll need to implement split, merge, and commit as functions in the provider. I've added TODOs for now.

@bratpiorka bratpiorka requested a review from ldorau January 10, 2024 07:48
@bratpiorka
Copy link
Contributor

FYI: I added a JIRA task related to added TODO

@ldorau ldorau merged commit a75e087 into oneapi-src:main Jan 10, 2024
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.

3 participants