From 0cdcc2fac1a4f5af8ccf3c99a8d7e26a5af57857 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tom=C3=A1=C5=A1=20Rylek?= Date: Fri, 4 Oct 2019 02:57:35 -0700 Subject: [PATCH] Make SuperIlc resilient towards JIT no-op compilation phase (dotnet/coreclr#27020) Commit migrated from https://github.com/dotnet/coreclr/commit/ab953e35d2bfd762ff90e04d9a97e402cabd961e --- src/coreclr/src/tools/ReadyToRun.SuperIlc/BuildFolderSet.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/src/tools/ReadyToRun.SuperIlc/BuildFolderSet.cs b/src/coreclr/src/tools/ReadyToRun.SuperIlc/BuildFolderSet.cs index 3cd5b13..a516e4a 100644 --- a/src/coreclr/src/tools/ReadyToRun.SuperIlc/BuildFolderSet.cs +++ b/src/coreclr/src/tools/ReadyToRun.SuperIlc/BuildFolderSet.cs @@ -559,7 +559,7 @@ namespace ReadyToRun.SuperIlc { const int TopAppCount = 10; - IEnumerable selection = processes.OrderByDescending(process => process.DurationMilliseconds).Take(TopAppCount); + IEnumerable selection = processes.Where(process => !process.IsEmpty).OrderByDescending(process => process.DurationMilliseconds).Take(TopAppCount); int count = selection.Count(); if (count == 0) { -- 2.7.4