Skip to content

Conversation

@gunney1
Copy link
Contributor

@gunney1 gunney1 commented Sep 21, 2025

We can query whether an execution space uses a certain axom allocator id. If we pass the invalid allocator id, it crashes. This fixes the code to return false instead of crashing.
PR #1654 depends on this one.

Should return false for invalid allocator id.
Copy link
Member

@kennyweiss kennyweiss left a comment

Choose a reason for hiding this comment

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

Thanks @gunney1

* For Umpire allocator ids, the MemorySpace is the Umpire memory
* space. For MALLOC_ALLOCATOR_ID, the MemorySpace is
* MemorySpace::Malloc. Other values have no corresponding MemorySpace
* and will cause an unrecoverable exception.
Copy link
Member

Choose a reason for hiding this comment

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

Clarify: It's calling processAbort -- is it fair to call that an unrecoverable exception? Please consider rephrasing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do. Thanks.

@gunney1 gunney1 self-assigned this Sep 22, 2025
@gunney1 gunney1 added bug Something isn't working Core Issues related to Axom's 'core' component labels Sep 22, 2025
@gunney1 gunney1 added this to the 2025 Fall Release milestone Sep 22, 2025
Copy link
Member

@BradWhitlock BradWhitlock left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Copy link
Contributor

@Arlie-Capps Arlie-Capps left a comment

Choose a reason for hiding this comment

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

Thanks, Brian.

@gunney1 gunney1 merged commit 28f7c4b into develop Sep 22, 2025
15 checks passed
@gunney1 gunney1 deleted the bugfix/gunney/no-use-invalid-alloc-id branch September 22, 2025 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Core Issues related to Axom's 'core' component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants