From ae5e48376422743341394c374be3732808d789cb Mon Sep 17 00:00:00 2001 From: Marek Safar Date: Thu, 13 Apr 2017 17:54:47 +0200 Subject: [PATCH] [linker] Update linker to recognize debug async notification methods. Fixes #55037 (#2004) --- tools/linker/MobileMarkStep.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tools/linker/MobileMarkStep.cs b/tools/linker/MobileMarkStep.cs index 1e41495f0f14..f7b2dbe02b27 100644 --- a/tools/linker/MobileMarkStep.cs +++ b/tools/linker/MobileMarkStep.cs @@ -259,6 +259,19 @@ void MarkMetadata (IMetadataTokenProvider tp) void ProcessCorlib (TypeDefinition type) { switch (type.Namespace) { + case "System.Runtime.CompilerServices.AsyncTaskMethodBuilder": + if (DebugBuild) + MarkNamedMethod (type, "SetNotificationForWaitCompletion"); + break; + case "System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1": + if (DebugBuild) + MarkNamedMethod (type, "SetNotificationForWaitCompletion"); + break; + case "System.Threading.Tasks.Task": + if (DebugBuild) + MarkNamedMethod (type, "NotifyDebuggerOfWaitCompletion"); + break; + case "System.Security.Cryptography": switch (type.Name) { case "Aes":