Skip to content

Restrict access to MemoryResourceProxy in ManagedMemoryResource #94

@LittleHuba

Description

@LittleHuba

What

Currently ManagedMemoryResource provides a public API to access its underlying MemoryResourceProxy.

This is "bad" as it encourages any user of this ManagedMemoryResource interface to use it, which is NOT intended.

Only our PolymorphicOffsetPtrAllocator shall access it.

How

  • Remove the public visibility of getMemoryResourceProxy() in ManagedMemoryResource
  • Change the signature of the ctor of PolymorphicOffsetPtrAllocator to get a ManagedMemoryResource
  • Only allow PolymorphicOffsetPtrAllocator to call getMemoryResourceProxy()

Estimates for realization

  • Effort medium
  • No impact on users expected

Category

  • Affects Detailed Design

Requirements / Architecture

  • Requirements / Architecture are not affected by this change?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions