allow specify instance to choose malloc-pool for memory related helpers