Skip to content

Add missing annotations to base_alloc_global #330

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
Mar 13, 2024

Conversation

igchor
Copy link
Member

@igchor igchor commented Mar 12, 2024

Whenever allocation larger than the largest allocation class was requested base_alloc_global was calling ba_os_alloc and wasn't marking the memory in any way. This was problematic as address returned from ba_os_alloc could have been the same as an address used for other instance of umf_ba_pool_t. If that other instance had been destroyed the memory address would still be marked as inaccessible.

This fixes build on: #88

@igchor igchor requested a review from a team as a code owner March 12, 2024 19:29
Whenever allocation larger than the largest allocation class
was requested base_alloc_global was calling ba_os_alloc and
wasn't marking the memory in any way. This was problematic as
address returned from ba_os_alloc could have been the same as
an address used for other instance of umf_ba_pool_t. If that
other instance had been destroyed the memory address would
still be marked as inaccessible.
@bratpiorka bratpiorka merged commit 3f67e0e into oneapi-src:main Mar 13, 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