zhangyuan master finish function with std::string. not share_mem