示例#1
0
 public MemoryPressureHandle(long bytesAllocated)
 {
     GCUtil.AddMemoryPressure(bytesAllocated);
     this.bytesAllocated = bytesAllocated;
 }
示例#2
0
 protected override void Dispose(bool disposing)
 {
     GCUtil.RemoveMemoryPressure(this.bytesAllocated);
     base.Dispose(disposing);
 }