double checked D_mem