memory-pool: support accessor

It will reduce memory usage without GC!