Update g_shm.cpp