memory allocator/async queue refactoring