public static void DelRef(int u) { lock (padlock) { MarkAndSweep.UnRef(u); } }
public static void AddRef(int u) { lock (padlock) { G.Clear(); MarkAndSweep.Ref(u); if (resize) { //MarkAndSweep.GarbageCollect(ref H, ref T); resize = false; } } }
public static void AddRef(int u) { lock (padlock) { addrefsw.Start(); G.Clear(); MarkAndSweep.Ref(u); addrefsw.Stop(); if (resize) { GCsw.Start(); MarkAndSweep.GarbageCollect(ref H, ref T); resize = false; GCsw.Start(); } } }