Skip to content

rocr: Release vmem handles before agent destruction#292

Closed
ypapadop-amd wants to merge 1 commit intoROCm:amd-stagingfrom
ypapadop-amd:release-handle-before-agent-destruction
Closed

rocr: Release vmem handles before agent destruction#292
ypapadop-amd wants to merge 1 commit intoROCm:amd-stagingfrom
ypapadop-amd:release-handle-before-agent-destruction

Conversation

@ypapadop-amd
Copy link
Contributor

This PR clears the vmem handles before the agents are destroyed during DestroyAgents().

If the handles are not cleared, mapped_handle_map_::allowed_agents::~MappedHandleAllowedAgent() is called during ~Runtime which will try to make a call to a dangling pointer to an Agent object.

@ypapadop-amd ypapadop-amd deleted the release-handle-before-agent-destruction branch March 26, 2025 03:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants