support per thread memory share among threads