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
Requirements / Architecture