see g_mark and g_resolve