예제 #1
0
파일: GCEvent.cs 프로젝트: CheneyWu/coreclr
        // For true/false groups, return whether that group is set.
        private bool CondemnedReasonGroupSet(CondemnedReasonGroup Group)
        {
            if (PerHeapCondemnedReasons == null)
            {
                return false;
            }

            int HeapIndexHighestGen = 0;
            if (PerHeapCondemnedReasons.Length != 1)
            {
                HeapIndexHighestGen = FindFirstHighestCondemnedHeap();
            }

            return (PerHeapCondemnedReasons[HeapIndexHighestGen].CondemnedReasonGroups[(int)Group] != 0);
        }
예제 #2
0
파일: GCEvent.cs 프로젝트: CheneyWu/coreclr
 private void AddCondemnedReason(Dictionary<CondemnedReasonGroup, int> ReasonsInfo, CondemnedReasonGroup Reason)
 {
     if (!ReasonsInfo.ContainsKey(Reason))
         ReasonsInfo.Add(Reason, 1);
     else
         (ReasonsInfo[Reason])++;
 }