コード例 #1
0
 public override void Visit(GCMoveEvent ev)
 {
     for (int i = 0; i < ev.NewObjectPointers.Count; i++)
     {
         if (allocationsTracker.TryGetValue(ev.OldObjectPointers[i], out var allocation))
         {
             allocationsTracker[ev.NewObjectPointers[i]] = allocation;
             allocationsTracker.Remove(ev.OldObjectPointers[i]);
         }
     }
 }
コード例 #2
0
 public override void Visit(GCMoveEvent ev)
 {
     for (int i = 0; i < ev.NewObjectPointers.Count; i++)
     {
         if (allocationsTracker.TryGetValue(ev.OldObjectPointers[i], out var allocation))
         {
             allocationsTracker[ev.NewObjectPointers[i]] = allocation;
             allocationsTracker.Remove(ev.OldObjectPointers[i]);
         }
         else
         {
             Console.WriteLine("Scary stuff, moving something that doesn't exist.");
         }
     }
 }
コード例 #3
0
ファイル: LogEventVisitor.cs プロジェクト: wjohnke/CSS18
 public virtual void Visit(GCMoveEvent ev)
 {
 }