Update shared_memory