Skip to content

[Feature] ProxyService avoid keeping ownership of the RegisteredMemory #540

@liangyuRain

Description

@liangyuRain

Hi, the current implementation of proxy service keeps ownership of RegisteredMemory:

memories_.push_back(memory);

Thus, any isCuMemMapAlloc memory added to proxy service won't be able to be released unless proxy service is destructed, which may cause trouble for a long running program. Can we avoid doing this? Maybe we can add a mechanism to detect if user issues operations on the memory id of a released memory or simply make the user responsible for not doing so.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions