From: Andrew Au Date: Fri, 13 Aug 2021 01:35:15 +0000 (-0700) Subject: Avoid checking for ephemeral heap segment in DumpGen (#2501) X-Git-Tag: submit/tizen/20220302.040122~21^2^2~154 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=139ab066148f22631681f583e6dff6f9932cc475;p=platform%2Fcore%2Fdotnet%2Fdiagnostics.git Avoid checking for ephemeral heap segment in DumpGen (#2501) --- diff --git a/src/Microsoft.Diagnostics.ExtensionCommands/ClrMDHelper.cs b/src/Microsoft.Diagnostics.ExtensionCommands/ClrMDHelper.cs index 4f6a631cb..40b9662a5 100644 --- a/src/Microsoft.Diagnostics.ExtensionCommands/ClrMDHelper.cs +++ b/src/Microsoft.Diagnostics.ExtensionCommands/ClrMDHelper.cs @@ -721,18 +721,12 @@ namespace Microsoft.Diagnostics.ExtensionCommands switch (generation) { case GCGeneration.Generation0: - if (segment.IsEphemeralSegment) - { - start = segment.Generation0.Start; - end = segment.Generation0.End; - } + start = segment.Generation0.Start; + end = segment.Generation0.End; return start != end; case GCGeneration.Generation1: - if (segment.IsEphemeralSegment) - { - start = segment.Generation1.Start; - end = segment.Generation1.End; - } + start = segment.Generation1.Start; + end = segment.Generation1.End; return start != end; case GCGeneration.Generation2: if (!(segment.IsLargeObjectSegment || segment.IsPinnedObjectSegment))