Initial import memory manager
Merge remote-tracking branch 'remotes/local_v/memory_manager'