Exemple #1
0
 public static void DelRef(int u)
 {
     lock (padlock)
     {
         MarkAndSweep.UnRef(u);
     }
 }
Exemple #2
0
 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();
         }
     }
 }