repo_name
stringclasses
6 values
pr_number
int64
512
78.9k
pr_title
stringlengths
3
144
pr_description
stringlengths
0
30.3k
author
stringlengths
2
21
date_created
timestamp[ns, tz=UTC]
date_merged
timestamp[ns, tz=UTC]
previous_commit
stringlengths
40
40
pr_commit
stringlengths
40
40
query
stringlengths
17
30.4k
filepath
stringlengths
9
210
before_content
stringlengths
0
112M
after_content
stringlengths
0
112M
label
int64
-1
1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/tests/JIT/Regression/JitBlue/GitHub_21625/GitHub_21625.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Runtime.CompilerServices; using System.Runtime.Intrinsics; using System.Runtime.Intrinsics.X86; namespace GitHub_21625 { public class test { public static Vector128<ushort> CreateScalar(ushort value) { if (Sse2.IsSupported) { return Sse2.ConvertScalarToVector128UInt32(value).AsUInt16(); } return SoftwareFallback(value); Vector128<ushort> SoftwareFallback(ushort x) { var result = Vector128<ushort>.Zero; Unsafe.WriteUnaligned(ref Unsafe.As<Vector128<ushort>, byte>(ref result), value); return result; } } static int Main() { ushort value = TestLibrary.Generator.GetUInt16(); Vector128<ushort> result = CreateScalar(value); if (result.GetElement(0) != value) { return 0; } for (int i = 1; i < Vector128<ushort>.Count; i++) { if (result.GetElement(i) != 0) { return 0; } } return 100; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Runtime.CompilerServices; using System.Runtime.Intrinsics; using System.Runtime.Intrinsics.X86; namespace GitHub_21625 { public class test { public static Vector128<ushort> CreateScalar(ushort value) { if (Sse2.IsSupported) { return Sse2.ConvertScalarToVector128UInt32(value).AsUInt16(); } return SoftwareFallback(value); Vector128<ushort> SoftwareFallback(ushort x) { var result = Vector128<ushort>.Zero; Unsafe.WriteUnaligned(ref Unsafe.As<Vector128<ushort>, byte>(ref result), value); return result; } } static int Main() { ushort value = TestLibrary.Generator.GetUInt16(); Vector128<ushort> result = CreateScalar(value); if (result.GetElement(0) != value) { return 0; } for (int i = 1; i < Vector128<ushort>.Count; i++) { if (result.GetElement(i) != 0) { return 0; } } return 100; } } }
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/libraries/Microsoft.CSharp/src/Microsoft/CSharp/RuntimeBinder/CSharpInvokeConstructorBinder.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Dynamic; using System.Numerics.Hashing; using Microsoft.CSharp.RuntimeBinder.Semantics; namespace Microsoft.CSharp.RuntimeBinder { internal sealed class CSharpInvokeConstructorBinder : DynamicMetaObjectBinder, ICSharpInvokeOrInvokeMemberBinder { public BindingFlag BindingFlags => 0; [RequiresUnreferencedCode(Binder.TrimmerWarning)] public Expr DispatchPayload(RuntimeBinder runtimeBinder, ArgumentObject[] arguments, LocalVariableSymbol[] locals) => runtimeBinder.DispatchPayload(this, arguments, locals); [RequiresUnreferencedCode(Binder.TrimmerWarning)] public void PopulateSymbolTableWithName(Type callingType, ArgumentObject[] arguments) => RuntimeBinder.PopulateSymbolTableWithPayloadInformation(this, callingType, arguments); public bool IsBinderThatCanHaveRefReceiver => true; public CSharpCallFlags Flags { get; } private readonly CSharpArgumentInfo[] _argumentInfo; CSharpArgumentInfo ICSharpBinder.GetArgumentInfo(int index) => _argumentInfo[index]; public bool StaticCall => true; public Type[] TypeArguments => Type.EmptyTypes; public string Name => ".ctor"; bool ICSharpInvokeOrInvokeMemberBinder.ResultDiscarded => false; private readonly RuntimeBinder _binder; private readonly Type _callingContext; [RequiresUnreferencedCode(Binder.TrimmerWarning)] public CSharpInvokeConstructorBinder( CSharpCallFlags flags, Type callingContext, IEnumerable<CSharpArgumentInfo> argumentInfo) { Flags = flags; _callingContext = callingContext; _argumentInfo = BinderHelper.ToArray(argumentInfo); _binder = new RuntimeBinder(callingContext); } public int GetGetBinderEquivalenceHash() { int hash = _callingContext?.GetHashCode() ?? 0; hash = HashHelpers.Combine(hash, (int)Flags); hash = HashHelpers.Combine(hash, Name.GetHashCode()); hash = BinderHelper.AddArgHashes(hash, TypeArguments, _argumentInfo); return hash; } public bool IsEquivalentTo(ICSharpBinder other) { var otherBinder = other as CSharpInvokeConstructorBinder; if (otherBinder == null) { return false; } if (Flags != otherBinder.Flags || _callingContext != otherBinder._callingContext || Name != otherBinder.Name || TypeArguments.Length != otherBinder.TypeArguments.Length || _argumentInfo.Length != otherBinder._argumentInfo.Length) { return false; } return BinderHelper.CompareArgInfos(TypeArguments, otherBinder.TypeArguments, _argumentInfo, otherBinder._argumentInfo); } [UnconditionalSuppressMessage("ReflectionAnalysis", "IL2026:RequiresUnreferencedCode", Justification = "This whole class is unsafe. Constructors are marked as such.")] public override DynamicMetaObject Bind(DynamicMetaObject target, DynamicMetaObject[] args) { BinderHelper.ValidateBindArgument(target, nameof(target)); BinderHelper.ValidateBindArgument(args, nameof(args)); return BinderHelper.Bind(this, _binder, BinderHelper.Cons(target, args), _argumentInfo, null); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Dynamic; using System.Numerics.Hashing; using Microsoft.CSharp.RuntimeBinder.Semantics; namespace Microsoft.CSharp.RuntimeBinder { internal sealed class CSharpInvokeConstructorBinder : DynamicMetaObjectBinder, ICSharpInvokeOrInvokeMemberBinder { public BindingFlag BindingFlags => 0; [RequiresUnreferencedCode(Binder.TrimmerWarning)] public Expr DispatchPayload(RuntimeBinder runtimeBinder, ArgumentObject[] arguments, LocalVariableSymbol[] locals) => runtimeBinder.DispatchPayload(this, arguments, locals); [RequiresUnreferencedCode(Binder.TrimmerWarning)] public void PopulateSymbolTableWithName(Type callingType, ArgumentObject[] arguments) => RuntimeBinder.PopulateSymbolTableWithPayloadInformation(this, callingType, arguments); public bool IsBinderThatCanHaveRefReceiver => true; public CSharpCallFlags Flags { get; } private readonly CSharpArgumentInfo[] _argumentInfo; CSharpArgumentInfo ICSharpBinder.GetArgumentInfo(int index) => _argumentInfo[index]; public bool StaticCall => true; public Type[] TypeArguments => Type.EmptyTypes; public string Name => ".ctor"; bool ICSharpInvokeOrInvokeMemberBinder.ResultDiscarded => false; private readonly RuntimeBinder _binder; private readonly Type _callingContext; [RequiresUnreferencedCode(Binder.TrimmerWarning)] public CSharpInvokeConstructorBinder( CSharpCallFlags flags, Type callingContext, IEnumerable<CSharpArgumentInfo> argumentInfo) { Flags = flags; _callingContext = callingContext; _argumentInfo = BinderHelper.ToArray(argumentInfo); _binder = new RuntimeBinder(callingContext); } public int GetGetBinderEquivalenceHash() { int hash = _callingContext?.GetHashCode() ?? 0; hash = HashHelpers.Combine(hash, (int)Flags); hash = HashHelpers.Combine(hash, Name.GetHashCode()); hash = BinderHelper.AddArgHashes(hash, TypeArguments, _argumentInfo); return hash; } public bool IsEquivalentTo(ICSharpBinder other) { var otherBinder = other as CSharpInvokeConstructorBinder; if (otherBinder == null) { return false; } if (Flags != otherBinder.Flags || _callingContext != otherBinder._callingContext || Name != otherBinder.Name || TypeArguments.Length != otherBinder.TypeArguments.Length || _argumentInfo.Length != otherBinder._argumentInfo.Length) { return false; } return BinderHelper.CompareArgInfos(TypeArguments, otherBinder.TypeArguments, _argumentInfo, otherBinder._argumentInfo); } [UnconditionalSuppressMessage("ReflectionAnalysis", "IL2026:RequiresUnreferencedCode", Justification = "This whole class is unsafe. Constructors are marked as such.")] public override DynamicMetaObject Bind(DynamicMetaObject target, DynamicMetaObject[] args) { BinderHelper.ValidateBindArgument(target, nameof(target)); BinderHelper.ValidateBindArgument(args, nameof(args)); return BinderHelper.Bind(this, _binder, BinderHelper.Cons(target, args), _argumentInfo, null); } } }
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/libraries/System.Reflection.Metadata/tests/PortableExecutable/PEBuilderTests.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Collections.Immutable; using System.IO; using System.Linq; using System.Reflection.Metadata; using System.Reflection.Metadata.Ecma335; using System.Reflection.Metadata.Tests; using Xunit; namespace System.Reflection.PortableExecutable.Tests { public class PEBuilderTests { #region Helpers private void VerifyPE(Stream peStream, Machine machine, byte[] expectedSignature = null) { peStream.Position = 0; using (var peReader = new PEReader(peStream)) { var headers = peReader.PEHeaders; var mdReader = peReader.GetMetadataReader(); // TODO: more validation (can we use MetadataVisualizer until managed PEVerifier is available)? VerifyStrongNameSignatureDirectory(peReader, expectedSignature); Assert.Equal(s_contentId.Stamp, unchecked((uint)peReader.PEHeaders.CoffHeader.TimeDateStamp)); Assert.Equal(s_guid, mdReader.GetGuid(mdReader.GetModuleDefinition().Mvid)); if (machine == Machine.Unknown) // Unknown machine type translates into AnyCpu, which is marked as I386 in the PE file Assert.Equal(Machine.I386, headers.CoffHeader.Machine); else Assert.Equal(machine, headers.CoffHeader.Machine); } } private static unsafe void VerifyStrongNameSignatureDirectory(PEReader peReader, byte[] expectedSignature) { var headers = peReader.PEHeaders; int rva = headers.CorHeader.StrongNameSignatureDirectory.RelativeVirtualAddress; int size = headers.CorHeader.StrongNameSignatureDirectory.Size; // Even if the image is not signed we reserve space for a signature. // Validate that the signature is in .text section. Assert.Equal(".text", headers.SectionHeaders[headers.GetContainingSectionIndex(rva)].Name); var signature = peReader.GetSectionData(rva).GetContent(0, size); AssertEx.Equal(expectedSignature ?? new byte[size], signature); } private static readonly Guid s_guid = new Guid("97F4DBD4-F6D1-4FAD-91B3-1001F92068E5"); private static readonly BlobContentId s_contentId = new BlobContentId(s_guid, 0x04030201); private static void WritePEImage( Stream peStream, MetadataBuilder metadataBuilder, BlobBuilder ilBuilder, MethodDefinitionHandle entryPointHandle, Blob mvidFixup = default(Blob), byte[] privateKeyOpt = null, bool publicSigned = false, Machine machine = 0, BlobBuilder? mappedFieldData = null) { var peHeaderBuilder = new PEHeaderBuilder(imageCharacteristics: entryPointHandle.IsNil ? Characteristics.Dll : Characteristics.ExecutableImage, machine: machine); var peBuilder = new ManagedPEBuilder( peHeaderBuilder, new MetadataRootBuilder(metadataBuilder), ilBuilder, entryPoint: entryPointHandle, flags: CorFlags.ILOnly | (privateKeyOpt != null || publicSigned ? CorFlags.StrongNameSigned : 0), deterministicIdProvider: content => s_contentId, mappedFieldData: mappedFieldData); var peBlob = new BlobBuilder(); var contentId = peBuilder.Serialize(peBlob); if (!mvidFixup.IsDefault) { new BlobWriter(mvidFixup).WriteGuid(contentId.Guid); } if (privateKeyOpt != null) { peBuilder.Sign(peBlob, content => SigningUtilities.CalculateRsaSignature(content, privateKeyOpt)); } peBlob.WriteContentTo(peStream); } public static IEnumerable<object[]> AllMachineTypes() { return ((Machine[])Enum.GetValues(typeof(Machine))).Select(m => new object[]{(object)m}); } #endregion [Fact] public void ManagedPEBuilder_Errors() { var hdr = new PEHeaderBuilder(); var ms = new MetadataRootBuilder(new MetadataBuilder()); var il = new BlobBuilder(); Assert.Throws<ArgumentNullException>(() => new ManagedPEBuilder(null, ms, il)); Assert.Throws<ArgumentNullException>(() => new ManagedPEBuilder(hdr, null, il)); Assert.Throws<ArgumentNullException>(() => new ManagedPEBuilder(hdr, ms, null)); Assert.Throws<ArgumentOutOfRangeException>(() => new ManagedPEBuilder(hdr, ms, il, strongNameSignatureSize: -1)); } [Theory] // Do BasicValidation on all machine types listed in the Machine enum [MemberData(nameof(AllMachineTypes))] public void BasicValidation(Machine machine) { using (var peStream = new MemoryStream()) { var ilBuilder = new BlobBuilder(); var metadataBuilder = new MetadataBuilder(); var entryPoint = BasicValidationEmit(metadataBuilder, ilBuilder); WritePEImage(peStream, metadataBuilder, ilBuilder, entryPoint, publicSigned: true, machine: machine); peStream.Position = 0; var actualChecksum = new PEHeaders(peStream).PEHeader.CheckSum; Assert.Equal(0U, actualChecksum); VerifyPE(peStream, machine); } } [Fact] [SkipOnPlatform(TestPlatforms.Browser, "System.Security.Cryptography isn't supported on browser")] public void BasicValidationSigned() { using (var peStream = new MemoryStream()) { var ilBuilder = new BlobBuilder(); var metadataBuilder = new MetadataBuilder(); var entryPoint = BasicValidationEmit(metadataBuilder, ilBuilder); WritePEImage(peStream, metadataBuilder, ilBuilder, entryPoint, privateKeyOpt: Misc.KeyPair); // The expected checksum can be determined by saving the PE stream to a file, // running "sn -R test.dll KeyPair.snk" and inspecting the resulting binary. // The re-signed binary should be the same as the original one. // See https://github.com/dotnet/runtime/issues/24407. peStream.Position = 0; var actualChecksum = new PEHeaders(peStream).PEHeader.CheckSum; Assert.Equal(0x0000319cU, actualChecksum); VerifyPE(peStream, Machine.Unknown, expectedSignature: new byte[] { 0x58, 0xD4, 0xD7, 0x88, 0x3B, 0xF9, 0x19, 0x9F, 0x3A, 0x55, 0x8F, 0x1B, 0x88, 0xBE, 0xA8, 0x42, 0x09, 0x2B, 0xE3, 0xB4, 0xC7, 0x09, 0xD5, 0x96, 0x35, 0x50, 0x0F, 0x3C, 0x87, 0x95, 0x6A, 0x31, 0xA5, 0x5C, 0xC7, 0xE1, 0x14, 0x85, 0x8E, 0x63, 0xFC, 0xCF, 0x8F, 0x2A, 0x19, 0x27, 0xD5, 0x12, 0x88, 0x75, 0x20, 0xBB, 0xBE, 0xD0, 0xA3, 0x04, 0x2D, 0xD3, 0x44, 0x48, 0xCC, 0xD7, 0x36, 0xBA, 0x06, 0x86, 0x17, 0xE9, 0x0D, 0x8C, 0x9C, 0xD6, 0xBA, 0x75, 0x9E, 0x32, 0x0D, 0xCC, 0xC2, 0x8E, 0x80, 0xD5, 0x81, 0x71, 0xD2, 0x4A, 0x90, 0x43, 0xA0, 0x67, 0x20, 0x39, 0x0A, 0x9F, 0x61, 0x5B, 0x2F, 0x9F, 0xE5, 0x70, 0x42, 0xA8, 0x86, 0x61, 0x42, 0x94, 0xBD, 0x1E, 0x76, 0xDA, 0xB0, 0xF8, 0xA6, 0x37, 0x71, 0xD4, 0x7F, 0x12, 0xCD, 0x39, 0x27, 0x6C, 0x4D, 0x28, 0x03, 0x7D, 0xF8, 0x89 }); } } private static MethodDefinitionHandle BasicValidationEmit(MetadataBuilder metadata, BlobBuilder ilBuilder) { metadata.AddModule( 0, metadata.GetOrAddString("ConsoleApplication.exe"), metadata.GetOrAddGuid(s_guid), default(GuidHandle), default(GuidHandle)); metadata.AddAssembly( metadata.GetOrAddString("ConsoleApplication"), version: new Version(1, 0, 0, 0), culture: default(StringHandle), publicKey: metadata.GetOrAddBlob(ImmutableArray.Create(Misc.KeyPair_PublicKey)), flags: AssemblyFlags.PublicKey, hashAlgorithm: AssemblyHashAlgorithm.Sha1); var mscorlibAssemblyRef = metadata.AddAssemblyReference( name: metadata.GetOrAddString("mscorlib"), version: new Version(4, 0, 0, 0), culture: default(StringHandle), publicKeyOrToken: metadata.GetOrAddBlob(ImmutableArray.Create<byte>(0xB7, 0x7A, 0x5C, 0x56, 0x19, 0x34, 0xE0, 0x89)), flags: default(AssemblyFlags), hashValue: default(BlobHandle)); var systemObjectTypeRef = metadata.AddTypeReference( mscorlibAssemblyRef, metadata.GetOrAddString("System"), metadata.GetOrAddString("Object")); var systemConsoleTypeRefHandle = metadata.AddTypeReference( mscorlibAssemblyRef, metadata.GetOrAddString("System"), metadata.GetOrAddString("Console")); var consoleWriteLineSignature = new BlobBuilder(); new BlobEncoder(consoleWriteLineSignature). MethodSignature(). Parameters(1, returnType => returnType.Void(), parameters => parameters.AddParameter().Type().String()); var consoleWriteLineMemberRef = metadata.AddMemberReference( systemConsoleTypeRefHandle, metadata.GetOrAddString("WriteLine"), metadata.GetOrAddBlob(consoleWriteLineSignature)); var parameterlessCtorSignature = new BlobBuilder(); new BlobEncoder(parameterlessCtorSignature). MethodSignature(isInstanceMethod: true). Parameters(0, returnType => returnType.Void(), parameters => { }); var parameterlessCtorBlobIndex = metadata.GetOrAddBlob(parameterlessCtorSignature); var objectCtorMemberRef = metadata.AddMemberReference( systemObjectTypeRef, metadata.GetOrAddString(".ctor"), parameterlessCtorBlobIndex); var mainSignature = new BlobBuilder(); new BlobEncoder(mainSignature). MethodSignature(). Parameters(0, returnType => returnType.Void(), parameters => { }); var methodBodyStream = new MethodBodyStreamEncoder(ilBuilder); var codeBuilder = new BlobBuilder(); InstructionEncoder il; // // Program::.ctor // il = new InstructionEncoder(codeBuilder); // ldarg.0 il.LoadArgument(0); // call instance void [mscorlib]System.Object::.ctor() il.Call(objectCtorMemberRef); // ret il.OpCode(ILOpCode.Ret); int ctorBodyOffset = methodBodyStream.AddMethodBody(il); codeBuilder.Clear(); // // Program::Main // var flowBuilder = new ControlFlowBuilder(); il = new InstructionEncoder(codeBuilder, flowBuilder); var tryStart = il.DefineLabel(); var tryEnd = il.DefineLabel(); var finallyStart = il.DefineLabel(); var finallyEnd = il.DefineLabel(); flowBuilder.AddFinallyRegion(tryStart, tryEnd, finallyStart, finallyEnd); // .try il.MarkLabel(tryStart); // ldstr "hello" il.LoadString(metadata.GetOrAddUserString("hello")); // call void [mscorlib]System.Console::WriteLine(string) il.Call(consoleWriteLineMemberRef); // leave.s END il.Branch(ILOpCode.Leave_s, finallyEnd); il.MarkLabel(tryEnd); // .finally il.MarkLabel(finallyStart); // ldstr "world" il.LoadString(metadata.GetOrAddUserString("world")); // call void [mscorlib]System.Console::WriteLine(string) il.Call(consoleWriteLineMemberRef); // .endfinally il.OpCode(ILOpCode.Endfinally); il.MarkLabel(finallyEnd); // ret il.OpCode(ILOpCode.Ret); int mainBodyOffset = methodBodyStream.AddMethodBody(il); codeBuilder.Clear(); flowBuilder.Clear(); var mainMethodDef = metadata.AddMethodDefinition( MethodAttributes.Public | MethodAttributes.Static | MethodAttributes.HideBySig, MethodImplAttributes.IL | MethodImplAttributes.Managed, metadata.GetOrAddString("Main"), metadata.GetOrAddBlob(mainSignature), mainBodyOffset, parameterList: default(ParameterHandle)); var ctorDef = metadata.AddMethodDefinition( MethodAttributes.Public | MethodAttributes.HideBySig | MethodAttributes.SpecialName | MethodAttributes.RTSpecialName, MethodImplAttributes.IL | MethodImplAttributes.Managed, metadata.GetOrAddString(".ctor"), parameterlessCtorBlobIndex, ctorBodyOffset, parameterList: default(ParameterHandle)); metadata.AddTypeDefinition( default(TypeAttributes), default(StringHandle), metadata.GetOrAddString("<Module>"), baseType: default(EntityHandle), fieldList: MetadataTokens.FieldDefinitionHandle(1), methodList: mainMethodDef); metadata.AddTypeDefinition( TypeAttributes.Class | TypeAttributes.Public | TypeAttributes.AutoLayout | TypeAttributes.BeforeFieldInit, metadata.GetOrAddString("ConsoleApplication"), metadata.GetOrAddString("Program"), systemObjectTypeRef, fieldList: MetadataTokens.FieldDefinitionHandle(1), methodList: mainMethodDef); return mainMethodDef; } [Theory] // Do BasicValidation on common machine types [MemberData(nameof(AllMachineTypes))] public void Complex(Machine machine) { using (var peStream = new MemoryStream()) { var ilBuilder = new BlobBuilder(); var metadataBuilder = new MetadataBuilder(); Blob mvidFixup; var entryPoint = ComplexEmit(metadataBuilder, ilBuilder, out mvidFixup); WritePEImage(peStream, metadataBuilder, ilBuilder, entryPoint, mvidFixup, machine: machine); VerifyPE(peStream, machine); } } private static BlobBuilder BuildSignature(Action<BlobEncoder> action) { var builder = new BlobBuilder(); action(new BlobEncoder(builder)); return builder; } private static MethodDefinitionHandle ComplexEmit(MetadataBuilder metadata, BlobBuilder ilBuilder, out Blob mvidFixup) { var mvid = metadata.ReserveGuid(); mvidFixup = mvid.Content; metadata.AddModule( 0, metadata.GetOrAddString("ConsoleApplication.exe"), mvid.Handle, default(GuidHandle), default(GuidHandle)); metadata.AddAssembly( metadata.GetOrAddString("ConsoleApplication"), version: new Version(0, 0, 0, 0), culture: default(StringHandle), publicKey: default(BlobHandle), flags: default(AssemblyFlags), hashAlgorithm: AssemblyHashAlgorithm.Sha1); var mscorlibAssemblyRef = metadata.AddAssemblyReference( name: metadata.GetOrAddString("mscorlib"), version: new Version(4, 0, 0, 0), culture: default(StringHandle), publicKeyOrToken: metadata.GetOrAddBlob(ImmutableArray.Create<byte>(0xB7, 0x7A, 0x5C, 0x56, 0x19, 0x34, 0xE0, 0x89)), flags: default(AssemblyFlags), hashValue: default(BlobHandle)); // TypeRefs: var systemObjectTypeRef = metadata.AddTypeReference(mscorlibAssemblyRef, metadata.GetOrAddString("System"), metadata.GetOrAddString("Object")); var dictionaryTypeRef = metadata.AddTypeReference(mscorlibAssemblyRef, metadata.GetOrAddString("System.Collections.Generic"), metadata.GetOrAddString("Dictionary`2")); var strignBuilderTypeRef = metadata.AddTypeReference(mscorlibAssemblyRef, metadata.GetOrAddString("System.Text"), metadata.GetOrAddString("StringBuilder")); var typeTypeRef = metadata.AddTypeReference(mscorlibAssemblyRef, metadata.GetOrAddString("System"), metadata.GetOrAddString("Type")); var int32TypeRef = metadata.AddTypeReference(mscorlibAssemblyRef, metadata.GetOrAddString("System"), metadata.GetOrAddString("Int32")); var runtimeTypeHandleRef = metadata.AddTypeReference(mscorlibAssemblyRef, metadata.GetOrAddString("System"), metadata.GetOrAddString("RuntimeTypeHandle")); var invalidOperationExceptionTypeRef = metadata.AddTypeReference(mscorlibAssemblyRef, metadata.GetOrAddString("System"), metadata.GetOrAddString("InvalidOperationException")); // TypeDefs: metadata.AddTypeDefinition( default(TypeAttributes), default(StringHandle), metadata.GetOrAddString("<Module>"), baseType: default(EntityHandle), fieldList: MetadataTokens.FieldDefinitionHandle(1), methodList: MetadataTokens.MethodDefinitionHandle(1)); var baseClassTypeDef = metadata.AddTypeDefinition( TypeAttributes.Class | TypeAttributes.Public | TypeAttributes.AutoLayout | TypeAttributes.BeforeFieldInit | TypeAttributes.Abstract, metadata.GetOrAddString("Lib"), metadata.GetOrAddString("BaseClass"), systemObjectTypeRef, fieldList: MetadataTokens.FieldDefinitionHandle(1), methodList: MetadataTokens.MethodDefinitionHandle(1)); var derivedClassTypeDef = metadata.AddTypeDefinition( TypeAttributes.Class | TypeAttributes.Public | TypeAttributes.AutoLayout | TypeAttributes.BeforeFieldInit, metadata.GetOrAddString("Lib"), metadata.GetOrAddString("DerivedClass"), baseClassTypeDef, fieldList: MetadataTokens.FieldDefinitionHandle(4), methodList: MetadataTokens.MethodDefinitionHandle(1)); // FieldDefs: // Field1 var baseClassNumberFieldDef = metadata.AddFieldDefinition( FieldAttributes.Private, metadata.GetOrAddString("_number"), metadata.GetOrAddBlob(BuildSignature(e => e.FieldSignature().Int32()))); // Field2 var baseClassNegativeFieldDef = metadata.AddFieldDefinition( FieldAttributes.Assembly, metadata.GetOrAddString("negative"), metadata.GetOrAddBlob(BuildSignature(e => e.FieldSignature().Boolean()))); // Field3 var derivedClassSumCacheFieldDef = metadata.AddFieldDefinition( FieldAttributes.Assembly, metadata.GetOrAddString("_sumCache"), metadata.GetOrAddBlob(BuildSignature(e => { var inst = e.FieldSignature().GenericInstantiation(genericType: dictionaryTypeRef, genericArgumentCount: 2, isValueType: false); inst.AddArgument().Int32(); inst.AddArgument().Object(); }))); // Field4 var derivedClassCountFieldDef = metadata.AddFieldDefinition( FieldAttributes.Assembly, metadata.GetOrAddString("_count"), metadata.GetOrAddBlob(BuildSignature(e => e.FieldSignature().SZArray().Int32()))); // Field5 var derivedClassBCFieldDef = metadata.AddFieldDefinition( FieldAttributes.Assembly, metadata.GetOrAddString("_bc"), metadata.GetOrAddBlob(BuildSignature(e => e.FieldSignature().Type(type: baseClassTypeDef, isValueType: false)))); var methodBodyStream = new MethodBodyStreamEncoder(ilBuilder); var buffer = new BlobBuilder(); var il = new InstructionEncoder(buffer); // // Foo // il.LoadString(metadata.GetOrAddUserString("asdsad")); il.OpCode(ILOpCode.Newobj); il.Token(invalidOperationExceptionTypeRef); il.OpCode(ILOpCode.Throw); int fooBodyOffset = methodBodyStream.AddMethodBody(il); // Method1 var derivedClassFooMethodDef = metadata.AddMethodDefinition( MethodAttributes.PrivateScope | MethodAttributes.Private | MethodAttributes.HideBySig, MethodImplAttributes.IL, metadata.GetOrAddString("Foo"), metadata.GetOrAddBlob(BuildSignature(e => e.MethodSignature(isInstanceMethod: true).Parameters(0, returnType => returnType.Void(), parameters => { }))), fooBodyOffset, default(ParameterHandle)); return default(MethodDefinitionHandle); } [Theory] // Validate FieldRVA alignment on common machine types [MemberData(nameof(AllMachineTypes))] public void FieldRVAAlignmentVerify(Machine machine) { using (var peStream = new MemoryStream()) { var ilBuilder = new BlobBuilder(); var mappedRVADataBuilder = new BlobBuilder(); var metadataBuilder = new MetadataBuilder(); double validationNumber = 0.100001; var fieldDef = FieldRVAValidationEmit(metadataBuilder, mappedRVADataBuilder, validationNumber); WritePEImage(peStream, metadataBuilder, ilBuilder, default(MethodDefinitionHandle), mappedFieldData: mappedRVADataBuilder, machine: machine); // Validate FieldRVA is aligned as ManagedPEBuilder.MappedFieldDataAlignemnt peStream.Position = 0; using (var peReader = new PEReader(peStream, PEStreamOptions.LeaveOpen)) { var mdReader = peReader.GetMetadataReader(); // Validate that there is only 1 field rva entry Assert.Equal(1, mdReader.FieldRvaTable.NumberOfRows); // Validate that the RVA is aligned properly (which should be at least an 8 byte alignment Assert.Equal(0, mdReader.FieldRvaTable.GetRva(1) % ManagedPEBuilder.MappedFieldDataAlignment); // Validate that the correct data is at the RVA var fieldRVAData = peReader.GetSectionData(mdReader.FieldRvaTable.GetRva(1)); Assert.Equal(validationNumber, fieldRVAData.GetReader().ReadDouble()); } VerifyPE(peStream, machine); } } private static FieldDefinitionHandle FieldRVAValidationEmit(MetadataBuilder metadata, BlobBuilder mappedRVAData, double doubleToWriteAsData) { metadata.AddModule( 0, metadata.GetOrAddString("ConsoleApplication.exe"), metadata.GetOrAddGuid(s_guid), default(GuidHandle), default(GuidHandle)); metadata.AddAssembly( metadata.GetOrAddString("ConsoleApplication"), version: new Version(1, 0, 0, 0), culture: default(StringHandle), publicKey: metadata.GetOrAddBlob(ImmutableArray.Create(Misc.KeyPair_PublicKey)), flags: AssemblyFlags.PublicKey, hashAlgorithm: AssemblyHashAlgorithm.Sha1); var mscorlibAssemblyRef = metadata.AddAssemblyReference( name: metadata.GetOrAddString("mscorlib"), version: new Version(4, 0, 0, 0), culture: default(StringHandle), publicKeyOrToken: metadata.GetOrAddBlob(ImmutableArray.Create<byte>(0xB7, 0x7A, 0x5C, 0x56, 0x19, 0x34, 0xE0, 0x89)), flags: default(AssemblyFlags), hashValue: default(BlobHandle)); var systemObjectTypeRef = metadata.AddTypeReference( mscorlibAssemblyRef, metadata.GetOrAddString("System"), metadata.GetOrAddString("Object")); mappedRVAData.WriteDouble(doubleToWriteAsData); var rvaFieldSignature = new BlobBuilder(); new BlobEncoder(rvaFieldSignature). FieldSignature().Double(); var fieldRVADef = metadata.AddFieldDefinition( FieldAttributes.Public | FieldAttributes.Static | FieldAttributes.HasFieldRVA, metadata.GetOrAddString("RvaField"), metadata.GetOrAddBlob(rvaFieldSignature)); metadata.AddFieldRelativeVirtualAddress(fieldRVADef, 0); metadata.AddTypeDefinition( TypeAttributes.Class | TypeAttributes.Public | TypeAttributes.AutoLayout | TypeAttributes.BeforeFieldInit, metadata.GetOrAddString("ConsoleApplication"), metadata.GetOrAddString("Program"), systemObjectTypeRef, fieldList: fieldRVADef, methodList: MetadataTokens.MethodDefinitionHandle(1)); return fieldRVADef; } private class TestResourceSectionBuilder : ResourceSectionBuilder { public TestResourceSectionBuilder() { } protected internal override void Serialize(BlobBuilder builder, SectionLocation location) { builder.WriteInt32(0x12345678); builder.WriteInt32(location.PointerToRawData); builder.WriteInt32(location.RelativeVirtualAddress); } } [Fact] public unsafe void NativeResources() { var peStream = new MemoryStream(); var ilBuilder = new BlobBuilder(); var metadataBuilder = new MetadataBuilder(); var peBuilder = new ManagedPEBuilder( PEHeaderBuilder.CreateLibraryHeader(), new MetadataRootBuilder(metadataBuilder), ilBuilder, nativeResources: new TestResourceSectionBuilder(), deterministicIdProvider: content => s_contentId); var peBlob = new BlobBuilder(); var contentId = peBuilder.Serialize(peBlob); peBlob.WriteContentTo(peStream); peStream.Position = 0; var peReader = new PEReader(peStream); var sectionHeader = peReader.PEHeaders.SectionHeaders.Single(s => s.Name == ".rsrc"); var image = peReader.GetEntireImage(); var reader = new BlobReader(image.Pointer + sectionHeader.PointerToRawData, sectionHeader.SizeOfRawData); Assert.Equal(0x12345678, reader.ReadInt32()); Assert.Equal(sectionHeader.PointerToRawData, reader.ReadInt32()); Assert.Equal(sectionHeader.VirtualAddress, reader.ReadInt32()); } private class BadResourceSectionBuilder : ResourceSectionBuilder { public BadResourceSectionBuilder() { } protected internal override void Serialize(BlobBuilder builder, SectionLocation location) { throw new NotImplementedException(); } } [Fact] public unsafe void NativeResources_BadImpl() { var peStream = new MemoryStream(); var ilBuilder = new BlobBuilder(); var metadataBuilder = new MetadataBuilder(); var peBuilder = new ManagedPEBuilder( PEHeaderBuilder.CreateLibraryHeader(), new MetadataRootBuilder(metadataBuilder), ilBuilder, nativeResources: new BadResourceSectionBuilder(), deterministicIdProvider: content => s_contentId); var peBlob = new BlobBuilder(); Assert.Throws<NotImplementedException>(() => peBuilder.Serialize(peBlob)); } [Fact] public void GetContentToSign_AllInOneBlob() { var builder = new BlobBuilder(16); builder.WriteBytes(1, 5); var snFixup = builder.ReserveBytes(5); builder.WriteBytes(2, 6); Assert.Equal(1, builder.GetBlobs().Count()); AssertEx.Equal( new[] { "0: [0, 2)", "0: [4, 5)", "0: [10, 16)" }, GetBlobRanges(builder, PEBuilder.GetContentToSign(builder, peHeadersSize: 2, peHeaderAlignment: 4, strongNameSignatureFixup: snFixup))); } [Fact] public void GetContentToSign_MultiBlobHeader() { var builder = new BlobBuilder(16); builder.WriteBytes(0, 16); builder.WriteBytes(1, 16); builder.WriteBytes(2, 16); builder.WriteBytes(3, 16); builder.WriteBytes(4, 2); var snFixup = builder.ReserveBytes(1); builder.WriteBytes(4, 13); builder.WriteBytes(5, 10); Assert.Equal(6, builder.GetBlobs().Count()); AssertEx.Equal( new[] { "0: [0, 16)", "1: [0, 16)", "2: [0, 1)", "4: [0, 2)", "4: [3, 16)", "5: [0, 10)" }, GetBlobRanges(builder, PEBuilder.GetContentToSign(builder, peHeadersSize: 33, peHeaderAlignment: 64, strongNameSignatureFixup: snFixup))); } [Fact] public void GetContentToSign_HeaderAndFixupInDistinctBlobs() { var builder = new BlobBuilder(16); builder.WriteBytes(0, 16); builder.WriteBytes(1, 16); builder.WriteBytes(2, 16); builder.WriteBytes(3, 16); var snFixup = builder.ReserveBytes(16); builder.WriteBytes(5, 16); builder.WriteBytes(6, 1); Assert.Equal(7, builder.GetBlobs().Count()); AssertEx.Equal( new[] { "0: [0, 1)", "0: [4, 16)", "1: [0, 16)", "2: [0, 16)", "3: [0, 16)", "4: [0, 0)", "4: [16, 16)", "5: [0, 16)", "6: [0, 1)" }, GetBlobRanges(builder, PEBuilder.GetContentToSign(builder, peHeadersSize: 1, peHeaderAlignment: 4, strongNameSignatureFixup: snFixup))); } private static IEnumerable<string> GetBlobRanges(BlobBuilder builder, IEnumerable<Blob> blobs) { var blobIndex = new Dictionary<byte[], int>(); int i = 0; foreach (var blob in builder.GetBlobs()) { blobIndex.Add(blob.Buffer, i++); } foreach (var blob in blobs) { yield return $"{blobIndex[blob.Buffer]}: [{blob.Start}, {blob.Start + blob.Length})"; } } [Fact] [SkipOnPlatform(TestPlatforms.Browser, "System.Security.Cryptography isn't supported on browser")] public void Checksum() { Assert.True(TestChecksumAndAuthenticodeSignature(new MemoryStream(Misc.Signed), Misc.KeyPair)); Assert.False(TestChecksumAndAuthenticodeSignature(new MemoryStream(Misc.Deterministic))); } [Fact] [SkipOnPlatform(TestPlatforms.Browser, "System.Security.Cryptography isn't supported on browser")] public void ChecksumFXAssemblies() { var paths = new[] { typeof(object).GetTypeInfo().Assembly.Location, typeof(Enumerable).GetTypeInfo().Assembly.Location, typeof(Linq.Expressions.Expression).GetTypeInfo().Assembly.Location, typeof(ComponentModel.EditorBrowsableAttribute).GetTypeInfo().Assembly.Location, typeof(IEnumerable<>).GetTypeInfo().Assembly.Location, typeof(Text.Encoding).GetTypeInfo().Assembly.Location, typeof(Threading.Tasks.Task).GetTypeInfo().Assembly.Location, typeof(IO.MemoryMappedFiles.MemoryMappedFile).GetTypeInfo().Assembly.Location, typeof(Diagnostics.Debug).GetTypeInfo().Assembly.Location, typeof(ImmutableArray).GetTypeInfo().Assembly.Location, typeof(Text.RegularExpressions.Regex).GetTypeInfo().Assembly.Location, typeof(Threading.Tasks.ParallelLoopResult).GetTypeInfo().Assembly.Location, }; foreach (string path in paths.Distinct()) { using (var peStream = File.OpenRead(path)) { TestChecksumAndAuthenticodeSignature(peStream); } } } private static bool TestChecksumAndAuthenticodeSignature(Stream peStream, byte[] privateKeyOpt = null) { var peHeaders = new PEHeaders(peStream); bool is32bit = peHeaders.PEHeader.Magic == PEMagic.PE32; uint expectedChecksum = peHeaders.PEHeader.CheckSum; int peHeadersSize = peHeaders.PEHeaderStartOffset + PEHeader.Size(is32bit) + SectionHeader.Size * peHeaders.SectionHeaders.Length; peStream.Position = 0; if (expectedChecksum == 0) { // not signed return false; } int peSize = (int)peStream.Length; var peImage = new BlobBuilder(peSize); Assert.Equal(peSize, peImage.TryWriteBytes(peStream, peSize)); var buffer = peImage.GetBlobs().Single().Buffer; var checksumBlob = new Blob(buffer, peHeaders.PEHeaderStartOffset + PEHeader.OffsetOfChecksum, sizeof(uint)); uint checksum = PEBuilder.CalculateChecksum(peImage, checksumBlob); Assert.Equal(expectedChecksum, checksum); // validate signature: if (privateKeyOpt != null) { // signature is calculated with checksum zeroed: new BlobWriter(checksumBlob).WriteUInt32(0); int snOffset; Assert.True(peHeaders.TryGetDirectoryOffset(peHeaders.CorHeader.StrongNameSignatureDirectory, out snOffset)); var snBlob = new Blob(buffer, snOffset, peHeaders.CorHeader.StrongNameSignatureDirectory.Size); var expectedSignature = snBlob.GetBytes().ToArray(); var signature = SigningUtilities.CalculateRsaSignature(PEBuilder.GetContentToSign(peImage, peHeadersSize, peHeaders.PEHeader.FileAlignment, snBlob), privateKeyOpt); AssertEx.Equal(expectedSignature, signature); } return true; } [Fact] public void GetPrefixBlob() { byte[] buffer = new byte[] { 0, 1, 2, 3, 4, 5 }; // [0, 1, <2, 3>, 4, 5] var b = PEBuilder.GetPrefixBlob(new Blob(buffer, start: 0, length: 6), new Blob(buffer, start: 2, length: 2)); Assert.Same(buffer, b.Buffer); Assert.Equal(0, b.Start); Assert.Equal(2, b.Length); // [0, 1, <2, 3>, 4], 5 b = PEBuilder.GetPrefixBlob(new Blob(buffer, start: 0, length: 5), new Blob(buffer, start: 2, length: 2)); Assert.Same(buffer, b.Buffer); Assert.Equal(0, b.Start); Assert.Equal(2, b.Length); // 0, [1, <2, 3>, 4], 5 b = PEBuilder.GetPrefixBlob(new Blob(buffer, start: 1, length: 4), new Blob(buffer, start: 2, length: 2)); Assert.Same(buffer, b.Buffer); Assert.Equal(1, b.Start); Assert.Equal(1, b.Length); // 0, 1, [<2, 3>, 4], 5 b = PEBuilder.GetPrefixBlob(new Blob(buffer, start: 2, length: 3), new Blob(buffer, start: 2, length: 2)); Assert.Same(buffer, b.Buffer); Assert.Equal(2, b.Start); Assert.Equal(0, b.Length); // 0, 1, [<2, 3>], 4, 5 b = PEBuilder.GetPrefixBlob(new Blob(buffer, start: 2, length: 2), new Blob(buffer, start: 2, length: 2)); Assert.Same(buffer, b.Buffer); Assert.Equal(2, b.Start); Assert.Equal(0, b.Length); // 0, 1, [<2>], 3, 4, 5 b = PEBuilder.GetPrefixBlob(new Blob(buffer, start: 2, length: 1), new Blob(buffer, start: 2, length: 1)); Assert.Same(buffer, b.Buffer); Assert.Equal(2, b.Start); Assert.Equal(0, b.Length); // 0, 1, [<>]2, 3, 4, 5 b = PEBuilder.GetPrefixBlob(new Blob(buffer, start: 2, length: 0), new Blob(buffer, start: 2, length: 0)); Assert.Same(buffer, b.Buffer); Assert.Equal(2, b.Start); Assert.Equal(0, b.Length); } [Fact] public void GetSuffixBlob() { byte[] buffer = new byte[] { 0, 1, 2, 3, 4, 5 }; // [0, 1, <2, 3>], 4, 5 var b = PEBuilder.GetSuffixBlob(new Blob(buffer, start: 0, length: 4), new Blob(buffer, start: 2, length: 2)); Assert.Same(buffer, b.Buffer); Assert.Equal(4, b.Start); Assert.Equal(0, b.Length); // 0, [1, <2, 3>, 4], 5 b = PEBuilder.GetSuffixBlob(new Blob(buffer, start: 1, length: 4), new Blob(buffer, start: 2, length: 2)); Assert.Same(buffer, b.Buffer); Assert.Equal(4, b.Start); Assert.Equal(1, b.Length); // 0, 1, [<2, 3>, 4, 5] b = PEBuilder.GetSuffixBlob(new Blob(buffer, start: 2, length: 4), new Blob(buffer, start: 2, length: 2)); Assert.Same(buffer, b.Buffer); Assert.Equal(4, b.Start); Assert.Equal(2, b.Length); // [0, 1, <2, 3>, 4, 5] b = PEBuilder.GetSuffixBlob(new Blob(buffer, start: 0, length: 6), new Blob(buffer, start: 2, length: 2)); Assert.Same(buffer, b.Buffer); Assert.Equal(4, b.Start); Assert.Equal(2, b.Length); // 0, 1, [<2, 3>], 4, 5 b = PEBuilder.GetSuffixBlob(new Blob(buffer, start: 2, length: 2), new Blob(buffer, start: 2, length: 2)); Assert.Same(buffer, b.Buffer); Assert.Equal(4, b.Start); Assert.Equal(0, b.Length); // 0, 1, [<>]2, 3, 4, 5 b = PEBuilder.GetSuffixBlob(new Blob(buffer, start: 2, length: 0), new Blob(buffer, start: 2, length: 0)); Assert.Same(buffer, b.Buffer); Assert.Equal(2, b.Start); Assert.Equal(0, b.Length); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Collections.Immutable; using System.IO; using System.Linq; using System.Reflection.Metadata; using System.Reflection.Metadata.Ecma335; using System.Reflection.Metadata.Tests; using Xunit; namespace System.Reflection.PortableExecutable.Tests { public class PEBuilderTests { #region Helpers private void VerifyPE(Stream peStream, Machine machine, byte[] expectedSignature = null) { peStream.Position = 0; using (var peReader = new PEReader(peStream)) { var headers = peReader.PEHeaders; var mdReader = peReader.GetMetadataReader(); // TODO: more validation (can we use MetadataVisualizer until managed PEVerifier is available)? VerifyStrongNameSignatureDirectory(peReader, expectedSignature); Assert.Equal(s_contentId.Stamp, unchecked((uint)peReader.PEHeaders.CoffHeader.TimeDateStamp)); Assert.Equal(s_guid, mdReader.GetGuid(mdReader.GetModuleDefinition().Mvid)); if (machine == Machine.Unknown) // Unknown machine type translates into AnyCpu, which is marked as I386 in the PE file Assert.Equal(Machine.I386, headers.CoffHeader.Machine); else Assert.Equal(machine, headers.CoffHeader.Machine); } } private static unsafe void VerifyStrongNameSignatureDirectory(PEReader peReader, byte[] expectedSignature) { var headers = peReader.PEHeaders; int rva = headers.CorHeader.StrongNameSignatureDirectory.RelativeVirtualAddress; int size = headers.CorHeader.StrongNameSignatureDirectory.Size; // Even if the image is not signed we reserve space for a signature. // Validate that the signature is in .text section. Assert.Equal(".text", headers.SectionHeaders[headers.GetContainingSectionIndex(rva)].Name); var signature = peReader.GetSectionData(rva).GetContent(0, size); AssertEx.Equal(expectedSignature ?? new byte[size], signature); } private static readonly Guid s_guid = new Guid("97F4DBD4-F6D1-4FAD-91B3-1001F92068E5"); private static readonly BlobContentId s_contentId = new BlobContentId(s_guid, 0x04030201); private static void WritePEImage( Stream peStream, MetadataBuilder metadataBuilder, BlobBuilder ilBuilder, MethodDefinitionHandle entryPointHandle, Blob mvidFixup = default(Blob), byte[] privateKeyOpt = null, bool publicSigned = false, Machine machine = 0, BlobBuilder? mappedFieldData = null) { var peHeaderBuilder = new PEHeaderBuilder(imageCharacteristics: entryPointHandle.IsNil ? Characteristics.Dll : Characteristics.ExecutableImage, machine: machine); var peBuilder = new ManagedPEBuilder( peHeaderBuilder, new MetadataRootBuilder(metadataBuilder), ilBuilder, entryPoint: entryPointHandle, flags: CorFlags.ILOnly | (privateKeyOpt != null || publicSigned ? CorFlags.StrongNameSigned : 0), deterministicIdProvider: content => s_contentId, mappedFieldData: mappedFieldData); var peBlob = new BlobBuilder(); var contentId = peBuilder.Serialize(peBlob); if (!mvidFixup.IsDefault) { new BlobWriter(mvidFixup).WriteGuid(contentId.Guid); } if (privateKeyOpt != null) { peBuilder.Sign(peBlob, content => SigningUtilities.CalculateRsaSignature(content, privateKeyOpt)); } peBlob.WriteContentTo(peStream); } public static IEnumerable<object[]> AllMachineTypes() { return ((Machine[])Enum.GetValues(typeof(Machine))).Select(m => new object[]{(object)m}); } #endregion [Fact] public void ManagedPEBuilder_Errors() { var hdr = new PEHeaderBuilder(); var ms = new MetadataRootBuilder(new MetadataBuilder()); var il = new BlobBuilder(); Assert.Throws<ArgumentNullException>(() => new ManagedPEBuilder(null, ms, il)); Assert.Throws<ArgumentNullException>(() => new ManagedPEBuilder(hdr, null, il)); Assert.Throws<ArgumentNullException>(() => new ManagedPEBuilder(hdr, ms, null)); Assert.Throws<ArgumentOutOfRangeException>(() => new ManagedPEBuilder(hdr, ms, il, strongNameSignatureSize: -1)); } [Theory] // Do BasicValidation on all machine types listed in the Machine enum [MemberData(nameof(AllMachineTypes))] public void BasicValidation(Machine machine) { using (var peStream = new MemoryStream()) { var ilBuilder = new BlobBuilder(); var metadataBuilder = new MetadataBuilder(); var entryPoint = BasicValidationEmit(metadataBuilder, ilBuilder); WritePEImage(peStream, metadataBuilder, ilBuilder, entryPoint, publicSigned: true, machine: machine); peStream.Position = 0; var actualChecksum = new PEHeaders(peStream).PEHeader.CheckSum; Assert.Equal(0U, actualChecksum); VerifyPE(peStream, machine); } } [Fact] [SkipOnPlatform(TestPlatforms.Browser, "System.Security.Cryptography isn't supported on browser")] public void BasicValidationSigned() { using (var peStream = new MemoryStream()) { var ilBuilder = new BlobBuilder(); var metadataBuilder = new MetadataBuilder(); var entryPoint = BasicValidationEmit(metadataBuilder, ilBuilder); WritePEImage(peStream, metadataBuilder, ilBuilder, entryPoint, privateKeyOpt: Misc.KeyPair); // The expected checksum can be determined by saving the PE stream to a file, // running "sn -R test.dll KeyPair.snk" and inspecting the resulting binary. // The re-signed binary should be the same as the original one. // See https://github.com/dotnet/runtime/issues/24407. peStream.Position = 0; var actualChecksum = new PEHeaders(peStream).PEHeader.CheckSum; Assert.Equal(0x0000319cU, actualChecksum); VerifyPE(peStream, Machine.Unknown, expectedSignature: new byte[] { 0x58, 0xD4, 0xD7, 0x88, 0x3B, 0xF9, 0x19, 0x9F, 0x3A, 0x55, 0x8F, 0x1B, 0x88, 0xBE, 0xA8, 0x42, 0x09, 0x2B, 0xE3, 0xB4, 0xC7, 0x09, 0xD5, 0x96, 0x35, 0x50, 0x0F, 0x3C, 0x87, 0x95, 0x6A, 0x31, 0xA5, 0x5C, 0xC7, 0xE1, 0x14, 0x85, 0x8E, 0x63, 0xFC, 0xCF, 0x8F, 0x2A, 0x19, 0x27, 0xD5, 0x12, 0x88, 0x75, 0x20, 0xBB, 0xBE, 0xD0, 0xA3, 0x04, 0x2D, 0xD3, 0x44, 0x48, 0xCC, 0xD7, 0x36, 0xBA, 0x06, 0x86, 0x17, 0xE9, 0x0D, 0x8C, 0x9C, 0xD6, 0xBA, 0x75, 0x9E, 0x32, 0x0D, 0xCC, 0xC2, 0x8E, 0x80, 0xD5, 0x81, 0x71, 0xD2, 0x4A, 0x90, 0x43, 0xA0, 0x67, 0x20, 0x39, 0x0A, 0x9F, 0x61, 0x5B, 0x2F, 0x9F, 0xE5, 0x70, 0x42, 0xA8, 0x86, 0x61, 0x42, 0x94, 0xBD, 0x1E, 0x76, 0xDA, 0xB0, 0xF8, 0xA6, 0x37, 0x71, 0xD4, 0x7F, 0x12, 0xCD, 0x39, 0x27, 0x6C, 0x4D, 0x28, 0x03, 0x7D, 0xF8, 0x89 }); } } private static MethodDefinitionHandle BasicValidationEmit(MetadataBuilder metadata, BlobBuilder ilBuilder) { metadata.AddModule( 0, metadata.GetOrAddString("ConsoleApplication.exe"), metadata.GetOrAddGuid(s_guid), default(GuidHandle), default(GuidHandle)); metadata.AddAssembly( metadata.GetOrAddString("ConsoleApplication"), version: new Version(1, 0, 0, 0), culture: default(StringHandle), publicKey: metadata.GetOrAddBlob(ImmutableArray.Create(Misc.KeyPair_PublicKey)), flags: AssemblyFlags.PublicKey, hashAlgorithm: AssemblyHashAlgorithm.Sha1); var mscorlibAssemblyRef = metadata.AddAssemblyReference( name: metadata.GetOrAddString("mscorlib"), version: new Version(4, 0, 0, 0), culture: default(StringHandle), publicKeyOrToken: metadata.GetOrAddBlob(ImmutableArray.Create<byte>(0xB7, 0x7A, 0x5C, 0x56, 0x19, 0x34, 0xE0, 0x89)), flags: default(AssemblyFlags), hashValue: default(BlobHandle)); var systemObjectTypeRef = metadata.AddTypeReference( mscorlibAssemblyRef, metadata.GetOrAddString("System"), metadata.GetOrAddString("Object")); var systemConsoleTypeRefHandle = metadata.AddTypeReference( mscorlibAssemblyRef, metadata.GetOrAddString("System"), metadata.GetOrAddString("Console")); var consoleWriteLineSignature = new BlobBuilder(); new BlobEncoder(consoleWriteLineSignature). MethodSignature(). Parameters(1, returnType => returnType.Void(), parameters => parameters.AddParameter().Type().String()); var consoleWriteLineMemberRef = metadata.AddMemberReference( systemConsoleTypeRefHandle, metadata.GetOrAddString("WriteLine"), metadata.GetOrAddBlob(consoleWriteLineSignature)); var parameterlessCtorSignature = new BlobBuilder(); new BlobEncoder(parameterlessCtorSignature). MethodSignature(isInstanceMethod: true). Parameters(0, returnType => returnType.Void(), parameters => { }); var parameterlessCtorBlobIndex = metadata.GetOrAddBlob(parameterlessCtorSignature); var objectCtorMemberRef = metadata.AddMemberReference( systemObjectTypeRef, metadata.GetOrAddString(".ctor"), parameterlessCtorBlobIndex); var mainSignature = new BlobBuilder(); new BlobEncoder(mainSignature). MethodSignature(). Parameters(0, returnType => returnType.Void(), parameters => { }); var methodBodyStream = new MethodBodyStreamEncoder(ilBuilder); var codeBuilder = new BlobBuilder(); InstructionEncoder il; // // Program::.ctor // il = new InstructionEncoder(codeBuilder); // ldarg.0 il.LoadArgument(0); // call instance void [mscorlib]System.Object::.ctor() il.Call(objectCtorMemberRef); // ret il.OpCode(ILOpCode.Ret); int ctorBodyOffset = methodBodyStream.AddMethodBody(il); codeBuilder.Clear(); // // Program::Main // var flowBuilder = new ControlFlowBuilder(); il = new InstructionEncoder(codeBuilder, flowBuilder); var tryStart = il.DefineLabel(); var tryEnd = il.DefineLabel(); var finallyStart = il.DefineLabel(); var finallyEnd = il.DefineLabel(); flowBuilder.AddFinallyRegion(tryStart, tryEnd, finallyStart, finallyEnd); // .try il.MarkLabel(tryStart); // ldstr "hello" il.LoadString(metadata.GetOrAddUserString("hello")); // call void [mscorlib]System.Console::WriteLine(string) il.Call(consoleWriteLineMemberRef); // leave.s END il.Branch(ILOpCode.Leave_s, finallyEnd); il.MarkLabel(tryEnd); // .finally il.MarkLabel(finallyStart); // ldstr "world" il.LoadString(metadata.GetOrAddUserString("world")); // call void [mscorlib]System.Console::WriteLine(string) il.Call(consoleWriteLineMemberRef); // .endfinally il.OpCode(ILOpCode.Endfinally); il.MarkLabel(finallyEnd); // ret il.OpCode(ILOpCode.Ret); int mainBodyOffset = methodBodyStream.AddMethodBody(il); codeBuilder.Clear(); flowBuilder.Clear(); var mainMethodDef = metadata.AddMethodDefinition( MethodAttributes.Public | MethodAttributes.Static | MethodAttributes.HideBySig, MethodImplAttributes.IL | MethodImplAttributes.Managed, metadata.GetOrAddString("Main"), metadata.GetOrAddBlob(mainSignature), mainBodyOffset, parameterList: default(ParameterHandle)); var ctorDef = metadata.AddMethodDefinition( MethodAttributes.Public | MethodAttributes.HideBySig | MethodAttributes.SpecialName | MethodAttributes.RTSpecialName, MethodImplAttributes.IL | MethodImplAttributes.Managed, metadata.GetOrAddString(".ctor"), parameterlessCtorBlobIndex, ctorBodyOffset, parameterList: default(ParameterHandle)); metadata.AddTypeDefinition( default(TypeAttributes), default(StringHandle), metadata.GetOrAddString("<Module>"), baseType: default(EntityHandle), fieldList: MetadataTokens.FieldDefinitionHandle(1), methodList: mainMethodDef); metadata.AddTypeDefinition( TypeAttributes.Class | TypeAttributes.Public | TypeAttributes.AutoLayout | TypeAttributes.BeforeFieldInit, metadata.GetOrAddString("ConsoleApplication"), metadata.GetOrAddString("Program"), systemObjectTypeRef, fieldList: MetadataTokens.FieldDefinitionHandle(1), methodList: mainMethodDef); return mainMethodDef; } [Theory] // Do BasicValidation on common machine types [MemberData(nameof(AllMachineTypes))] public void Complex(Machine machine) { using (var peStream = new MemoryStream()) { var ilBuilder = new BlobBuilder(); var metadataBuilder = new MetadataBuilder(); Blob mvidFixup; var entryPoint = ComplexEmit(metadataBuilder, ilBuilder, out mvidFixup); WritePEImage(peStream, metadataBuilder, ilBuilder, entryPoint, mvidFixup, machine: machine); VerifyPE(peStream, machine); } } private static BlobBuilder BuildSignature(Action<BlobEncoder> action) { var builder = new BlobBuilder(); action(new BlobEncoder(builder)); return builder; } private static MethodDefinitionHandle ComplexEmit(MetadataBuilder metadata, BlobBuilder ilBuilder, out Blob mvidFixup) { var mvid = metadata.ReserveGuid(); mvidFixup = mvid.Content; metadata.AddModule( 0, metadata.GetOrAddString("ConsoleApplication.exe"), mvid.Handle, default(GuidHandle), default(GuidHandle)); metadata.AddAssembly( metadata.GetOrAddString("ConsoleApplication"), version: new Version(0, 0, 0, 0), culture: default(StringHandle), publicKey: default(BlobHandle), flags: default(AssemblyFlags), hashAlgorithm: AssemblyHashAlgorithm.Sha1); var mscorlibAssemblyRef = metadata.AddAssemblyReference( name: metadata.GetOrAddString("mscorlib"), version: new Version(4, 0, 0, 0), culture: default(StringHandle), publicKeyOrToken: metadata.GetOrAddBlob(ImmutableArray.Create<byte>(0xB7, 0x7A, 0x5C, 0x56, 0x19, 0x34, 0xE0, 0x89)), flags: default(AssemblyFlags), hashValue: default(BlobHandle)); // TypeRefs: var systemObjectTypeRef = metadata.AddTypeReference(mscorlibAssemblyRef, metadata.GetOrAddString("System"), metadata.GetOrAddString("Object")); var dictionaryTypeRef = metadata.AddTypeReference(mscorlibAssemblyRef, metadata.GetOrAddString("System.Collections.Generic"), metadata.GetOrAddString("Dictionary`2")); var strignBuilderTypeRef = metadata.AddTypeReference(mscorlibAssemblyRef, metadata.GetOrAddString("System.Text"), metadata.GetOrAddString("StringBuilder")); var typeTypeRef = metadata.AddTypeReference(mscorlibAssemblyRef, metadata.GetOrAddString("System"), metadata.GetOrAddString("Type")); var int32TypeRef = metadata.AddTypeReference(mscorlibAssemblyRef, metadata.GetOrAddString("System"), metadata.GetOrAddString("Int32")); var runtimeTypeHandleRef = metadata.AddTypeReference(mscorlibAssemblyRef, metadata.GetOrAddString("System"), metadata.GetOrAddString("RuntimeTypeHandle")); var invalidOperationExceptionTypeRef = metadata.AddTypeReference(mscorlibAssemblyRef, metadata.GetOrAddString("System"), metadata.GetOrAddString("InvalidOperationException")); // TypeDefs: metadata.AddTypeDefinition( default(TypeAttributes), default(StringHandle), metadata.GetOrAddString("<Module>"), baseType: default(EntityHandle), fieldList: MetadataTokens.FieldDefinitionHandle(1), methodList: MetadataTokens.MethodDefinitionHandle(1)); var baseClassTypeDef = metadata.AddTypeDefinition( TypeAttributes.Class | TypeAttributes.Public | TypeAttributes.AutoLayout | TypeAttributes.BeforeFieldInit | TypeAttributes.Abstract, metadata.GetOrAddString("Lib"), metadata.GetOrAddString("BaseClass"), systemObjectTypeRef, fieldList: MetadataTokens.FieldDefinitionHandle(1), methodList: MetadataTokens.MethodDefinitionHandle(1)); var derivedClassTypeDef = metadata.AddTypeDefinition( TypeAttributes.Class | TypeAttributes.Public | TypeAttributes.AutoLayout | TypeAttributes.BeforeFieldInit, metadata.GetOrAddString("Lib"), metadata.GetOrAddString("DerivedClass"), baseClassTypeDef, fieldList: MetadataTokens.FieldDefinitionHandle(4), methodList: MetadataTokens.MethodDefinitionHandle(1)); // FieldDefs: // Field1 var baseClassNumberFieldDef = metadata.AddFieldDefinition( FieldAttributes.Private, metadata.GetOrAddString("_number"), metadata.GetOrAddBlob(BuildSignature(e => e.FieldSignature().Int32()))); // Field2 var baseClassNegativeFieldDef = metadata.AddFieldDefinition( FieldAttributes.Assembly, metadata.GetOrAddString("negative"), metadata.GetOrAddBlob(BuildSignature(e => e.FieldSignature().Boolean()))); // Field3 var derivedClassSumCacheFieldDef = metadata.AddFieldDefinition( FieldAttributes.Assembly, metadata.GetOrAddString("_sumCache"), metadata.GetOrAddBlob(BuildSignature(e => { var inst = e.FieldSignature().GenericInstantiation(genericType: dictionaryTypeRef, genericArgumentCount: 2, isValueType: false); inst.AddArgument().Int32(); inst.AddArgument().Object(); }))); // Field4 var derivedClassCountFieldDef = metadata.AddFieldDefinition( FieldAttributes.Assembly, metadata.GetOrAddString("_count"), metadata.GetOrAddBlob(BuildSignature(e => e.FieldSignature().SZArray().Int32()))); // Field5 var derivedClassBCFieldDef = metadata.AddFieldDefinition( FieldAttributes.Assembly, metadata.GetOrAddString("_bc"), metadata.GetOrAddBlob(BuildSignature(e => e.FieldSignature().Type(type: baseClassTypeDef, isValueType: false)))); var methodBodyStream = new MethodBodyStreamEncoder(ilBuilder); var buffer = new BlobBuilder(); var il = new InstructionEncoder(buffer); // // Foo // il.LoadString(metadata.GetOrAddUserString("asdsad")); il.OpCode(ILOpCode.Newobj); il.Token(invalidOperationExceptionTypeRef); il.OpCode(ILOpCode.Throw); int fooBodyOffset = methodBodyStream.AddMethodBody(il); // Method1 var derivedClassFooMethodDef = metadata.AddMethodDefinition( MethodAttributes.PrivateScope | MethodAttributes.Private | MethodAttributes.HideBySig, MethodImplAttributes.IL, metadata.GetOrAddString("Foo"), metadata.GetOrAddBlob(BuildSignature(e => e.MethodSignature(isInstanceMethod: true).Parameters(0, returnType => returnType.Void(), parameters => { }))), fooBodyOffset, default(ParameterHandle)); return default(MethodDefinitionHandle); } [Theory] // Validate FieldRVA alignment on common machine types [MemberData(nameof(AllMachineTypes))] public void FieldRVAAlignmentVerify(Machine machine) { using (var peStream = new MemoryStream()) { var ilBuilder = new BlobBuilder(); var mappedRVADataBuilder = new BlobBuilder(); var metadataBuilder = new MetadataBuilder(); double validationNumber = 0.100001; var fieldDef = FieldRVAValidationEmit(metadataBuilder, mappedRVADataBuilder, validationNumber); WritePEImage(peStream, metadataBuilder, ilBuilder, default(MethodDefinitionHandle), mappedFieldData: mappedRVADataBuilder, machine: machine); // Validate FieldRVA is aligned as ManagedPEBuilder.MappedFieldDataAlignemnt peStream.Position = 0; using (var peReader = new PEReader(peStream, PEStreamOptions.LeaveOpen)) { var mdReader = peReader.GetMetadataReader(); // Validate that there is only 1 field rva entry Assert.Equal(1, mdReader.FieldRvaTable.NumberOfRows); // Validate that the RVA is aligned properly (which should be at least an 8 byte alignment Assert.Equal(0, mdReader.FieldRvaTable.GetRva(1) % ManagedPEBuilder.MappedFieldDataAlignment); // Validate that the correct data is at the RVA var fieldRVAData = peReader.GetSectionData(mdReader.FieldRvaTable.GetRva(1)); Assert.Equal(validationNumber, fieldRVAData.GetReader().ReadDouble()); } VerifyPE(peStream, machine); } } private static FieldDefinitionHandle FieldRVAValidationEmit(MetadataBuilder metadata, BlobBuilder mappedRVAData, double doubleToWriteAsData) { metadata.AddModule( 0, metadata.GetOrAddString("ConsoleApplication.exe"), metadata.GetOrAddGuid(s_guid), default(GuidHandle), default(GuidHandle)); metadata.AddAssembly( metadata.GetOrAddString("ConsoleApplication"), version: new Version(1, 0, 0, 0), culture: default(StringHandle), publicKey: metadata.GetOrAddBlob(ImmutableArray.Create(Misc.KeyPair_PublicKey)), flags: AssemblyFlags.PublicKey, hashAlgorithm: AssemblyHashAlgorithm.Sha1); var mscorlibAssemblyRef = metadata.AddAssemblyReference( name: metadata.GetOrAddString("mscorlib"), version: new Version(4, 0, 0, 0), culture: default(StringHandle), publicKeyOrToken: metadata.GetOrAddBlob(ImmutableArray.Create<byte>(0xB7, 0x7A, 0x5C, 0x56, 0x19, 0x34, 0xE0, 0x89)), flags: default(AssemblyFlags), hashValue: default(BlobHandle)); var systemObjectTypeRef = metadata.AddTypeReference( mscorlibAssemblyRef, metadata.GetOrAddString("System"), metadata.GetOrAddString("Object")); mappedRVAData.WriteDouble(doubleToWriteAsData); var rvaFieldSignature = new BlobBuilder(); new BlobEncoder(rvaFieldSignature). FieldSignature().Double(); var fieldRVADef = metadata.AddFieldDefinition( FieldAttributes.Public | FieldAttributes.Static | FieldAttributes.HasFieldRVA, metadata.GetOrAddString("RvaField"), metadata.GetOrAddBlob(rvaFieldSignature)); metadata.AddFieldRelativeVirtualAddress(fieldRVADef, 0); metadata.AddTypeDefinition( TypeAttributes.Class | TypeAttributes.Public | TypeAttributes.AutoLayout | TypeAttributes.BeforeFieldInit, metadata.GetOrAddString("ConsoleApplication"), metadata.GetOrAddString("Program"), systemObjectTypeRef, fieldList: fieldRVADef, methodList: MetadataTokens.MethodDefinitionHandle(1)); return fieldRVADef; } private class TestResourceSectionBuilder : ResourceSectionBuilder { public TestResourceSectionBuilder() { } protected internal override void Serialize(BlobBuilder builder, SectionLocation location) { builder.WriteInt32(0x12345678); builder.WriteInt32(location.PointerToRawData); builder.WriteInt32(location.RelativeVirtualAddress); } } [Fact] public unsafe void NativeResources() { var peStream = new MemoryStream(); var ilBuilder = new BlobBuilder(); var metadataBuilder = new MetadataBuilder(); var peBuilder = new ManagedPEBuilder( PEHeaderBuilder.CreateLibraryHeader(), new MetadataRootBuilder(metadataBuilder), ilBuilder, nativeResources: new TestResourceSectionBuilder(), deterministicIdProvider: content => s_contentId); var peBlob = new BlobBuilder(); var contentId = peBuilder.Serialize(peBlob); peBlob.WriteContentTo(peStream); peStream.Position = 0; var peReader = new PEReader(peStream); var sectionHeader = peReader.PEHeaders.SectionHeaders.Single(s => s.Name == ".rsrc"); var image = peReader.GetEntireImage(); var reader = new BlobReader(image.Pointer + sectionHeader.PointerToRawData, sectionHeader.SizeOfRawData); Assert.Equal(0x12345678, reader.ReadInt32()); Assert.Equal(sectionHeader.PointerToRawData, reader.ReadInt32()); Assert.Equal(sectionHeader.VirtualAddress, reader.ReadInt32()); } private class BadResourceSectionBuilder : ResourceSectionBuilder { public BadResourceSectionBuilder() { } protected internal override void Serialize(BlobBuilder builder, SectionLocation location) { throw new NotImplementedException(); } } [Fact] public unsafe void NativeResources_BadImpl() { var peStream = new MemoryStream(); var ilBuilder = new BlobBuilder(); var metadataBuilder = new MetadataBuilder(); var peBuilder = new ManagedPEBuilder( PEHeaderBuilder.CreateLibraryHeader(), new MetadataRootBuilder(metadataBuilder), ilBuilder, nativeResources: new BadResourceSectionBuilder(), deterministicIdProvider: content => s_contentId); var peBlob = new BlobBuilder(); Assert.Throws<NotImplementedException>(() => peBuilder.Serialize(peBlob)); } [Fact] public void GetContentToSign_AllInOneBlob() { var builder = new BlobBuilder(16); builder.WriteBytes(1, 5); var snFixup = builder.ReserveBytes(5); builder.WriteBytes(2, 6); Assert.Equal(1, builder.GetBlobs().Count()); AssertEx.Equal( new[] { "0: [0, 2)", "0: [4, 5)", "0: [10, 16)" }, GetBlobRanges(builder, PEBuilder.GetContentToSign(builder, peHeadersSize: 2, peHeaderAlignment: 4, strongNameSignatureFixup: snFixup))); } [Fact] public void GetContentToSign_MultiBlobHeader() { var builder = new BlobBuilder(16); builder.WriteBytes(0, 16); builder.WriteBytes(1, 16); builder.WriteBytes(2, 16); builder.WriteBytes(3, 16); builder.WriteBytes(4, 2); var snFixup = builder.ReserveBytes(1); builder.WriteBytes(4, 13); builder.WriteBytes(5, 10); Assert.Equal(6, builder.GetBlobs().Count()); AssertEx.Equal( new[] { "0: [0, 16)", "1: [0, 16)", "2: [0, 1)", "4: [0, 2)", "4: [3, 16)", "5: [0, 10)" }, GetBlobRanges(builder, PEBuilder.GetContentToSign(builder, peHeadersSize: 33, peHeaderAlignment: 64, strongNameSignatureFixup: snFixup))); } [Fact] public void GetContentToSign_HeaderAndFixupInDistinctBlobs() { var builder = new BlobBuilder(16); builder.WriteBytes(0, 16); builder.WriteBytes(1, 16); builder.WriteBytes(2, 16); builder.WriteBytes(3, 16); var snFixup = builder.ReserveBytes(16); builder.WriteBytes(5, 16); builder.WriteBytes(6, 1); Assert.Equal(7, builder.GetBlobs().Count()); AssertEx.Equal( new[] { "0: [0, 1)", "0: [4, 16)", "1: [0, 16)", "2: [0, 16)", "3: [0, 16)", "4: [0, 0)", "4: [16, 16)", "5: [0, 16)", "6: [0, 1)" }, GetBlobRanges(builder, PEBuilder.GetContentToSign(builder, peHeadersSize: 1, peHeaderAlignment: 4, strongNameSignatureFixup: snFixup))); } private static IEnumerable<string> GetBlobRanges(BlobBuilder builder, IEnumerable<Blob> blobs) { var blobIndex = new Dictionary<byte[], int>(); int i = 0; foreach (var blob in builder.GetBlobs()) { blobIndex.Add(blob.Buffer, i++); } foreach (var blob in blobs) { yield return $"{blobIndex[blob.Buffer]}: [{blob.Start}, {blob.Start + blob.Length})"; } } [Fact] [SkipOnPlatform(TestPlatforms.Browser, "System.Security.Cryptography isn't supported on browser")] public void Checksum() { Assert.True(TestChecksumAndAuthenticodeSignature(new MemoryStream(Misc.Signed), Misc.KeyPair)); Assert.False(TestChecksumAndAuthenticodeSignature(new MemoryStream(Misc.Deterministic))); } [Fact] [SkipOnPlatform(TestPlatforms.Browser, "System.Security.Cryptography isn't supported on browser")] public void ChecksumFXAssemblies() { var paths = new[] { typeof(object).GetTypeInfo().Assembly.Location, typeof(Enumerable).GetTypeInfo().Assembly.Location, typeof(Linq.Expressions.Expression).GetTypeInfo().Assembly.Location, typeof(ComponentModel.EditorBrowsableAttribute).GetTypeInfo().Assembly.Location, typeof(IEnumerable<>).GetTypeInfo().Assembly.Location, typeof(Text.Encoding).GetTypeInfo().Assembly.Location, typeof(Threading.Tasks.Task).GetTypeInfo().Assembly.Location, typeof(IO.MemoryMappedFiles.MemoryMappedFile).GetTypeInfo().Assembly.Location, typeof(Diagnostics.Debug).GetTypeInfo().Assembly.Location, typeof(ImmutableArray).GetTypeInfo().Assembly.Location, typeof(Text.RegularExpressions.Regex).GetTypeInfo().Assembly.Location, typeof(Threading.Tasks.ParallelLoopResult).GetTypeInfo().Assembly.Location, }; foreach (string path in paths.Distinct()) { using (var peStream = File.OpenRead(path)) { TestChecksumAndAuthenticodeSignature(peStream); } } } private static bool TestChecksumAndAuthenticodeSignature(Stream peStream, byte[] privateKeyOpt = null) { var peHeaders = new PEHeaders(peStream); bool is32bit = peHeaders.PEHeader.Magic == PEMagic.PE32; uint expectedChecksum = peHeaders.PEHeader.CheckSum; int peHeadersSize = peHeaders.PEHeaderStartOffset + PEHeader.Size(is32bit) + SectionHeader.Size * peHeaders.SectionHeaders.Length; peStream.Position = 0; if (expectedChecksum == 0) { // not signed return false; } int peSize = (int)peStream.Length; var peImage = new BlobBuilder(peSize); Assert.Equal(peSize, peImage.TryWriteBytes(peStream, peSize)); var buffer = peImage.GetBlobs().Single().Buffer; var checksumBlob = new Blob(buffer, peHeaders.PEHeaderStartOffset + PEHeader.OffsetOfChecksum, sizeof(uint)); uint checksum = PEBuilder.CalculateChecksum(peImage, checksumBlob); Assert.Equal(expectedChecksum, checksum); // validate signature: if (privateKeyOpt != null) { // signature is calculated with checksum zeroed: new BlobWriter(checksumBlob).WriteUInt32(0); int snOffset; Assert.True(peHeaders.TryGetDirectoryOffset(peHeaders.CorHeader.StrongNameSignatureDirectory, out snOffset)); var snBlob = new Blob(buffer, snOffset, peHeaders.CorHeader.StrongNameSignatureDirectory.Size); var expectedSignature = snBlob.GetBytes().ToArray(); var signature = SigningUtilities.CalculateRsaSignature(PEBuilder.GetContentToSign(peImage, peHeadersSize, peHeaders.PEHeader.FileAlignment, snBlob), privateKeyOpt); AssertEx.Equal(expectedSignature, signature); } return true; } [Fact] public void GetPrefixBlob() { byte[] buffer = new byte[] { 0, 1, 2, 3, 4, 5 }; // [0, 1, <2, 3>, 4, 5] var b = PEBuilder.GetPrefixBlob(new Blob(buffer, start: 0, length: 6), new Blob(buffer, start: 2, length: 2)); Assert.Same(buffer, b.Buffer); Assert.Equal(0, b.Start); Assert.Equal(2, b.Length); // [0, 1, <2, 3>, 4], 5 b = PEBuilder.GetPrefixBlob(new Blob(buffer, start: 0, length: 5), new Blob(buffer, start: 2, length: 2)); Assert.Same(buffer, b.Buffer); Assert.Equal(0, b.Start); Assert.Equal(2, b.Length); // 0, [1, <2, 3>, 4], 5 b = PEBuilder.GetPrefixBlob(new Blob(buffer, start: 1, length: 4), new Blob(buffer, start: 2, length: 2)); Assert.Same(buffer, b.Buffer); Assert.Equal(1, b.Start); Assert.Equal(1, b.Length); // 0, 1, [<2, 3>, 4], 5 b = PEBuilder.GetPrefixBlob(new Blob(buffer, start: 2, length: 3), new Blob(buffer, start: 2, length: 2)); Assert.Same(buffer, b.Buffer); Assert.Equal(2, b.Start); Assert.Equal(0, b.Length); // 0, 1, [<2, 3>], 4, 5 b = PEBuilder.GetPrefixBlob(new Blob(buffer, start: 2, length: 2), new Blob(buffer, start: 2, length: 2)); Assert.Same(buffer, b.Buffer); Assert.Equal(2, b.Start); Assert.Equal(0, b.Length); // 0, 1, [<2>], 3, 4, 5 b = PEBuilder.GetPrefixBlob(new Blob(buffer, start: 2, length: 1), new Blob(buffer, start: 2, length: 1)); Assert.Same(buffer, b.Buffer); Assert.Equal(2, b.Start); Assert.Equal(0, b.Length); // 0, 1, [<>]2, 3, 4, 5 b = PEBuilder.GetPrefixBlob(new Blob(buffer, start: 2, length: 0), new Blob(buffer, start: 2, length: 0)); Assert.Same(buffer, b.Buffer); Assert.Equal(2, b.Start); Assert.Equal(0, b.Length); } [Fact] public void GetSuffixBlob() { byte[] buffer = new byte[] { 0, 1, 2, 3, 4, 5 }; // [0, 1, <2, 3>], 4, 5 var b = PEBuilder.GetSuffixBlob(new Blob(buffer, start: 0, length: 4), new Blob(buffer, start: 2, length: 2)); Assert.Same(buffer, b.Buffer); Assert.Equal(4, b.Start); Assert.Equal(0, b.Length); // 0, [1, <2, 3>, 4], 5 b = PEBuilder.GetSuffixBlob(new Blob(buffer, start: 1, length: 4), new Blob(buffer, start: 2, length: 2)); Assert.Same(buffer, b.Buffer); Assert.Equal(4, b.Start); Assert.Equal(1, b.Length); // 0, 1, [<2, 3>, 4, 5] b = PEBuilder.GetSuffixBlob(new Blob(buffer, start: 2, length: 4), new Blob(buffer, start: 2, length: 2)); Assert.Same(buffer, b.Buffer); Assert.Equal(4, b.Start); Assert.Equal(2, b.Length); // [0, 1, <2, 3>, 4, 5] b = PEBuilder.GetSuffixBlob(new Blob(buffer, start: 0, length: 6), new Blob(buffer, start: 2, length: 2)); Assert.Same(buffer, b.Buffer); Assert.Equal(4, b.Start); Assert.Equal(2, b.Length); // 0, 1, [<2, 3>], 4, 5 b = PEBuilder.GetSuffixBlob(new Blob(buffer, start: 2, length: 2), new Blob(buffer, start: 2, length: 2)); Assert.Same(buffer, b.Buffer); Assert.Equal(4, b.Start); Assert.Equal(0, b.Length); // 0, 1, [<>]2, 3, 4, 5 b = PEBuilder.GetSuffixBlob(new Blob(buffer, start: 2, length: 0), new Blob(buffer, start: 2, length: 0)); Assert.Same(buffer, b.Buffer); Assert.Equal(2, b.Start); Assert.Equal(0, b.Length); } } }
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/tests/JIT/Regression/JitBlue/Runtime_31615/Runtime_31615.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Numerics; using System.Runtime.CompilerServices; // Tests for the contiguous assignments from SIMD to memory // optimization in morph struct V2 { public float x; public float y; } struct V3 { public float x; public float y; public float z; } struct V4 { public float x; public float y; public float z; public float w; } class Runtime_31615 { static int s_checks; static int s_errors; const float g2X = 33f; const float g2Y = 67f; const float g3X = 11f; const float g3Y = 65f; const float g3Z = 24f; const float g4X = 10f; const float g4Y = 20f; const float g4Z = 30f; const float g4W = 40f; const float f0 = -101f; const float f1 = -7f; [MethodImpl(MethodImplOptions.NoInlining)] static Vector2 G2() { Vector2 r = new Vector2(); r.X = g2X; r.Y = g2Y; return r; } [MethodImpl(MethodImplOptions.NoInlining)] static Vector3 G3() { Vector3 r = new Vector3(); r.X = g3X; r.Y = g3Y; r.Z = g3Z; return r; } [MethodImpl(MethodImplOptions.NoInlining)] static Vector4 G4() { Vector4 r = new Vector4(); r.X = g4X; r.Y = g4Y; r.Z = g4Z; r.W = g4W; return r; } [MethodImpl(MethodImplOptions.NoInlining)] static void Check(V2 v2, float x, float y, [CallerLineNumber] int line = 0) { s_checks++; if ((v2.x != x) || (v2.y != y)) { s_errors++; Console.WriteLine($"Check at line {line} failed; have ({v2.x},{v2.y}); expected ({x},{y})"); } } [MethodImpl(MethodImplOptions.NoInlining)] static void Check(V3 v3, float x, float y, float z, [CallerLineNumber] int line = 0) { s_checks++; if ((v3.x != x) || (v3.y != y) || (v3.z != z)) { s_errors++; Console.WriteLine($"Check at line {line} failed; have ({v3.x},{v3.y},{v3.z}); expected ({x},{y},{z})"); } } [MethodImpl(MethodImplOptions.NoInlining)] static void Check(V4 v4, float x, float y, float z, float w, [CallerLineNumber] int line = 0) { s_checks++; if ((v4.x != x) || (v4.y != y) || (v4.z != z) || (v4.w != w)) { s_errors++; Console.WriteLine($"Check at line {line} failed; have ({v4.x},{v4.y},{v4.z},{v4.w}); expected ({x},{y},{z},{w})"); } } static void TestV2A() { Vector2 g2 = G2(); V2 v2a = new V2(); v2a.x = g2.X; v2a.y = g2.Y; Check(v2a, g2X, g2Y); } static void TestV2B() { Vector2 g2 = G2(); V2 v2b = new V2(); v2b.x = g2.Y; v2b.y = g2.X; Check(v2b, g2Y, g2X); } static void TestV2C() { Vector3 g3 = G3(); V2 v2c = new V2(); v2c.x = g3.X; v2c.y = g3.Y; Check(v2c, g3X, g3Y); } static void TestV2D() { Vector3 g3 = G3(); V2 v2d = new V2(); v2d.x = g3.Y; v2d.y = g3.Z; Check(v2d, g3Y, g3Z); } static void TestV2E() { Vector3 g3 = G3(); V2 v2e = new V2(); v2e.x = g3.X; v2e.y = g3.Z; Check(v2e, g3X, g3Z); } static void TestV3A() { Vector2 g2 = G2(); V3 v3a = new V3(); v3a.x = g2.X; v3a.y = g2.Y; Check(v3a, g2X, g2Y, 0f); } static void TestV3B() { Vector2 g2 = G2(); V3 v3b = new V3(); v3b.y = g2.X; v3b.z = g2.Y; Check(v3b, 0f, g2X, g2Y); } static void TestV3C() { Vector3 g3 = G3(); V3 v3c = new V3(); v3c.x = g3.Y; v3c.y = g3.Z; Check(v3c, g3Y, g3Z, 0f); } static void TestV3D() { Vector3 g3 = G3(); V3 v3d = new V3(); v3d.x = g3.X; v3d.y = g3.Y; v3d.z = g3.Z; Check(v3d, g3X, g3Y, g3Z); } static void TestV3E() { Vector3 g3 = G3(); V3 v3e = new V3(); v3e.x = g3.Z; v3e.y = g3.X; v3e.z = g3.Y; Check(v3e, g3Z, g3X, g3Y); } static void TestV3F() { Vector3 g3 = G3(); V3 v3f = new V3(); v3f.x = g3.X; v3f.y = g3.Y; v3f.z = g3.Y; Check(v3f, g3X, g3Y, g3Y); } static void TestV3G() { Vector3 g3 = G3(); V3 v3g = new V3(); v3g.x = g3.Y; v3g.y = g3.Y; v3g.z = g3.Z; Check(v3g, g3Y, g3Y, g3Z); } static void TestV4A() { Vector4 g4 = G4(); V4 v4a = new V4(); v4a.x = g4.X; v4a.y = g4.Y; v4a.z = g4.Z; v4a.w = g4.W; Check(v4a, g4X, g4Y, g4Z, g4W); } static void TestV4B() { Vector4 g4 = G4(); V4 v4b = new V4(); v4b.x = g4.Y; v4b.y = g4.X; v4b.z = g4.W; v4b.w = g4.Z; Check(v4b, g4Y, g4X, g4W, g4Z); } static void TestV4C() { Vector2 g2 = G2(); V4 v4c = new V4(); v4c.x = g2.X; v4c.y = g2.Y; v4c.z = g2.X; v4c.w = g2.Y; Check(v4c, g2X, g2Y, g2X, g2Y); } static void TestV4D() { Vector3 g3 = G3(); V4 v4d = new V4(); v4d.x = g3.X; v4d.y = g3.Y; v4d.z = g3.Z; v4d.w = f1; Check(v4d, g3X, g3Y, g3Z, f1); } static void TestV4E() { Vector2 g2 = G2(); V4 v4e = new V4(); v4e.x = f0; v4e.y = g2.X; v4e.z = g2.Y; v4e.w = f1; Check(v4e, f0, g2X, g2Y, f1); } static void TestV4F() { Vector2 g2 = G2(); V4 v4f = new V4(); v4f.x = f0; v4f.y = f1; v4f.z = g2.X; v4f.w = g2.Y; Check(v4f, f0, f1, g2X, g2Y); } static void TestV4G() { Vector3 g3 = G3(); V4 v4g = new V4(); v4g.x = f1; v4g.y = g3.X; v4g.z = g3.Y; v4g.w = g3.Z; Check(v4g, f1, g3X, g3Y, g3Z); } static void TestV4H() { Vector4 g4 = G4(); V4 v4h = new V4(); v4h.y = g4.Y; v4h.x = g4.X; v4h.w = g4.W; v4h.z = g4.Z; Check(v4h, g4X, g4Y, g4Z, g4W); } public static int Main() { Vector2 g2 = G2(); Vector3 g3 = G3(); Vector4 g4 = G4(); TestV2A(); TestV2B(); TestV2C(); TestV2D(); TestV2E(); TestV3A(); TestV3B(); TestV3C(); TestV3D(); TestV3E(); TestV3F(); TestV3G(); TestV4A(); TestV4B(); TestV4C(); TestV4D(); TestV4E(); TestV4F(); TestV4G(); TestV4H(); if (s_errors > 0) { Console.WriteLine($"Failed; {s_errors} errors in {s_checks} tests"); return -1; } else { Console.WriteLine($"Passed all {s_checks} tests"); return 100; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Numerics; using System.Runtime.CompilerServices; // Tests for the contiguous assignments from SIMD to memory // optimization in morph struct V2 { public float x; public float y; } struct V3 { public float x; public float y; public float z; } struct V4 { public float x; public float y; public float z; public float w; } class Runtime_31615 { static int s_checks; static int s_errors; const float g2X = 33f; const float g2Y = 67f; const float g3X = 11f; const float g3Y = 65f; const float g3Z = 24f; const float g4X = 10f; const float g4Y = 20f; const float g4Z = 30f; const float g4W = 40f; const float f0 = -101f; const float f1 = -7f; [MethodImpl(MethodImplOptions.NoInlining)] static Vector2 G2() { Vector2 r = new Vector2(); r.X = g2X; r.Y = g2Y; return r; } [MethodImpl(MethodImplOptions.NoInlining)] static Vector3 G3() { Vector3 r = new Vector3(); r.X = g3X; r.Y = g3Y; r.Z = g3Z; return r; } [MethodImpl(MethodImplOptions.NoInlining)] static Vector4 G4() { Vector4 r = new Vector4(); r.X = g4X; r.Y = g4Y; r.Z = g4Z; r.W = g4W; return r; } [MethodImpl(MethodImplOptions.NoInlining)] static void Check(V2 v2, float x, float y, [CallerLineNumber] int line = 0) { s_checks++; if ((v2.x != x) || (v2.y != y)) { s_errors++; Console.WriteLine($"Check at line {line} failed; have ({v2.x},{v2.y}); expected ({x},{y})"); } } [MethodImpl(MethodImplOptions.NoInlining)] static void Check(V3 v3, float x, float y, float z, [CallerLineNumber] int line = 0) { s_checks++; if ((v3.x != x) || (v3.y != y) || (v3.z != z)) { s_errors++; Console.WriteLine($"Check at line {line} failed; have ({v3.x},{v3.y},{v3.z}); expected ({x},{y},{z})"); } } [MethodImpl(MethodImplOptions.NoInlining)] static void Check(V4 v4, float x, float y, float z, float w, [CallerLineNumber] int line = 0) { s_checks++; if ((v4.x != x) || (v4.y != y) || (v4.z != z) || (v4.w != w)) { s_errors++; Console.WriteLine($"Check at line {line} failed; have ({v4.x},{v4.y},{v4.z},{v4.w}); expected ({x},{y},{z},{w})"); } } static void TestV2A() { Vector2 g2 = G2(); V2 v2a = new V2(); v2a.x = g2.X; v2a.y = g2.Y; Check(v2a, g2X, g2Y); } static void TestV2B() { Vector2 g2 = G2(); V2 v2b = new V2(); v2b.x = g2.Y; v2b.y = g2.X; Check(v2b, g2Y, g2X); } static void TestV2C() { Vector3 g3 = G3(); V2 v2c = new V2(); v2c.x = g3.X; v2c.y = g3.Y; Check(v2c, g3X, g3Y); } static void TestV2D() { Vector3 g3 = G3(); V2 v2d = new V2(); v2d.x = g3.Y; v2d.y = g3.Z; Check(v2d, g3Y, g3Z); } static void TestV2E() { Vector3 g3 = G3(); V2 v2e = new V2(); v2e.x = g3.X; v2e.y = g3.Z; Check(v2e, g3X, g3Z); } static void TestV3A() { Vector2 g2 = G2(); V3 v3a = new V3(); v3a.x = g2.X; v3a.y = g2.Y; Check(v3a, g2X, g2Y, 0f); } static void TestV3B() { Vector2 g2 = G2(); V3 v3b = new V3(); v3b.y = g2.X; v3b.z = g2.Y; Check(v3b, 0f, g2X, g2Y); } static void TestV3C() { Vector3 g3 = G3(); V3 v3c = new V3(); v3c.x = g3.Y; v3c.y = g3.Z; Check(v3c, g3Y, g3Z, 0f); } static void TestV3D() { Vector3 g3 = G3(); V3 v3d = new V3(); v3d.x = g3.X; v3d.y = g3.Y; v3d.z = g3.Z; Check(v3d, g3X, g3Y, g3Z); } static void TestV3E() { Vector3 g3 = G3(); V3 v3e = new V3(); v3e.x = g3.Z; v3e.y = g3.X; v3e.z = g3.Y; Check(v3e, g3Z, g3X, g3Y); } static void TestV3F() { Vector3 g3 = G3(); V3 v3f = new V3(); v3f.x = g3.X; v3f.y = g3.Y; v3f.z = g3.Y; Check(v3f, g3X, g3Y, g3Y); } static void TestV3G() { Vector3 g3 = G3(); V3 v3g = new V3(); v3g.x = g3.Y; v3g.y = g3.Y; v3g.z = g3.Z; Check(v3g, g3Y, g3Y, g3Z); } static void TestV4A() { Vector4 g4 = G4(); V4 v4a = new V4(); v4a.x = g4.X; v4a.y = g4.Y; v4a.z = g4.Z; v4a.w = g4.W; Check(v4a, g4X, g4Y, g4Z, g4W); } static void TestV4B() { Vector4 g4 = G4(); V4 v4b = new V4(); v4b.x = g4.Y; v4b.y = g4.X; v4b.z = g4.W; v4b.w = g4.Z; Check(v4b, g4Y, g4X, g4W, g4Z); } static void TestV4C() { Vector2 g2 = G2(); V4 v4c = new V4(); v4c.x = g2.X; v4c.y = g2.Y; v4c.z = g2.X; v4c.w = g2.Y; Check(v4c, g2X, g2Y, g2X, g2Y); } static void TestV4D() { Vector3 g3 = G3(); V4 v4d = new V4(); v4d.x = g3.X; v4d.y = g3.Y; v4d.z = g3.Z; v4d.w = f1; Check(v4d, g3X, g3Y, g3Z, f1); } static void TestV4E() { Vector2 g2 = G2(); V4 v4e = new V4(); v4e.x = f0; v4e.y = g2.X; v4e.z = g2.Y; v4e.w = f1; Check(v4e, f0, g2X, g2Y, f1); } static void TestV4F() { Vector2 g2 = G2(); V4 v4f = new V4(); v4f.x = f0; v4f.y = f1; v4f.z = g2.X; v4f.w = g2.Y; Check(v4f, f0, f1, g2X, g2Y); } static void TestV4G() { Vector3 g3 = G3(); V4 v4g = new V4(); v4g.x = f1; v4g.y = g3.X; v4g.z = g3.Y; v4g.w = g3.Z; Check(v4g, f1, g3X, g3Y, g3Z); } static void TestV4H() { Vector4 g4 = G4(); V4 v4h = new V4(); v4h.y = g4.Y; v4h.x = g4.X; v4h.w = g4.W; v4h.z = g4.Z; Check(v4h, g4X, g4Y, g4Z, g4W); } public static int Main() { Vector2 g2 = G2(); Vector3 g3 = G3(); Vector4 g4 = G4(); TestV2A(); TestV2B(); TestV2C(); TestV2D(); TestV2E(); TestV3A(); TestV3B(); TestV3C(); TestV3D(); TestV3E(); TestV3F(); TestV3G(); TestV4A(); TestV4B(); TestV4C(); TestV4D(); TestV4E(); TestV4F(); TestV4G(); TestV4H(); if (s_errors > 0) { Console.WriteLine($"Failed; {s_errors} errors in {s_checks} tests"); return -1; } else { Console.WriteLine($"Passed all {s_checks} tests"); return 100; } } }
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/tests/JIT/HardwareIntrinsics/Arm/AdvSimd/CompareGreaterThanOrEqual.Vector128.UInt16.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src\JIT\HardwareIntrinsics.Arm\Shared. In order to make * * changes, please update the corresponding template and run according to the * * directions listed in the file. * ******************************************************************************/ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; using System.Runtime.Intrinsics.Arm; namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { private static void CompareGreaterThanOrEqual_Vector128_UInt16() { var test = new SimpleBinaryOpTest__CompareGreaterThanOrEqual_Vector128_UInt16(); if (test.IsSupported) { // Validates basic functionality works, using Unsafe.Read test.RunBasicScenario_UnsafeRead(); if (AdvSimd.IsSupported) { // Validates basic functionality works, using Load test.RunBasicScenario_Load(); } // Validates calling via reflection works, using Unsafe.Read test.RunReflectionScenario_UnsafeRead(); if (AdvSimd.IsSupported) { // Validates calling via reflection works, using Load test.RunReflectionScenario_Load(); } // Validates passing a static member works test.RunClsVarScenario(); if (AdvSimd.IsSupported) { // Validates passing a static member works, using pinning and Load test.RunClsVarScenario_Load(); } // Validates passing a local works, using Unsafe.Read test.RunLclVarScenario_UnsafeRead(); if (AdvSimd.IsSupported) { // Validates passing a local works, using Load test.RunLclVarScenario_Load(); } // Validates passing the field of a local class works test.RunClassLclFldScenario(); if (AdvSimd.IsSupported) { // Validates passing the field of a local class works, using pinning and Load test.RunClassLclFldScenario_Load(); } // Validates passing an instance member of a class works test.RunClassFldScenario(); if (AdvSimd.IsSupported) { // Validates passing an instance member of a class works, using pinning and Load test.RunClassFldScenario_Load(); } // Validates passing the field of a local struct works test.RunStructLclFldScenario(); if (AdvSimd.IsSupported) { // Validates passing the field of a local struct works, using pinning and Load test.RunStructLclFldScenario_Load(); } // Validates passing an instance member of a struct works test.RunStructFldScenario(); if (AdvSimd.IsSupported) { // Validates passing an instance member of a struct works, using pinning and Load test.RunStructFldScenario_Load(); } } else { // Validates we throw on unsupported hardware test.RunUnsupportedScenario(); } if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class SimpleBinaryOpTest__CompareGreaterThanOrEqual_Vector128_UInt16 { private struct DataTable { private byte[] inArray1; private byte[] inArray2; private byte[] outArray; private GCHandle inHandle1; private GCHandle inHandle2; private GCHandle outHandle; private ulong alignment; public DataTable(UInt16[] inArray1, UInt16[] inArray2, UInt16[] outArray, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<UInt16>(); int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<UInt16>(); int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<UInt16>(); if ((alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2 || (alignment * 2) < sizeOfoutArray) { throw new ArgumentException("Invalid value of alignment"); } this.inArray1 = new byte[alignment * 2]; this.inArray2 = new byte[alignment * 2]; this.outArray = new byte[alignment * 2]; this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned); this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned); this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned); this.alignment = (ulong)alignment; Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<UInt16, byte>(ref inArray1[0]), (uint)sizeOfinArray1); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<UInt16, byte>(ref inArray2[0]), (uint)sizeOfinArray2); } public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment); public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment); public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment); public void Dispose() { inHandle1.Free(); inHandle2.Free(); outHandle.Free(); } private static unsafe void* Align(byte* buffer, ulong expectedAlignment) { return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1)); } } private struct TestStruct { public Vector128<UInt16> _fld1; public Vector128<UInt16> _fld2; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt16>, byte>(ref testStruct._fld1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt16>, byte>(ref testStruct._fld2), ref Unsafe.As<UInt16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); return testStruct; } public void RunStructFldScenario(SimpleBinaryOpTest__CompareGreaterThanOrEqual_Vector128_UInt16 testClass) { var result = AdvSimd.CompareGreaterThanOrEqual(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } public void RunStructFldScenario_Load(SimpleBinaryOpTest__CompareGreaterThanOrEqual_Vector128_UInt16 testClass) { fixed (Vector128<UInt16>* pFld1 = &_fld1) fixed (Vector128<UInt16>* pFld2 = &_fld2) { var result = AdvSimd.CompareGreaterThanOrEqual( AdvSimd.LoadVector128((UInt16*)(pFld1)), AdvSimd.LoadVector128((UInt16*)(pFld2)) ); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } } } private static readonly int LargestVectorSize = 16; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector128<UInt16>>() / sizeof(UInt16); private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector128<UInt16>>() / sizeof(UInt16); private static readonly int RetElementCount = Unsafe.SizeOf<Vector128<UInt16>>() / sizeof(UInt16); private static UInt16[] _data1 = new UInt16[Op1ElementCount]; private static UInt16[] _data2 = new UInt16[Op2ElementCount]; private static Vector128<UInt16> _clsVar1; private static Vector128<UInt16> _clsVar2; private Vector128<UInt16> _fld1; private Vector128<UInt16> _fld2; private DataTable _dataTable; static SimpleBinaryOpTest__CompareGreaterThanOrEqual_Vector128_UInt16() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt16>, byte>(ref _clsVar1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt16>, byte>(ref _clsVar2), ref Unsafe.As<UInt16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); } public SimpleBinaryOpTest__CompareGreaterThanOrEqual_Vector128_UInt16() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt16>, byte>(ref _fld1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt16>, byte>(ref _fld2), ref Unsafe.As<UInt16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt16(); } _dataTable = new DataTable(_data1, _data2, new UInt16[RetElementCount], LargestVectorSize); } public bool IsSupported => AdvSimd.IsSupported; public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = AdvSimd.CompareGreaterThanOrEqual( Unsafe.Read<Vector128<UInt16>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<UInt16>>(_dataTable.inArray2Ptr) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); var result = AdvSimd.CompareGreaterThanOrEqual( AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.CompareGreaterThanOrEqual), new Type[] { typeof(Vector128<UInt16>), typeof(Vector128<UInt16>) }) .Invoke(null, new object[] { Unsafe.Read<Vector128<UInt16>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<UInt16>>(_dataTable.inArray2Ptr) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<UInt16>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.CompareGreaterThanOrEqual), new Type[] { typeof(Vector128<UInt16>), typeof(Vector128<UInt16>) }) .Invoke(null, new object[] { AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<UInt16>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = AdvSimd.CompareGreaterThanOrEqual( _clsVar1, _clsVar2 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr); } public void RunClsVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load)); fixed (Vector128<UInt16>* pClsVar1 = &_clsVar1) fixed (Vector128<UInt16>* pClsVar2 = &_clsVar2) { var result = AdvSimd.CompareGreaterThanOrEqual( AdvSimd.LoadVector128((UInt16*)(pClsVar1)), AdvSimd.LoadVector128((UInt16*)(pClsVar2)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr); } } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<Vector128<UInt16>>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read<Vector128<UInt16>>(_dataTable.inArray2Ptr); var result = AdvSimd.CompareGreaterThanOrEqual(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunLclVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load)); var op1 = AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)); var result = AdvSimd.CompareGreaterThanOrEqual(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new SimpleBinaryOpTest__CompareGreaterThanOrEqual_Vector128_UInt16(); var result = AdvSimd.CompareGreaterThanOrEqual(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); var test = new SimpleBinaryOpTest__CompareGreaterThanOrEqual_Vector128_UInt16(); fixed (Vector128<UInt16>* pFld1 = &test._fld1) fixed (Vector128<UInt16>* pFld2 = &test._fld2) { var result = AdvSimd.CompareGreaterThanOrEqual( AdvSimd.LoadVector128((UInt16*)(pFld1)), AdvSimd.LoadVector128((UInt16*)(pFld2)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = AdvSimd.CompareGreaterThanOrEqual(_fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); } public void RunClassFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load)); fixed (Vector128<UInt16>* pFld1 = &_fld1) fixed (Vector128<UInt16>* pFld2 = &_fld2) { var result = AdvSimd.CompareGreaterThanOrEqual( AdvSimd.LoadVector128((UInt16*)(pFld1)), AdvSimd.LoadVector128((UInt16*)(pFld2)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); } } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = AdvSimd.CompareGreaterThanOrEqual(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunStructLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); var result = AdvSimd.CompareGreaterThanOrEqual( AdvSimd.LoadVector128((UInt16*)(&test._fld1)), AdvSimd.LoadVector128((UInt16*)(&test._fld2)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunStructFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario)); var test = TestStruct.Create(); test.RunStructFldScenario(this); } public void RunStructFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario_Load)); var test = TestStruct.Create(); test.RunStructFldScenario_Load(this); } public void RunUnsupportedScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario)); bool succeeded = false; try { RunBasicScenario_UnsafeRead(); } catch (PlatformNotSupportedException) { succeeded = true; } if (!succeeded) { Succeeded = false; } } private void ValidateResult(Vector128<UInt16> op1, Vector128<UInt16> op2, void* result, [CallerMemberName] string method = "") { UInt16[] inArray1 = new UInt16[Op1ElementCount]; UInt16[] inArray2 = new UInt16[Op2ElementCount]; UInt16[] outArray = new UInt16[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray1[0]), op1); Unsafe.WriteUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray2[0]), op2); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(void* op1, void* op2, void* result, [CallerMemberName] string method = "") { UInt16[] inArray1 = new UInt16[Op1ElementCount]; UInt16[] inArray2 = new UInt16[Op2ElementCount]; UInt16[] outArray = new UInt16[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(UInt16[] left, UInt16[] right, UInt16[] result, [CallerMemberName] string method = "") { bool succeeded = true; for (var i = 0; i < RetElementCount; i++) { if (Helpers.CompareGreaterThanOrEqual(left[i], right[i]) != result[i]) { succeeded = false; break; } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.CompareGreaterThanOrEqual)}<UInt16>(Vector128<UInt16>, Vector128<UInt16>): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src\JIT\HardwareIntrinsics.Arm\Shared. In order to make * * changes, please update the corresponding template and run according to the * * directions listed in the file. * ******************************************************************************/ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; using System.Runtime.Intrinsics.Arm; namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { private static void CompareGreaterThanOrEqual_Vector128_UInt16() { var test = new SimpleBinaryOpTest__CompareGreaterThanOrEqual_Vector128_UInt16(); if (test.IsSupported) { // Validates basic functionality works, using Unsafe.Read test.RunBasicScenario_UnsafeRead(); if (AdvSimd.IsSupported) { // Validates basic functionality works, using Load test.RunBasicScenario_Load(); } // Validates calling via reflection works, using Unsafe.Read test.RunReflectionScenario_UnsafeRead(); if (AdvSimd.IsSupported) { // Validates calling via reflection works, using Load test.RunReflectionScenario_Load(); } // Validates passing a static member works test.RunClsVarScenario(); if (AdvSimd.IsSupported) { // Validates passing a static member works, using pinning and Load test.RunClsVarScenario_Load(); } // Validates passing a local works, using Unsafe.Read test.RunLclVarScenario_UnsafeRead(); if (AdvSimd.IsSupported) { // Validates passing a local works, using Load test.RunLclVarScenario_Load(); } // Validates passing the field of a local class works test.RunClassLclFldScenario(); if (AdvSimd.IsSupported) { // Validates passing the field of a local class works, using pinning and Load test.RunClassLclFldScenario_Load(); } // Validates passing an instance member of a class works test.RunClassFldScenario(); if (AdvSimd.IsSupported) { // Validates passing an instance member of a class works, using pinning and Load test.RunClassFldScenario_Load(); } // Validates passing the field of a local struct works test.RunStructLclFldScenario(); if (AdvSimd.IsSupported) { // Validates passing the field of a local struct works, using pinning and Load test.RunStructLclFldScenario_Load(); } // Validates passing an instance member of a struct works test.RunStructFldScenario(); if (AdvSimd.IsSupported) { // Validates passing an instance member of a struct works, using pinning and Load test.RunStructFldScenario_Load(); } } else { // Validates we throw on unsupported hardware test.RunUnsupportedScenario(); } if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class SimpleBinaryOpTest__CompareGreaterThanOrEqual_Vector128_UInt16 { private struct DataTable { private byte[] inArray1; private byte[] inArray2; private byte[] outArray; private GCHandle inHandle1; private GCHandle inHandle2; private GCHandle outHandle; private ulong alignment; public DataTable(UInt16[] inArray1, UInt16[] inArray2, UInt16[] outArray, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<UInt16>(); int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<UInt16>(); int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<UInt16>(); if ((alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2 || (alignment * 2) < sizeOfoutArray) { throw new ArgumentException("Invalid value of alignment"); } this.inArray1 = new byte[alignment * 2]; this.inArray2 = new byte[alignment * 2]; this.outArray = new byte[alignment * 2]; this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned); this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned); this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned); this.alignment = (ulong)alignment; Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<UInt16, byte>(ref inArray1[0]), (uint)sizeOfinArray1); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<UInt16, byte>(ref inArray2[0]), (uint)sizeOfinArray2); } public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment); public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment); public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment); public void Dispose() { inHandle1.Free(); inHandle2.Free(); outHandle.Free(); } private static unsafe void* Align(byte* buffer, ulong expectedAlignment) { return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1)); } } private struct TestStruct { public Vector128<UInt16> _fld1; public Vector128<UInt16> _fld2; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt16>, byte>(ref testStruct._fld1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt16>, byte>(ref testStruct._fld2), ref Unsafe.As<UInt16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); return testStruct; } public void RunStructFldScenario(SimpleBinaryOpTest__CompareGreaterThanOrEqual_Vector128_UInt16 testClass) { var result = AdvSimd.CompareGreaterThanOrEqual(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } public void RunStructFldScenario_Load(SimpleBinaryOpTest__CompareGreaterThanOrEqual_Vector128_UInt16 testClass) { fixed (Vector128<UInt16>* pFld1 = &_fld1) fixed (Vector128<UInt16>* pFld2 = &_fld2) { var result = AdvSimd.CompareGreaterThanOrEqual( AdvSimd.LoadVector128((UInt16*)(pFld1)), AdvSimd.LoadVector128((UInt16*)(pFld2)) ); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } } } private static readonly int LargestVectorSize = 16; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector128<UInt16>>() / sizeof(UInt16); private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector128<UInt16>>() / sizeof(UInt16); private static readonly int RetElementCount = Unsafe.SizeOf<Vector128<UInt16>>() / sizeof(UInt16); private static UInt16[] _data1 = new UInt16[Op1ElementCount]; private static UInt16[] _data2 = new UInt16[Op2ElementCount]; private static Vector128<UInt16> _clsVar1; private static Vector128<UInt16> _clsVar2; private Vector128<UInt16> _fld1; private Vector128<UInt16> _fld2; private DataTable _dataTable; static SimpleBinaryOpTest__CompareGreaterThanOrEqual_Vector128_UInt16() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt16>, byte>(ref _clsVar1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt16>, byte>(ref _clsVar2), ref Unsafe.As<UInt16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); } public SimpleBinaryOpTest__CompareGreaterThanOrEqual_Vector128_UInt16() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt16>, byte>(ref _fld1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt16>, byte>(ref _fld2), ref Unsafe.As<UInt16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt16(); } _dataTable = new DataTable(_data1, _data2, new UInt16[RetElementCount], LargestVectorSize); } public bool IsSupported => AdvSimd.IsSupported; public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = AdvSimd.CompareGreaterThanOrEqual( Unsafe.Read<Vector128<UInt16>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<UInt16>>(_dataTable.inArray2Ptr) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); var result = AdvSimd.CompareGreaterThanOrEqual( AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.CompareGreaterThanOrEqual), new Type[] { typeof(Vector128<UInt16>), typeof(Vector128<UInt16>) }) .Invoke(null, new object[] { Unsafe.Read<Vector128<UInt16>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<UInt16>>(_dataTable.inArray2Ptr) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<UInt16>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.CompareGreaterThanOrEqual), new Type[] { typeof(Vector128<UInt16>), typeof(Vector128<UInt16>) }) .Invoke(null, new object[] { AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<UInt16>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = AdvSimd.CompareGreaterThanOrEqual( _clsVar1, _clsVar2 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr); } public void RunClsVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load)); fixed (Vector128<UInt16>* pClsVar1 = &_clsVar1) fixed (Vector128<UInt16>* pClsVar2 = &_clsVar2) { var result = AdvSimd.CompareGreaterThanOrEqual( AdvSimd.LoadVector128((UInt16*)(pClsVar1)), AdvSimd.LoadVector128((UInt16*)(pClsVar2)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr); } } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<Vector128<UInt16>>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read<Vector128<UInt16>>(_dataTable.inArray2Ptr); var result = AdvSimd.CompareGreaterThanOrEqual(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunLclVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load)); var op1 = AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)); var result = AdvSimd.CompareGreaterThanOrEqual(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new SimpleBinaryOpTest__CompareGreaterThanOrEqual_Vector128_UInt16(); var result = AdvSimd.CompareGreaterThanOrEqual(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); var test = new SimpleBinaryOpTest__CompareGreaterThanOrEqual_Vector128_UInt16(); fixed (Vector128<UInt16>* pFld1 = &test._fld1) fixed (Vector128<UInt16>* pFld2 = &test._fld2) { var result = AdvSimd.CompareGreaterThanOrEqual( AdvSimd.LoadVector128((UInt16*)(pFld1)), AdvSimd.LoadVector128((UInt16*)(pFld2)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = AdvSimd.CompareGreaterThanOrEqual(_fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); } public void RunClassFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load)); fixed (Vector128<UInt16>* pFld1 = &_fld1) fixed (Vector128<UInt16>* pFld2 = &_fld2) { var result = AdvSimd.CompareGreaterThanOrEqual( AdvSimd.LoadVector128((UInt16*)(pFld1)), AdvSimd.LoadVector128((UInt16*)(pFld2)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); } } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = AdvSimd.CompareGreaterThanOrEqual(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunStructLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); var result = AdvSimd.CompareGreaterThanOrEqual( AdvSimd.LoadVector128((UInt16*)(&test._fld1)), AdvSimd.LoadVector128((UInt16*)(&test._fld2)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunStructFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario)); var test = TestStruct.Create(); test.RunStructFldScenario(this); } public void RunStructFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario_Load)); var test = TestStruct.Create(); test.RunStructFldScenario_Load(this); } public void RunUnsupportedScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario)); bool succeeded = false; try { RunBasicScenario_UnsafeRead(); } catch (PlatformNotSupportedException) { succeeded = true; } if (!succeeded) { Succeeded = false; } } private void ValidateResult(Vector128<UInt16> op1, Vector128<UInt16> op2, void* result, [CallerMemberName] string method = "") { UInt16[] inArray1 = new UInt16[Op1ElementCount]; UInt16[] inArray2 = new UInt16[Op2ElementCount]; UInt16[] outArray = new UInt16[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray1[0]), op1); Unsafe.WriteUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray2[0]), op2); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(void* op1, void* op2, void* result, [CallerMemberName] string method = "") { UInt16[] inArray1 = new UInt16[Op1ElementCount]; UInt16[] inArray2 = new UInt16[Op2ElementCount]; UInt16[] outArray = new UInt16[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(UInt16[] left, UInt16[] right, UInt16[] result, [CallerMemberName] string method = "") { bool succeeded = true; for (var i = 0; i < RetElementCount; i++) { if (Helpers.CompareGreaterThanOrEqual(left[i], right[i]) != result[i]) { succeeded = false; break; } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.CompareGreaterThanOrEqual)}<UInt16>(Vector128<UInt16>, Vector128<UInt16>): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/tests/GC/Stress/Tests/LeakGenThrd.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Threading; using System; using System.IO; // Licensed under the MIT license. See LICENSE file in the project root for full license information. // namespace LGen { public class LeakGenThrd { internal int myObj; internal int Cv_iCounter = 0; internal int Cv_iRep; public static int Main(string[] args) { int iRep = 2; int iObj = 15; //the number of MB memory will be allocted in MakeLeak() switch (args.Length) { case 1: if (!Int32.TryParse(args[0], out iRep)) { iRep = 2; } break; case 2: if (!Int32.TryParse(args[0], out iRep)) { iRep = 2; } if (!Int32.TryParse(args[1], out iObj)) { iObj = 15; } break; default: iRep = 2; iObj = 15; break; } LeakGenThrd Mv_Leak = new LeakGenThrd(); if (Mv_Leak.runTest(iRep, iObj)) { Console.WriteLine("Test Passed"); return 100; } else { Console.WriteLine("Test Failed"); return 1; } } public bool runTest(int iRep, int iObj) { Cv_iRep = iRep; myObj = iObj; Thread Mv_Thread = new Thread(new ThreadStart(this.ThreadStart)); Mv_Thread.Start(); for (int i = 0; i < iRep; i++) { MakeLeak(iObj); } return true; } public void ThreadStart() { if (Cv_iCounter < Cv_iRep) { LeakObject[] Mv_Obj = new LeakObject[myObj]; for (int i = 0; i < myObj; i++) { Mv_Obj[i] = new LeakObject(i); } Cv_iCounter += 1; Thread Mv_Thread = new Thread(new ThreadStart(this.ThreadStart)); Mv_Thread.Start(); } } public void MakeLeak(int iObj) { LeakObject[] Mv_Obj = new LeakObject[iObj]; for (int i = 0; i < iObj; i++) { Mv_Obj[i] = new LeakObject(i); } } } public class LeakObject { internal int[] mem; public static int icFinal = 0; public LeakObject(int num) { mem = new int[1024 * 250]; //nearly 1MB memory, larger than this will get assert failure. mem[0] = num; mem[mem.Length - 1] = num; } ~LeakObject() { LeakObject.icFinal++; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Threading; using System; using System.IO; // Licensed under the MIT license. See LICENSE file in the project root for full license information. // namespace LGen { public class LeakGenThrd { internal int myObj; internal int Cv_iCounter = 0; internal int Cv_iRep; public static int Main(string[] args) { int iRep = 2; int iObj = 15; //the number of MB memory will be allocted in MakeLeak() switch (args.Length) { case 1: if (!Int32.TryParse(args[0], out iRep)) { iRep = 2; } break; case 2: if (!Int32.TryParse(args[0], out iRep)) { iRep = 2; } if (!Int32.TryParse(args[1], out iObj)) { iObj = 15; } break; default: iRep = 2; iObj = 15; break; } LeakGenThrd Mv_Leak = new LeakGenThrd(); if (Mv_Leak.runTest(iRep, iObj)) { Console.WriteLine("Test Passed"); return 100; } else { Console.WriteLine("Test Failed"); return 1; } } public bool runTest(int iRep, int iObj) { Cv_iRep = iRep; myObj = iObj; Thread Mv_Thread = new Thread(new ThreadStart(this.ThreadStart)); Mv_Thread.Start(); for (int i = 0; i < iRep; i++) { MakeLeak(iObj); } return true; } public void ThreadStart() { if (Cv_iCounter < Cv_iRep) { LeakObject[] Mv_Obj = new LeakObject[myObj]; for (int i = 0; i < myObj; i++) { Mv_Obj[i] = new LeakObject(i); } Cv_iCounter += 1; Thread Mv_Thread = new Thread(new ThreadStart(this.ThreadStart)); Mv_Thread.Start(); } } public void MakeLeak(int iObj) { LeakObject[] Mv_Obj = new LeakObject[iObj]; for (int i = 0; i < iObj; i++) { Mv_Obj[i] = new LeakObject(i); } } } public class LeakObject { internal int[] mem; public static int icFinal = 0; public LeakObject(int num) { mem = new int[1024 * 250]; //nearly 1MB memory, larger than this will get assert failure. mem[0] = num; mem[mem.Length - 1] = num; } ~LeakObject() { LeakObject.icFinal++; } } }
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Serialization/ContinuationTests.NullToken.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.IO; using System.Threading.Tasks; using Xunit; namespace System.Text.Json.Serialization.Tests { public static partial class ContinuationTests { // From https://github.com/dotnet/runtime/issues/42070 [Theory] [MemberData(nameof(ContinuationAtNullTokenTestData))] public static async Task ContinuationAtNullToken(string payload) { using (Stream stream = new MemoryStream(Encoding.UTF8.GetBytes(payload))) { CustomerCollectionResponse response = await JsonSerializer.DeserializeAsync<CustomerCollectionResponse>(stream, new JsonSerializerOptions { IgnoreNullValues = true }); Assert.Equal(50, response.Customers.Count); } } public static IEnumerable<object[]> ContinuationAtNullTokenTestData => new[] { new[] { SR.CustomerSearchApi108KB }, new[] { SR.CustomerSearchApi107KB }, }; private class CustomerCollectionResponse { [JsonPropertyName("customers")] public List<Customer> Customers { get; set; } } private class CustomerAddress { [JsonPropertyName("first_name")] public string FirstName { get; set; } [JsonPropertyName("address1")] public string Address1 { get; set; } [JsonPropertyName("phone")] public string Phone { get; set; } [JsonPropertyName("city")] public string City { get; set; } [JsonPropertyName("zip")] public string Zip { get; set; } [JsonPropertyName("province")] public string Province { get; set; } [JsonPropertyName("country")] public string Country { get; set; } [JsonPropertyName("last_name")] public string LastName { get; set; } [JsonPropertyName("address2")] public string Address2 { get; set; } [JsonPropertyName("company")] public string Company { get; set; } [JsonPropertyName("latitude")] public float? Latitude { get; set; } [JsonPropertyName("longitude")] public float? Longitude { get; set; } [JsonPropertyName("name")] public string Name { get; set; } [JsonPropertyName("country_code")] public string CountryCode { get; set; } [JsonPropertyName("province_code")] public string ProvinceCode { get; set; } } private class Customer { [JsonPropertyName("id")] public long Id { get; set; } [JsonPropertyName("email")] public string Email { get; set; } [JsonPropertyName("accepts_marketing")] public bool AcceptsMarketing { get; set; } [JsonPropertyName("created_at")] public DateTimeOffset? CreatedAt { get; set; } [JsonPropertyName("updated_at")] public DateTimeOffset? UpdatedAt { get; set; } [JsonPropertyName("first_name")] public string FirstName { get; set; } [JsonPropertyName("last_name")] public string LastName { get; set; } [JsonPropertyName("orders_count")] public int OrdersCount { get; set; } [JsonPropertyName("state")] public string State { get; set; } [JsonPropertyName("total_spent")] public string TotalSpent { get; set; } [JsonPropertyName("last_order_id")] public long? LastOrderId { get; set; } [JsonPropertyName("note")] public string Note { get; set; } [JsonPropertyName("verified_email")] public bool VerifiedEmail { get; set; } [JsonPropertyName("multipass_identifier")] public string MultipassIdentifier { get; set; } [JsonPropertyName("tax_exempt")] public bool TaxExempt { get; set; } [JsonPropertyName("tags")] public string Tags { get; set; } [JsonPropertyName("last_order_name")] public string LastOrderName { get; set; } [JsonPropertyName("default_address")] public CustomerAddress DefaultAddress { get; set; } [JsonPropertyName("addresses")] public IList<CustomerAddress> Addresses { get; set; } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.IO; using System.Threading.Tasks; using Xunit; namespace System.Text.Json.Serialization.Tests { public static partial class ContinuationTests { // From https://github.com/dotnet/runtime/issues/42070 [Theory] [MemberData(nameof(ContinuationAtNullTokenTestData))] public static async Task ContinuationAtNullToken(string payload) { using (Stream stream = new MemoryStream(Encoding.UTF8.GetBytes(payload))) { CustomerCollectionResponse response = await JsonSerializer.DeserializeAsync<CustomerCollectionResponse>(stream, new JsonSerializerOptions { IgnoreNullValues = true }); Assert.Equal(50, response.Customers.Count); } } public static IEnumerable<object[]> ContinuationAtNullTokenTestData => new[] { new[] { SR.CustomerSearchApi108KB }, new[] { SR.CustomerSearchApi107KB }, }; private class CustomerCollectionResponse { [JsonPropertyName("customers")] public List<Customer> Customers { get; set; } } private class CustomerAddress { [JsonPropertyName("first_name")] public string FirstName { get; set; } [JsonPropertyName("address1")] public string Address1 { get; set; } [JsonPropertyName("phone")] public string Phone { get; set; } [JsonPropertyName("city")] public string City { get; set; } [JsonPropertyName("zip")] public string Zip { get; set; } [JsonPropertyName("province")] public string Province { get; set; } [JsonPropertyName("country")] public string Country { get; set; } [JsonPropertyName("last_name")] public string LastName { get; set; } [JsonPropertyName("address2")] public string Address2 { get; set; } [JsonPropertyName("company")] public string Company { get; set; } [JsonPropertyName("latitude")] public float? Latitude { get; set; } [JsonPropertyName("longitude")] public float? Longitude { get; set; } [JsonPropertyName("name")] public string Name { get; set; } [JsonPropertyName("country_code")] public string CountryCode { get; set; } [JsonPropertyName("province_code")] public string ProvinceCode { get; set; } } private class Customer { [JsonPropertyName("id")] public long Id { get; set; } [JsonPropertyName("email")] public string Email { get; set; } [JsonPropertyName("accepts_marketing")] public bool AcceptsMarketing { get; set; } [JsonPropertyName("created_at")] public DateTimeOffset? CreatedAt { get; set; } [JsonPropertyName("updated_at")] public DateTimeOffset? UpdatedAt { get; set; } [JsonPropertyName("first_name")] public string FirstName { get; set; } [JsonPropertyName("last_name")] public string LastName { get; set; } [JsonPropertyName("orders_count")] public int OrdersCount { get; set; } [JsonPropertyName("state")] public string State { get; set; } [JsonPropertyName("total_spent")] public string TotalSpent { get; set; } [JsonPropertyName("last_order_id")] public long? LastOrderId { get; set; } [JsonPropertyName("note")] public string Note { get; set; } [JsonPropertyName("verified_email")] public bool VerifiedEmail { get; set; } [JsonPropertyName("multipass_identifier")] public string MultipassIdentifier { get; set; } [JsonPropertyName("tax_exempt")] public bool TaxExempt { get; set; } [JsonPropertyName("tags")] public string Tags { get; set; } [JsonPropertyName("last_order_name")] public string LastOrderName { get; set; } [JsonPropertyName("default_address")] public CustomerAddress DefaultAddress { get; set; } [JsonPropertyName("addresses")] public IList<CustomerAddress> Addresses { get; set; } } } }
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/installer/tests/HostActivation.Tests/FrameworkResolution/IncludedFrameworksSettings.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.DotNet.Cli.Build; using Microsoft.DotNet.Cli.Build.Framework; using Xunit; namespace Microsoft.DotNet.CoreSetup.Test.HostActivation.FrameworkResolution { public class IncludedFrameworksSettings : FrameworkResolutionBase, IClassFixture<IncludedFrameworksSettings.SharedTestState> { private SharedTestState SharedState { get; } public IncludedFrameworksSettings(SharedTestState sharedState) { SharedState = sharedState; } [Fact] public void FrameworkAndIncludedFrameworksIsInvalid() { RunFrameworkDependentTest( new TestSettings() .WithRuntimeConfigCustomizer(runtimeConfig => runtimeConfig .WithFramework(MicrosoftNETCoreApp, "5.1.2") .WithIncludedFramework(MicrosoftNETCoreApp, "5.1.2"))) .Should().Fail() .And.HaveStdErrContaining("It's invalid to specify both `framework`/`frameworks` and `includedFrameworks` properties."); } [Fact] public void SelfContainedCanHaveIncludedFrameworks() { RunSelfContainedTest( new TestSettings() .WithRuntimeConfigCustomizer(runtimeConfig => runtimeConfig .WithIncludedFramework(MicrosoftNETCoreApp, "5.1.2"))) .Should().Pass() .And.HaveStdOutContaining("mock is_framework_dependent: 0"); } [Fact] public void IncludedFrameworkMustSpecifyName() { RunSelfContainedTest( new TestSettings() .WithRuntimeConfigCustomizer(runtimeConfig => runtimeConfig .WithIncludedFramework(null, "5.1.2"))) .Should().Fail() .And.HaveStdErrContaining("No framework name specified."); } [Fact] public void OtherPropertiesAreIgnoredOnIncludedFramework() { RunSelfContainedTest( new TestSettings() .WithRuntimeConfigCustomizer(runtimeConfig => runtimeConfig .WithIncludedFramework(new RuntimeConfig.Framework(MicrosoftNETCoreApp, "5.1.2") .WithApplyPatches(false) // Properties which are otherwise parsed on frameworks are ignored .WithRollForward("invalid") // in case of included frameworks. (so invalid values will be accepted) .WithRollForwardOnNoCandidateFx(42)))) .Should().Pass() .And.HaveStdOutContaining("mock is_framework_dependent: 0"); } private CommandResult RunFrameworkDependentTest(TestSettings testSettings) => RunTest(SharedState.DotNetWithFrameworks, SharedState.FrameworkReferenceApp, testSettings); private CommandResult RunSelfContainedTest(TestSettings testSettings) => RunSelfContainedTest(SharedState.SelfContainedApp, testSettings); public class SharedTestState : SharedTestStateBase { public TestApp FrameworkReferenceApp { get; } public TestApp SelfContainedApp { get; } public DotNetCli DotNetWithFrameworks { get; } public SharedTestState() { DotNetWithFrameworks = DotNet("WithOneFramework") .AddMicrosoftNETCoreAppFrameworkMockHostPolicy("5.1.2") .Build(); FrameworkReferenceApp = CreateFrameworkReferenceApp(); SelfContainedApp = CreateSelfContainedAppWithMockHostPolicy(); } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.DotNet.Cli.Build; using Microsoft.DotNet.Cli.Build.Framework; using Xunit; namespace Microsoft.DotNet.CoreSetup.Test.HostActivation.FrameworkResolution { public class IncludedFrameworksSettings : FrameworkResolutionBase, IClassFixture<IncludedFrameworksSettings.SharedTestState> { private SharedTestState SharedState { get; } public IncludedFrameworksSettings(SharedTestState sharedState) { SharedState = sharedState; } [Fact] public void FrameworkAndIncludedFrameworksIsInvalid() { RunFrameworkDependentTest( new TestSettings() .WithRuntimeConfigCustomizer(runtimeConfig => runtimeConfig .WithFramework(MicrosoftNETCoreApp, "5.1.2") .WithIncludedFramework(MicrosoftNETCoreApp, "5.1.2"))) .Should().Fail() .And.HaveStdErrContaining("It's invalid to specify both `framework`/`frameworks` and `includedFrameworks` properties."); } [Fact] public void SelfContainedCanHaveIncludedFrameworks() { RunSelfContainedTest( new TestSettings() .WithRuntimeConfigCustomizer(runtimeConfig => runtimeConfig .WithIncludedFramework(MicrosoftNETCoreApp, "5.1.2"))) .Should().Pass() .And.HaveStdOutContaining("mock is_framework_dependent: 0"); } [Fact] public void IncludedFrameworkMustSpecifyName() { RunSelfContainedTest( new TestSettings() .WithRuntimeConfigCustomizer(runtimeConfig => runtimeConfig .WithIncludedFramework(null, "5.1.2"))) .Should().Fail() .And.HaveStdErrContaining("No framework name specified."); } [Fact] public void OtherPropertiesAreIgnoredOnIncludedFramework() { RunSelfContainedTest( new TestSettings() .WithRuntimeConfigCustomizer(runtimeConfig => runtimeConfig .WithIncludedFramework(new RuntimeConfig.Framework(MicrosoftNETCoreApp, "5.1.2") .WithApplyPatches(false) // Properties which are otherwise parsed on frameworks are ignored .WithRollForward("invalid") // in case of included frameworks. (so invalid values will be accepted) .WithRollForwardOnNoCandidateFx(42)))) .Should().Pass() .And.HaveStdOutContaining("mock is_framework_dependent: 0"); } private CommandResult RunFrameworkDependentTest(TestSettings testSettings) => RunTest(SharedState.DotNetWithFrameworks, SharedState.FrameworkReferenceApp, testSettings); private CommandResult RunSelfContainedTest(TestSettings testSettings) => RunSelfContainedTest(SharedState.SelfContainedApp, testSettings); public class SharedTestState : SharedTestStateBase { public TestApp FrameworkReferenceApp { get; } public TestApp SelfContainedApp { get; } public DotNetCli DotNetWithFrameworks { get; } public SharedTestState() { DotNetWithFrameworks = DotNet("WithOneFramework") .AddMicrosoftNETCoreAppFrameworkMockHostPolicy("5.1.2") .Build(); FrameworkReferenceApp = CreateFrameworkReferenceApp(); SelfContainedApp = CreateSelfContainedAppWithMockHostPolicy(); } } } }
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/tests/JIT/HardwareIntrinsics/General/Vector64_1/op_BitwiseAnd.Int64.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make * * changes, please update the corresponding template and run according to the * * directions listed in the file. * ******************************************************************************/ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; namespace JIT.HardwareIntrinsics.General { public static partial class Program { private static void op_BitwiseAndInt64() { var test = new VectorBinaryOpTest__op_BitwiseAndInt64(); // Validates basic functionality works, using Unsafe.Read test.RunBasicScenario_UnsafeRead(); // Validates calling via reflection works, using Unsafe.Read test.RunReflectionScenario_UnsafeRead(); // Validates passing a static member works test.RunClsVarScenario(); // Validates passing a local works, using Unsafe.Read test.RunLclVarScenario_UnsafeRead(); // Validates passing the field of a local class works test.RunClassLclFldScenario(); // Validates passing an instance member of a class works test.RunClassFldScenario(); // Validates passing the field of a local struct works test.RunStructLclFldScenario(); // Validates passing an instance member of a struct works test.RunStructFldScenario(); if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class VectorBinaryOpTest__op_BitwiseAndInt64 { private struct DataTable { private byte[] inArray1; private byte[] inArray2; private byte[] outArray; private GCHandle inHandle1; private GCHandle inHandle2; private GCHandle outHandle; private ulong alignment; public DataTable(Int64[] inArray1, Int64[] inArray2, Int64[] outArray, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Int64>(); int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<Int64>(); int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<Int64>(); if ((alignment != 32 && alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2 || (alignment * 2) < sizeOfoutArray) { throw new ArgumentException("Invalid value of alignment"); } this.inArray1 = new byte[alignment * 2]; this.inArray2 = new byte[alignment * 2]; this.outArray = new byte[alignment * 2]; this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned); this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned); this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned); this.alignment = (ulong)alignment; Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<Int64, byte>(ref inArray1[0]), (uint)sizeOfinArray1); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<Int64, byte>(ref inArray2[0]), (uint)sizeOfinArray2); } public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment); public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment); public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment); public void Dispose() { inHandle1.Free(); inHandle2.Free(); outHandle.Free(); } private static unsafe void* Align(byte* buffer, ulong expectedAlignment) { return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1)); } } private struct TestStruct { public Vector64<Int64> _fld1; public Vector64<Int64> _fld2; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Int64>, byte>(ref testStruct._fld1), ref Unsafe.As<Int64, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Int64>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Int64>, byte>(ref testStruct._fld2), ref Unsafe.As<Int64, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector64<Int64>>()); return testStruct; } public void RunStructFldScenario(VectorBinaryOpTest__op_BitwiseAndInt64 testClass) { var result = _fld1 & _fld2; Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } } private static readonly int LargestVectorSize = 8; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector64<Int64>>() / sizeof(Int64); private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector64<Int64>>() / sizeof(Int64); private static readonly int RetElementCount = Unsafe.SizeOf<Vector64<Int64>>() / sizeof(Int64); private static Int64[] _data1 = new Int64[Op1ElementCount]; private static Int64[] _data2 = new Int64[Op2ElementCount]; private static Vector64<Int64> _clsVar1; private static Vector64<Int64> _clsVar2; private Vector64<Int64> _fld1; private Vector64<Int64> _fld2; private DataTable _dataTable; static VectorBinaryOpTest__op_BitwiseAndInt64() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Int64>, byte>(ref _clsVar1), ref Unsafe.As<Int64, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Int64>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Int64>, byte>(ref _clsVar2), ref Unsafe.As<Int64, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector64<Int64>>()); } public VectorBinaryOpTest__op_BitwiseAndInt64() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Int64>, byte>(ref _fld1), ref Unsafe.As<Int64, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Int64>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Int64>, byte>(ref _fld2), ref Unsafe.As<Int64, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector64<Int64>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt64(); } for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt64(); } _dataTable = new DataTable(_data1, _data2, new Int64[RetElementCount], LargestVectorSize); } public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = Unsafe.Read<Vector64<Int64>>(_dataTable.inArray1Ptr) & Unsafe.Read<Vector64<Int64>>(_dataTable.inArray2Ptr); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); var result = typeof(Vector64<Int64>).GetMethod("op_BitwiseAnd", new Type[] { typeof(Vector64<Int64>), typeof(Vector64<Int64>) }) .Invoke(null, new object[] { Unsafe.Read<Vector64<Int64>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector64<Int64>>(_dataTable.inArray2Ptr) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector64<Int64>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = _clsVar1 & _clsVar2; Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr); } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<Vector64<Int64>>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read<Vector64<Int64>>(_dataTable.inArray2Ptr); var result = op1 & op2; Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new VectorBinaryOpTest__op_BitwiseAndInt64(); var result = test._fld1 & test._fld2; Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = _fld1 & _fld2; Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = test._fld1 & test._fld2; Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunStructFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario)); var test = TestStruct.Create(); test.RunStructFldScenario(this); } private void ValidateResult(Vector64<Int64> op1, Vector64<Int64> op2, void* result, [CallerMemberName] string method = "") { Int64[] inArray1 = new Int64[Op1ElementCount]; Int64[] inArray2 = new Int64[Op2ElementCount]; Int64[] outArray = new Int64[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<Int64, byte>(ref inArray1[0]), op1); Unsafe.WriteUnaligned(ref Unsafe.As<Int64, byte>(ref inArray2[0]), op2); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int64, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<Int64>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(void* op1, void* op2, void* result, [CallerMemberName] string method = "") { Int64[] inArray1 = new Int64[Op1ElementCount]; Int64[] inArray2 = new Int64[Op2ElementCount]; Int64[] outArray = new Int64[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int64, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector64<Int64>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int64, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<Vector64<Int64>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int64, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<Int64>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(Int64[] left, Int64[] right, Int64[] result, [CallerMemberName] string method = "") { bool succeeded = true; if (result[0] != (long)(left[0] & right[0])) { succeeded = false; } else { for (var i = 1; i < RetElementCount; i++) { if (result[i] != (long)(left[i] & right[i])) { succeeded = false; break; } } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(Vector64)}.op_BitwiseAnd<Int64>(Vector64<Int64>, Vector64<Int64>): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make * * changes, please update the corresponding template and run according to the * * directions listed in the file. * ******************************************************************************/ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; namespace JIT.HardwareIntrinsics.General { public static partial class Program { private static void op_BitwiseAndInt64() { var test = new VectorBinaryOpTest__op_BitwiseAndInt64(); // Validates basic functionality works, using Unsafe.Read test.RunBasicScenario_UnsafeRead(); // Validates calling via reflection works, using Unsafe.Read test.RunReflectionScenario_UnsafeRead(); // Validates passing a static member works test.RunClsVarScenario(); // Validates passing a local works, using Unsafe.Read test.RunLclVarScenario_UnsafeRead(); // Validates passing the field of a local class works test.RunClassLclFldScenario(); // Validates passing an instance member of a class works test.RunClassFldScenario(); // Validates passing the field of a local struct works test.RunStructLclFldScenario(); // Validates passing an instance member of a struct works test.RunStructFldScenario(); if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class VectorBinaryOpTest__op_BitwiseAndInt64 { private struct DataTable { private byte[] inArray1; private byte[] inArray2; private byte[] outArray; private GCHandle inHandle1; private GCHandle inHandle2; private GCHandle outHandle; private ulong alignment; public DataTable(Int64[] inArray1, Int64[] inArray2, Int64[] outArray, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Int64>(); int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<Int64>(); int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<Int64>(); if ((alignment != 32 && alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2 || (alignment * 2) < sizeOfoutArray) { throw new ArgumentException("Invalid value of alignment"); } this.inArray1 = new byte[alignment * 2]; this.inArray2 = new byte[alignment * 2]; this.outArray = new byte[alignment * 2]; this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned); this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned); this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned); this.alignment = (ulong)alignment; Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<Int64, byte>(ref inArray1[0]), (uint)sizeOfinArray1); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<Int64, byte>(ref inArray2[0]), (uint)sizeOfinArray2); } public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment); public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment); public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment); public void Dispose() { inHandle1.Free(); inHandle2.Free(); outHandle.Free(); } private static unsafe void* Align(byte* buffer, ulong expectedAlignment) { return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1)); } } private struct TestStruct { public Vector64<Int64> _fld1; public Vector64<Int64> _fld2; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Int64>, byte>(ref testStruct._fld1), ref Unsafe.As<Int64, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Int64>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Int64>, byte>(ref testStruct._fld2), ref Unsafe.As<Int64, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector64<Int64>>()); return testStruct; } public void RunStructFldScenario(VectorBinaryOpTest__op_BitwiseAndInt64 testClass) { var result = _fld1 & _fld2; Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } } private static readonly int LargestVectorSize = 8; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector64<Int64>>() / sizeof(Int64); private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector64<Int64>>() / sizeof(Int64); private static readonly int RetElementCount = Unsafe.SizeOf<Vector64<Int64>>() / sizeof(Int64); private static Int64[] _data1 = new Int64[Op1ElementCount]; private static Int64[] _data2 = new Int64[Op2ElementCount]; private static Vector64<Int64> _clsVar1; private static Vector64<Int64> _clsVar2; private Vector64<Int64> _fld1; private Vector64<Int64> _fld2; private DataTable _dataTable; static VectorBinaryOpTest__op_BitwiseAndInt64() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Int64>, byte>(ref _clsVar1), ref Unsafe.As<Int64, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Int64>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Int64>, byte>(ref _clsVar2), ref Unsafe.As<Int64, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector64<Int64>>()); } public VectorBinaryOpTest__op_BitwiseAndInt64() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Int64>, byte>(ref _fld1), ref Unsafe.As<Int64, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Int64>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Int64>, byte>(ref _fld2), ref Unsafe.As<Int64, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector64<Int64>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt64(); } for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt64(); } _dataTable = new DataTable(_data1, _data2, new Int64[RetElementCount], LargestVectorSize); } public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = Unsafe.Read<Vector64<Int64>>(_dataTable.inArray1Ptr) & Unsafe.Read<Vector64<Int64>>(_dataTable.inArray2Ptr); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); var result = typeof(Vector64<Int64>).GetMethod("op_BitwiseAnd", new Type[] { typeof(Vector64<Int64>), typeof(Vector64<Int64>) }) .Invoke(null, new object[] { Unsafe.Read<Vector64<Int64>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector64<Int64>>(_dataTable.inArray2Ptr) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector64<Int64>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = _clsVar1 & _clsVar2; Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr); } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<Vector64<Int64>>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read<Vector64<Int64>>(_dataTable.inArray2Ptr); var result = op1 & op2; Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new VectorBinaryOpTest__op_BitwiseAndInt64(); var result = test._fld1 & test._fld2; Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = _fld1 & _fld2; Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = test._fld1 & test._fld2; Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunStructFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario)); var test = TestStruct.Create(); test.RunStructFldScenario(this); } private void ValidateResult(Vector64<Int64> op1, Vector64<Int64> op2, void* result, [CallerMemberName] string method = "") { Int64[] inArray1 = new Int64[Op1ElementCount]; Int64[] inArray2 = new Int64[Op2ElementCount]; Int64[] outArray = new Int64[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<Int64, byte>(ref inArray1[0]), op1); Unsafe.WriteUnaligned(ref Unsafe.As<Int64, byte>(ref inArray2[0]), op2); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int64, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<Int64>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(void* op1, void* op2, void* result, [CallerMemberName] string method = "") { Int64[] inArray1 = new Int64[Op1ElementCount]; Int64[] inArray2 = new Int64[Op2ElementCount]; Int64[] outArray = new Int64[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int64, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector64<Int64>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int64, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<Vector64<Int64>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int64, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<Int64>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(Int64[] left, Int64[] right, Int64[] result, [CallerMemberName] string method = "") { bool succeeded = true; if (result[0] != (long)(left[0] & right[0])) { succeeded = false; } else { for (var i = 1; i < RetElementCount; i++) { if (result[i] != (long)(left[i] & right[i])) { succeeded = false; break; } } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(Vector64)}.op_BitwiseAnd<Int64>(Vector64<Int64>, Vector64<Int64>): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/tests/JIT/HardwareIntrinsics/X86/AvxVnni/MultiplyWideningAndAdd.Int16.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; using System.Runtime.Intrinsics.X86; using System.Text.RegularExpressions; namespace JIT.HardwareIntrinsics.X86 { public static partial class Program { private static void MultiplyWideningAndAddInt16() { var test = new SimpleTernaryOpTest__MultiplyWideningAndAddInt16(); if (test.IsSupported) { // Validates basic functionality works, using Unsafe.Read test.RunBasicScenario_UnsafeRead(); if (Avx.IsSupported) { // Validates basic functionality works, using Load test.RunBasicScenario_Load(); // Validates basic functionality works, using LoadAligned test.RunBasicScenario_LoadAligned(); } else { Console.WriteLine("Avx Is Not Supported"); } // Validates calling via reflection works, using Unsafe.Read test.RunReflectionScenario_UnsafeRead(); //TODO: this one does not work. Fix it. if (Avx.IsSupported) { // Validates calling via reflection works, using Load test.RunReflectionScenario_Load(); // Validates calling via reflection works, using LoadAligned test.RunReflectionScenario_LoadAligned(); } // Validates passing a static member works test.RunClsVarScenario(); // Validates passing a local works, using Unsafe.Read test.RunLclVarScenario_UnsafeRead(); if (Avx.IsSupported) { // Validates passing a local works, using Load test.RunLclVarScenario_Load(); // Validates passing a local works, using LoadAligned test.RunLclVarScenario_LoadAligned(); } // Validates passing the field of a local class works test.RunClassLclFldScenario(); // Validates passing an instance member of a class works test.RunClassFldScenario(); // Validates passing the field of a local struct works test.RunStructLclFldScenario(); // Validates passing an instance member of a struct works test.RunStructFldScenario(); } else { Console.WriteLine("Test Is Not Supported"); // Validates we throw on unsupported hardware test.RunUnsupportedScenario(); } if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class SimpleTernaryOpTest__MultiplyWideningAndAddInt16 { private struct DataTable { private byte[] inArray0; private byte[] inArray1; private byte[] inArray2; private byte[] outArray; private GCHandle inHandle0; private GCHandle inHandle1; private GCHandle inHandle2; private GCHandle outHandle; private ulong alignment; public DataTable(Int32[] inArray0, Int16[] inArray1, Int16[] inArray2, Int32[] outArray, int alignment) { int sizeOfinArray0 = inArray0.Length * Unsafe.SizeOf<Int32>(); int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Int16>(); int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<Int16>(); int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<Int32>(); if((alignment != 32 && alignment != 16) || (alignment *2) < sizeOfinArray0 || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2 || (alignment * 2) < sizeOfoutArray) { throw new ArgumentException("Invalid value of alignment"); } this.inArray0 = new byte[alignment * 2]; this.inArray1 = new byte[alignment * 2]; this.inArray2 = new byte[alignment * 2]; this.outArray = new byte[alignment * 2]; this.inHandle0 = GCHandle.Alloc(this.inArray0, GCHandleType.Pinned); this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned); this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned); this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned); this.alignment = (ulong)alignment; Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray0Ptr), ref Unsafe.As<Int32, byte>(ref inArray0[0]), (uint)sizeOfinArray0); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<Int16, byte>(ref inArray1[0]), (uint)sizeOfinArray1); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<Int16, byte>(ref inArray2[0]), (uint)sizeOfinArray2); } public void* inArray0Ptr => Align((byte*)(inHandle0.AddrOfPinnedObject().ToPointer()), alignment); public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment); public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment); public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment); public void Dispose() { inHandle0.Free(); inHandle1.Free(); inHandle2.Free(); outHandle.Free(); } private static unsafe void* Align(byte* buffer, ulong expectedAlighment) { return (void*)(((ulong)buffer + expectedAlighment -1) & ~(expectedAlighment - 1)); } } private struct TestStruct { public Vector256<Int32> _fld0; public Vector256<Int16> _fld1; public Vector256<Int16> _fld2; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op0ElementCount; i++) { _data0[i] = TestLibrary.Generator.GetInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Int32>, byte>(ref testStruct._fld0), ref Unsafe.As<Int32, byte>(ref _data0[0]), (uint)Unsafe.SizeOf<Vector256<Int32>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetByte(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Int16>, byte>(ref testStruct._fld1), ref Unsafe.As<Int16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Int16>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = (sbyte)TestLibrary.Generator.GetInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Int16>, byte>(ref testStruct._fld2), ref Unsafe.As<Int16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<Int16>>()); return testStruct; } public void RunStructFldScenario(SimpleTernaryOpTest__MultiplyWideningAndAddInt16 testClass) { var result = AvxVnni.MultiplyWideningAndAdd(_fld0, _fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld0, _fld1, _fld2, testClass._dataTable.outArrayPtr); } } private static readonly int LargestVectorSize = 32; private static readonly int Op0ElementCount = Unsafe.SizeOf<Vector256<Int32>>() / sizeof(Int32); private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector256<Int16>>() / sizeof(Int16); private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector256<Int16>>() / sizeof(Int16); private static readonly int RetElementCount = Unsafe.SizeOf<Vector256<Int32>>() / sizeof(Int32); private static Int32[] _data0 = new Int32[Op0ElementCount]; private static Int16[] _data1 = new Int16[Op1ElementCount]; private static Int16[] _data2 = new Int16[Op2ElementCount]; private static Vector256<Int32> _clsVar0; private static Vector256<Int16> _clsVar1; private static Vector256<Int16> _clsVar2; private Vector256<Int32> _fld0; private Vector256<Int16> _fld1; private Vector256<Int16> _fld2; private DataTable _dataTable; static SimpleTernaryOpTest__MultiplyWideningAndAddInt16() { for (var i = 0; i < Op0ElementCount; i++) { _data0[i] = TestLibrary.Generator.GetInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Int32>, byte>(ref _clsVar0), ref Unsafe.As<Int32, byte>(ref _data0[0]), (uint)Unsafe.SizeOf<Vector256<Int32>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Int16>, byte>(ref _clsVar1), ref Unsafe.As<Int16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Int16>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = (sbyte)TestLibrary.Generator.GetInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Int16>, byte>(ref _clsVar2), ref Unsafe.As<Int16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<Int16>>()); } public SimpleTernaryOpTest__MultiplyWideningAndAddInt16() { Succeeded = true; for (var i = 0; i < Op0ElementCount; i++) { _data0[i] = TestLibrary.Generator.GetInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Int32>, byte>(ref _fld0), ref Unsafe.As<Int32, byte>(ref _data0[0]), (uint)Unsafe.SizeOf<Vector256<Int32>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Int16>, byte>(ref _fld1), ref Unsafe.As<Int16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Int16>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = (sbyte)TestLibrary.Generator.GetInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Int16>, byte>(ref _fld2), ref Unsafe.As<Int16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<Int16>>()); for (var i = 0; i < Op0ElementCount; i++) { _data0[i] = TestLibrary.Generator.GetInt32(); } for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt16(); } for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt16(); } _dataTable = new DataTable(_data0, _data1, _data2, new Int32[RetElementCount], LargestVectorSize); } public bool IsSupported => AvxVnni.IsSupported; public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = AvxVnni.MultiplyWideningAndAdd( Unsafe.Read<Vector256<Int32>>(_dataTable.inArray0Ptr), Unsafe.Read<Vector256<Int16>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector256<Int16>>(_dataTable.inArray2Ptr) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray0Ptr, _dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); var result = AvxVnni.MultiplyWideningAndAdd( Avx.LoadVector256((Int32*)(_dataTable.inArray0Ptr)), Avx.LoadVector256((Int16*)(_dataTable.inArray1Ptr)), Avx.LoadVector256((Int16*)(_dataTable.inArray2Ptr))); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray0Ptr, _dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunBasicScenario_LoadAligned() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned)); var result = AvxVnni.MultiplyWideningAndAdd( Avx.LoadAlignedVector256((Int32*)(_dataTable.inArray0Ptr)), Avx.LoadAlignedVector256((Int16*)(_dataTable.inArray1Ptr)), Avx.LoadAlignedVector256((Int16*)(_dataTable.inArray2Ptr)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray0Ptr, _dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); var result = typeof(AvxVnni).GetMethod(nameof(AvxVnni.MultiplyWideningAndAdd), new Type[] { typeof(Vector256<Int32>), typeof(Vector256<Int16>), typeof(Vector256<Int16>) }) .Invoke(null, new object[] { Unsafe.Read<Vector256<Int32>>(_dataTable.inArray0Ptr), Unsafe.Read<Vector256<Int16>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector256<Int16>>(_dataTable.inArray2Ptr) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector256<Int32>)(result)); ValidateResult(_dataTable.inArray0Ptr, _dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); var result = typeof(AvxVnni).GetMethod(nameof(AvxVnni.MultiplyWideningAndAdd), new Type[] { typeof(Vector256<Int32>), typeof(Vector256<Int16>), typeof(Vector256<Int16>) }) .Invoke(null, new object[] { Avx.LoadVector256((Int32*)(_dataTable.inArray0Ptr)), Avx.LoadVector256((Int16*)(_dataTable.inArray1Ptr)), Avx.LoadVector256((Int16*)(_dataTable.inArray2Ptr)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector256<Int32>)(result)); ValidateResult(_dataTable.inArray0Ptr, _dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_LoadAligned() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned)); var result = typeof(AvxVnni).GetMethod(nameof(AvxVnni.MultiplyWideningAndAdd), new Type[] { typeof(Vector256<Int32>), typeof(Vector256<Int16>), typeof(Vector256<Int16>) }) .Invoke(null, new object[] { Avx.LoadAlignedVector256((Int32*)(_dataTable.inArray0Ptr)), Avx.LoadAlignedVector256((Int16*)(_dataTable.inArray1Ptr)), Avx.LoadAlignedVector256((Int16*)(_dataTable.inArray2Ptr)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector256<Int32>)(result)); ValidateResult(_dataTable.inArray0Ptr, _dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = AvxVnni.MultiplyWideningAndAdd( _clsVar0, _clsVar1, _clsVar2 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar0, _clsVar1, _clsVar2, _dataTable.outArrayPtr); } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var first = Unsafe.Read<Vector256<Int32>>(_dataTable.inArray0Ptr); var second = Unsafe.Read<Vector256<Int16>>(_dataTable.inArray1Ptr); var third = Unsafe.Read<Vector256<Int16>>(_dataTable.inArray2Ptr); var result = AvxVnni.MultiplyWideningAndAdd(first, second, third); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(first, second, third, _dataTable.outArrayPtr); } public void RunLclVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load)); var first= Avx.LoadVector256((Int32*)(_dataTable.inArray0Ptr)); var second = Avx.LoadVector256((Int16*)(_dataTable.inArray1Ptr)); var third = Avx.LoadVector256((Int16*)(_dataTable.inArray2Ptr)); var result = AvxVnni.MultiplyWideningAndAdd(first, second, third); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(first, second, third, _dataTable.outArrayPtr); } public void RunLclVarScenario_LoadAligned() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned)); var first = Avx.LoadAlignedVector256((Int32*)(_dataTable.inArray0Ptr)); var second = Avx.LoadAlignedVector256((Int16*)(_dataTable.inArray1Ptr)); var third = Avx.LoadAlignedVector256((Int16*)(_dataTable.inArray2Ptr)); var result = AvxVnni.MultiplyWideningAndAdd(first, second, third); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(first, second, third, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new SimpleTernaryOpTest__MultiplyWideningAndAddInt16(); var result = AvxVnni.MultiplyWideningAndAdd(test._fld0, test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld0, test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = AvxVnni.MultiplyWideningAndAdd(_fld0, _fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld0, _fld1, _fld2, _dataTable.outArrayPtr); } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = AvxVnni.MultiplyWideningAndAdd(test._fld0, test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld0, test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunStructFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario)); var test = TestStruct.Create(); test.RunStructFldScenario(this); } public void RunUnsupportedScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario)); bool succeeded = false; try { RunBasicScenario_UnsafeRead(); } catch (PlatformNotSupportedException) { succeeded = true; } if (!succeeded) { Succeeded = false; } } private void ValidateResult(Vector256<Int32> addend, Vector256<Int16> left, Vector256<Int16> right, void* result, [CallerMemberName] string method = "") { Int32[] inArray0 = new Int32[Op0ElementCount]; Int16[] inArray1 = new Int16[Op1ElementCount]; Int16[] inArray2 = new Int16[Op2ElementCount]; Int32[] outArray = new Int32[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<Int32, byte>(ref inArray0[0]), addend); Unsafe.WriteUnaligned(ref Unsafe.As<Int16, byte>(ref inArray1[0]), left); Unsafe.WriteUnaligned(ref Unsafe.As<Int16, byte>(ref inArray2[0]), right); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<Int32>>()); ValidateResult(inArray0, inArray1, inArray2, outArray, method); } private void ValidateResult(void* addend, void* left, void* right, void* result, [CallerMemberName] string method = "") { Int32[] inArray0 = new Int32[Op0ElementCount]; Int16[] inArray1 = new Int16[Op1ElementCount]; Int16[] inArray2 = new Int16[Op2ElementCount]; Int32[] outArray = new Int32[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref inArray0[0]), ref Unsafe.AsRef<byte>(addend), (uint)Unsafe.SizeOf<Vector256<Int32>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int16, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(left), (uint)Unsafe.SizeOf<Vector256<Int16>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int16, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(right), (uint)Unsafe.SizeOf<Vector256<Int16>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<Int32>>()); ValidateResult(inArray0, inArray1, inArray2, outArray, method); } private void ValidateResult(Int32[] addend, Int16[] left, Int16[] right, Int32[] result, [CallerMemberName] string method = "") { bool succeeded = true; Int32[] outArray = new Int32[RetElementCount]; for (var i = 0; i < RetElementCount; i++) { outArray[i] = Math.Clamp((addend[i] + (right[i * 2 + 1] * left[i * 2 + 1] + right[i * 2] * left[i * 2])), int.MinValue, int.MaxValue); } for (var i = 0; i < RetElementCount; i++) { if (result[i] != outArray[i]) { succeeded = false; break; } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(AvxVnni)}.{nameof(AvxVnni.MultiplyWideningAndAdd)}<Int32>(Vector256<Int32>, Vector256<Int32>): {method} failed:"); TestLibrary.TestFramework.LogInformation($" addend: ({string.Join(", ", addend)})"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); TestLibrary.TestFramework.LogInformation($" valid: ({string.Join(", ", outArray)})"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; using System.Runtime.Intrinsics.X86; using System.Text.RegularExpressions; namespace JIT.HardwareIntrinsics.X86 { public static partial class Program { private static void MultiplyWideningAndAddInt16() { var test = new SimpleTernaryOpTest__MultiplyWideningAndAddInt16(); if (test.IsSupported) { // Validates basic functionality works, using Unsafe.Read test.RunBasicScenario_UnsafeRead(); if (Avx.IsSupported) { // Validates basic functionality works, using Load test.RunBasicScenario_Load(); // Validates basic functionality works, using LoadAligned test.RunBasicScenario_LoadAligned(); } else { Console.WriteLine("Avx Is Not Supported"); } // Validates calling via reflection works, using Unsafe.Read test.RunReflectionScenario_UnsafeRead(); //TODO: this one does not work. Fix it. if (Avx.IsSupported) { // Validates calling via reflection works, using Load test.RunReflectionScenario_Load(); // Validates calling via reflection works, using LoadAligned test.RunReflectionScenario_LoadAligned(); } // Validates passing a static member works test.RunClsVarScenario(); // Validates passing a local works, using Unsafe.Read test.RunLclVarScenario_UnsafeRead(); if (Avx.IsSupported) { // Validates passing a local works, using Load test.RunLclVarScenario_Load(); // Validates passing a local works, using LoadAligned test.RunLclVarScenario_LoadAligned(); } // Validates passing the field of a local class works test.RunClassLclFldScenario(); // Validates passing an instance member of a class works test.RunClassFldScenario(); // Validates passing the field of a local struct works test.RunStructLclFldScenario(); // Validates passing an instance member of a struct works test.RunStructFldScenario(); } else { Console.WriteLine("Test Is Not Supported"); // Validates we throw on unsupported hardware test.RunUnsupportedScenario(); } if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class SimpleTernaryOpTest__MultiplyWideningAndAddInt16 { private struct DataTable { private byte[] inArray0; private byte[] inArray1; private byte[] inArray2; private byte[] outArray; private GCHandle inHandle0; private GCHandle inHandle1; private GCHandle inHandle2; private GCHandle outHandle; private ulong alignment; public DataTable(Int32[] inArray0, Int16[] inArray1, Int16[] inArray2, Int32[] outArray, int alignment) { int sizeOfinArray0 = inArray0.Length * Unsafe.SizeOf<Int32>(); int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Int16>(); int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<Int16>(); int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<Int32>(); if((alignment != 32 && alignment != 16) || (alignment *2) < sizeOfinArray0 || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2 || (alignment * 2) < sizeOfoutArray) { throw new ArgumentException("Invalid value of alignment"); } this.inArray0 = new byte[alignment * 2]; this.inArray1 = new byte[alignment * 2]; this.inArray2 = new byte[alignment * 2]; this.outArray = new byte[alignment * 2]; this.inHandle0 = GCHandle.Alloc(this.inArray0, GCHandleType.Pinned); this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned); this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned); this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned); this.alignment = (ulong)alignment; Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray0Ptr), ref Unsafe.As<Int32, byte>(ref inArray0[0]), (uint)sizeOfinArray0); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<Int16, byte>(ref inArray1[0]), (uint)sizeOfinArray1); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<Int16, byte>(ref inArray2[0]), (uint)sizeOfinArray2); } public void* inArray0Ptr => Align((byte*)(inHandle0.AddrOfPinnedObject().ToPointer()), alignment); public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment); public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment); public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment); public void Dispose() { inHandle0.Free(); inHandle1.Free(); inHandle2.Free(); outHandle.Free(); } private static unsafe void* Align(byte* buffer, ulong expectedAlighment) { return (void*)(((ulong)buffer + expectedAlighment -1) & ~(expectedAlighment - 1)); } } private struct TestStruct { public Vector256<Int32> _fld0; public Vector256<Int16> _fld1; public Vector256<Int16> _fld2; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op0ElementCount; i++) { _data0[i] = TestLibrary.Generator.GetInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Int32>, byte>(ref testStruct._fld0), ref Unsafe.As<Int32, byte>(ref _data0[0]), (uint)Unsafe.SizeOf<Vector256<Int32>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetByte(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Int16>, byte>(ref testStruct._fld1), ref Unsafe.As<Int16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Int16>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = (sbyte)TestLibrary.Generator.GetInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Int16>, byte>(ref testStruct._fld2), ref Unsafe.As<Int16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<Int16>>()); return testStruct; } public void RunStructFldScenario(SimpleTernaryOpTest__MultiplyWideningAndAddInt16 testClass) { var result = AvxVnni.MultiplyWideningAndAdd(_fld0, _fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld0, _fld1, _fld2, testClass._dataTable.outArrayPtr); } } private static readonly int LargestVectorSize = 32; private static readonly int Op0ElementCount = Unsafe.SizeOf<Vector256<Int32>>() / sizeof(Int32); private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector256<Int16>>() / sizeof(Int16); private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector256<Int16>>() / sizeof(Int16); private static readonly int RetElementCount = Unsafe.SizeOf<Vector256<Int32>>() / sizeof(Int32); private static Int32[] _data0 = new Int32[Op0ElementCount]; private static Int16[] _data1 = new Int16[Op1ElementCount]; private static Int16[] _data2 = new Int16[Op2ElementCount]; private static Vector256<Int32> _clsVar0; private static Vector256<Int16> _clsVar1; private static Vector256<Int16> _clsVar2; private Vector256<Int32> _fld0; private Vector256<Int16> _fld1; private Vector256<Int16> _fld2; private DataTable _dataTable; static SimpleTernaryOpTest__MultiplyWideningAndAddInt16() { for (var i = 0; i < Op0ElementCount; i++) { _data0[i] = TestLibrary.Generator.GetInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Int32>, byte>(ref _clsVar0), ref Unsafe.As<Int32, byte>(ref _data0[0]), (uint)Unsafe.SizeOf<Vector256<Int32>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Int16>, byte>(ref _clsVar1), ref Unsafe.As<Int16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Int16>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = (sbyte)TestLibrary.Generator.GetInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Int16>, byte>(ref _clsVar2), ref Unsafe.As<Int16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<Int16>>()); } public SimpleTernaryOpTest__MultiplyWideningAndAddInt16() { Succeeded = true; for (var i = 0; i < Op0ElementCount; i++) { _data0[i] = TestLibrary.Generator.GetInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Int32>, byte>(ref _fld0), ref Unsafe.As<Int32, byte>(ref _data0[0]), (uint)Unsafe.SizeOf<Vector256<Int32>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Int16>, byte>(ref _fld1), ref Unsafe.As<Int16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Int16>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = (sbyte)TestLibrary.Generator.GetInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Int16>, byte>(ref _fld2), ref Unsafe.As<Int16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<Int16>>()); for (var i = 0; i < Op0ElementCount; i++) { _data0[i] = TestLibrary.Generator.GetInt32(); } for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt16(); } for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt16(); } _dataTable = new DataTable(_data0, _data1, _data2, new Int32[RetElementCount], LargestVectorSize); } public bool IsSupported => AvxVnni.IsSupported; public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = AvxVnni.MultiplyWideningAndAdd( Unsafe.Read<Vector256<Int32>>(_dataTable.inArray0Ptr), Unsafe.Read<Vector256<Int16>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector256<Int16>>(_dataTable.inArray2Ptr) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray0Ptr, _dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); var result = AvxVnni.MultiplyWideningAndAdd( Avx.LoadVector256((Int32*)(_dataTable.inArray0Ptr)), Avx.LoadVector256((Int16*)(_dataTable.inArray1Ptr)), Avx.LoadVector256((Int16*)(_dataTable.inArray2Ptr))); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray0Ptr, _dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunBasicScenario_LoadAligned() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned)); var result = AvxVnni.MultiplyWideningAndAdd( Avx.LoadAlignedVector256((Int32*)(_dataTable.inArray0Ptr)), Avx.LoadAlignedVector256((Int16*)(_dataTable.inArray1Ptr)), Avx.LoadAlignedVector256((Int16*)(_dataTable.inArray2Ptr)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray0Ptr, _dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); var result = typeof(AvxVnni).GetMethod(nameof(AvxVnni.MultiplyWideningAndAdd), new Type[] { typeof(Vector256<Int32>), typeof(Vector256<Int16>), typeof(Vector256<Int16>) }) .Invoke(null, new object[] { Unsafe.Read<Vector256<Int32>>(_dataTable.inArray0Ptr), Unsafe.Read<Vector256<Int16>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector256<Int16>>(_dataTable.inArray2Ptr) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector256<Int32>)(result)); ValidateResult(_dataTable.inArray0Ptr, _dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); var result = typeof(AvxVnni).GetMethod(nameof(AvxVnni.MultiplyWideningAndAdd), new Type[] { typeof(Vector256<Int32>), typeof(Vector256<Int16>), typeof(Vector256<Int16>) }) .Invoke(null, new object[] { Avx.LoadVector256((Int32*)(_dataTable.inArray0Ptr)), Avx.LoadVector256((Int16*)(_dataTable.inArray1Ptr)), Avx.LoadVector256((Int16*)(_dataTable.inArray2Ptr)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector256<Int32>)(result)); ValidateResult(_dataTable.inArray0Ptr, _dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_LoadAligned() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned)); var result = typeof(AvxVnni).GetMethod(nameof(AvxVnni.MultiplyWideningAndAdd), new Type[] { typeof(Vector256<Int32>), typeof(Vector256<Int16>), typeof(Vector256<Int16>) }) .Invoke(null, new object[] { Avx.LoadAlignedVector256((Int32*)(_dataTable.inArray0Ptr)), Avx.LoadAlignedVector256((Int16*)(_dataTable.inArray1Ptr)), Avx.LoadAlignedVector256((Int16*)(_dataTable.inArray2Ptr)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector256<Int32>)(result)); ValidateResult(_dataTable.inArray0Ptr, _dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = AvxVnni.MultiplyWideningAndAdd( _clsVar0, _clsVar1, _clsVar2 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar0, _clsVar1, _clsVar2, _dataTable.outArrayPtr); } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var first = Unsafe.Read<Vector256<Int32>>(_dataTable.inArray0Ptr); var second = Unsafe.Read<Vector256<Int16>>(_dataTable.inArray1Ptr); var third = Unsafe.Read<Vector256<Int16>>(_dataTable.inArray2Ptr); var result = AvxVnni.MultiplyWideningAndAdd(first, second, third); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(first, second, third, _dataTable.outArrayPtr); } public void RunLclVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load)); var first= Avx.LoadVector256((Int32*)(_dataTable.inArray0Ptr)); var second = Avx.LoadVector256((Int16*)(_dataTable.inArray1Ptr)); var third = Avx.LoadVector256((Int16*)(_dataTable.inArray2Ptr)); var result = AvxVnni.MultiplyWideningAndAdd(first, second, third); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(first, second, third, _dataTable.outArrayPtr); } public void RunLclVarScenario_LoadAligned() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned)); var first = Avx.LoadAlignedVector256((Int32*)(_dataTable.inArray0Ptr)); var second = Avx.LoadAlignedVector256((Int16*)(_dataTable.inArray1Ptr)); var third = Avx.LoadAlignedVector256((Int16*)(_dataTable.inArray2Ptr)); var result = AvxVnni.MultiplyWideningAndAdd(first, second, third); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(first, second, third, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new SimpleTernaryOpTest__MultiplyWideningAndAddInt16(); var result = AvxVnni.MultiplyWideningAndAdd(test._fld0, test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld0, test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = AvxVnni.MultiplyWideningAndAdd(_fld0, _fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld0, _fld1, _fld2, _dataTable.outArrayPtr); } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = AvxVnni.MultiplyWideningAndAdd(test._fld0, test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld0, test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunStructFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario)); var test = TestStruct.Create(); test.RunStructFldScenario(this); } public void RunUnsupportedScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario)); bool succeeded = false; try { RunBasicScenario_UnsafeRead(); } catch (PlatformNotSupportedException) { succeeded = true; } if (!succeeded) { Succeeded = false; } } private void ValidateResult(Vector256<Int32> addend, Vector256<Int16> left, Vector256<Int16> right, void* result, [CallerMemberName] string method = "") { Int32[] inArray0 = new Int32[Op0ElementCount]; Int16[] inArray1 = new Int16[Op1ElementCount]; Int16[] inArray2 = new Int16[Op2ElementCount]; Int32[] outArray = new Int32[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<Int32, byte>(ref inArray0[0]), addend); Unsafe.WriteUnaligned(ref Unsafe.As<Int16, byte>(ref inArray1[0]), left); Unsafe.WriteUnaligned(ref Unsafe.As<Int16, byte>(ref inArray2[0]), right); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<Int32>>()); ValidateResult(inArray0, inArray1, inArray2, outArray, method); } private void ValidateResult(void* addend, void* left, void* right, void* result, [CallerMemberName] string method = "") { Int32[] inArray0 = new Int32[Op0ElementCount]; Int16[] inArray1 = new Int16[Op1ElementCount]; Int16[] inArray2 = new Int16[Op2ElementCount]; Int32[] outArray = new Int32[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref inArray0[0]), ref Unsafe.AsRef<byte>(addend), (uint)Unsafe.SizeOf<Vector256<Int32>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int16, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(left), (uint)Unsafe.SizeOf<Vector256<Int16>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int16, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(right), (uint)Unsafe.SizeOf<Vector256<Int16>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<Int32>>()); ValidateResult(inArray0, inArray1, inArray2, outArray, method); } private void ValidateResult(Int32[] addend, Int16[] left, Int16[] right, Int32[] result, [CallerMemberName] string method = "") { bool succeeded = true; Int32[] outArray = new Int32[RetElementCount]; for (var i = 0; i < RetElementCount; i++) { outArray[i] = Math.Clamp((addend[i] + (right[i * 2 + 1] * left[i * 2 + 1] + right[i * 2] * left[i * 2])), int.MinValue, int.MaxValue); } for (var i = 0; i < RetElementCount; i++) { if (result[i] != outArray[i]) { succeeded = false; break; } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(AvxVnni)}.{nameof(AvxVnni.MultiplyWideningAndAdd)}<Int32>(Vector256<Int32>, Vector256<Int32>): {method} failed:"); TestLibrary.TestFramework.LogInformation($" addend: ({string.Join(", ", addend)})"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); TestLibrary.TestFramework.LogInformation($" valid: ({string.Join(", ", outArray)})"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/tests/GC/Scenarios/GCSimulator/GCSimulator_389.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <GCStressIncompatible>true</GCStressIncompatible> <CLRTestExecutionArguments>-t 1 -tp 0 -dz 17 -sdz 8517 -dc 10000 -sdc 5000 -lt 5 -f -dp 0.8 -dw 0.4</CLRTestExecutionArguments> <IsGCSimulatorTest>true</IsGCSimulatorTest> <CLRTestProjectToRun>GCSimulator.csproj</CLRTestProjectToRun> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <ItemGroup> <Compile Include="GCSimulator.cs" /> <Compile Include="lifetimefx.cs" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <GCStressIncompatible>true</GCStressIncompatible> <CLRTestExecutionArguments>-t 1 -tp 0 -dz 17 -sdz 8517 -dc 10000 -sdc 5000 -lt 5 -f -dp 0.8 -dw 0.4</CLRTestExecutionArguments> <IsGCSimulatorTest>true</IsGCSimulatorTest> <CLRTestProjectToRun>GCSimulator.csproj</CLRTestProjectToRun> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <ItemGroup> <Compile Include="GCSimulator.cs" /> <Compile Include="lifetimefx.cs" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/tests/JIT/HardwareIntrinsics/Arm/AdvSimd/ShiftRightLogicalRoundedAdd.Vector64.SByte.1.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make * * changes, please update the corresponding template and run according to the * * directions listed in the file. * ******************************************************************************/ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; using System.Runtime.Intrinsics.Arm; namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { private static void ShiftRightLogicalRoundedAdd_Vector64_SByte_1() { var test = new ImmBinaryOpTest__ShiftRightLogicalRoundedAdd_Vector64_SByte_1(); if (test.IsSupported) { // Validates basic functionality works, using Unsafe.Read test.RunBasicScenario_UnsafeRead(); if (AdvSimd.IsSupported) { // Validates basic functionality works, using Load test.RunBasicScenario_Load(); } // Validates calling via reflection works, using Unsafe.Read test.RunReflectionScenario_UnsafeRead(); if (AdvSimd.IsSupported) { // Validates calling via reflection works, using Load test.RunReflectionScenario_Load(); } // Validates passing a static member works test.RunClsVarScenario(); if (AdvSimd.IsSupported) { // Validates passing a static member works, using pinning and Load test.RunClsVarScenario_Load(); } // Validates passing a local works, using Unsafe.Read test.RunLclVarScenario_UnsafeRead(); if (AdvSimd.IsSupported) { // Validates passing a local works, using Load test.RunLclVarScenario_Load(); } // Validates passing the field of a local class works test.RunClassLclFldScenario(); if (AdvSimd.IsSupported) { // Validates passing the field of a local class works, using pinning and Load test.RunClassLclFldScenario_Load(); } // Validates passing an instance member of a class works test.RunClassFldScenario(); if (AdvSimd.IsSupported) { // Validates passing an instance member of a class works, using pinning and Load test.RunClassFldScenario_Load(); } // Validates passing the field of a local struct works test.RunStructLclFldScenario(); if (AdvSimd.IsSupported) { // Validates passing the field of a local struct works, using pinning and Load test.RunStructLclFldScenario_Load(); } // Validates passing an instance member of a struct works test.RunStructFldScenario(); if (AdvSimd.IsSupported) { // Validates passing an instance member of a struct works, using pinning and Load test.RunStructFldScenario_Load(); } } else { // Validates we throw on unsupported hardware test.RunUnsupportedScenario(); } if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class ImmBinaryOpTest__ShiftRightLogicalRoundedAdd_Vector64_SByte_1 { private struct DataTable { private byte[] inArray1; private byte[] inArray2; private byte[] outArray; private GCHandle inHandle1; private GCHandle inHandle2; private GCHandle outHandle; private ulong alignment; public DataTable(SByte[] inArray1, SByte[] inArray2, SByte[] outArray, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<SByte>(); int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<SByte>(); int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<SByte>(); if ((alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2 || (alignment * 2) < sizeOfoutArray) { throw new ArgumentException("Invalid value of alignment"); } this.inArray1 = new byte[alignment * 2]; this.inArray2 = new byte[alignment * 2]; this.outArray = new byte[alignment * 2]; this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned); this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned); this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned); this.alignment = (ulong)alignment; Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<SByte, byte>(ref inArray1[0]), (uint)sizeOfinArray1); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<SByte, byte>(ref inArray2[0]), (uint)sizeOfinArray2); } public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment); public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment); public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment); public void Dispose() { inHandle1.Free(); inHandle2.Free(); outHandle.Free(); } private static unsafe void* Align(byte* buffer, ulong expectedAlignment) { return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1)); } } private struct TestStruct { public Vector64<SByte> _fld1; public Vector64<SByte> _fld2; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetSByte(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<SByte>, byte>(ref testStruct._fld1), ref Unsafe.As<SByte, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<SByte>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetSByte(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<SByte>, byte>(ref testStruct._fld2), ref Unsafe.As<SByte, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector64<SByte>>()); return testStruct; } public void RunStructFldScenario(ImmBinaryOpTest__ShiftRightLogicalRoundedAdd_Vector64_SByte_1 testClass) { var result = AdvSimd.ShiftRightLogicalRoundedAdd(_fld1, _fld2, 1); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } public void RunStructFldScenario_Load(ImmBinaryOpTest__ShiftRightLogicalRoundedAdd_Vector64_SByte_1 testClass) { fixed (Vector64<SByte>* pFld1 = &_fld1) fixed (Vector64<SByte>* pFld2 = &_fld2) { var result = AdvSimd.ShiftRightLogicalRoundedAdd( AdvSimd.LoadVector64((SByte*)(pFld1)), AdvSimd.LoadVector64((SByte*)(pFld2)), 1 ); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } } } private static readonly int LargestVectorSize = 8; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector64<SByte>>() / sizeof(SByte); private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector64<SByte>>() / sizeof(SByte); private static readonly int RetElementCount = Unsafe.SizeOf<Vector64<SByte>>() / sizeof(SByte); private static readonly byte Imm = 1; private static SByte[] _data1 = new SByte[Op1ElementCount]; private static SByte[] _data2 = new SByte[Op2ElementCount]; private static Vector64<SByte> _clsVar1; private static Vector64<SByte> _clsVar2; private Vector64<SByte> _fld1; private Vector64<SByte> _fld2; private DataTable _dataTable; static ImmBinaryOpTest__ShiftRightLogicalRoundedAdd_Vector64_SByte_1() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetSByte(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<SByte>, byte>(ref _clsVar1), ref Unsafe.As<SByte, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<SByte>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetSByte(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<SByte>, byte>(ref _clsVar2), ref Unsafe.As<SByte, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector64<SByte>>()); } public ImmBinaryOpTest__ShiftRightLogicalRoundedAdd_Vector64_SByte_1() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetSByte(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<SByte>, byte>(ref _fld1), ref Unsafe.As<SByte, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<SByte>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetSByte(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<SByte>, byte>(ref _fld2), ref Unsafe.As<SByte, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector64<SByte>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetSByte(); } for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetSByte(); } _dataTable = new DataTable(_data1, _data2, new SByte[RetElementCount], LargestVectorSize); } public bool IsSupported => AdvSimd.IsSupported; public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = AdvSimd.ShiftRightLogicalRoundedAdd( Unsafe.Read<Vector64<SByte>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector64<SByte>>(_dataTable.inArray2Ptr), 1 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); var result = AdvSimd.ShiftRightLogicalRoundedAdd( AdvSimd.LoadVector64((SByte*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector64((SByte*)(_dataTable.inArray2Ptr)), 1 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.ShiftRightLogicalRoundedAdd), new Type[] { typeof(Vector64<SByte>), typeof(Vector64<SByte>), typeof(byte) }) .Invoke(null, new object[] { Unsafe.Read<Vector64<SByte>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector64<SByte>>(_dataTable.inArray2Ptr), (byte)1 }); Unsafe.Write(_dataTable.outArrayPtr, (Vector64<SByte>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.ShiftRightLogicalRoundedAdd), new Type[] { typeof(Vector64<SByte>), typeof(Vector64<SByte>), typeof(byte) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((SByte*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector64((SByte*)(_dataTable.inArray2Ptr)), (byte)1 }); Unsafe.Write(_dataTable.outArrayPtr, (Vector64<SByte>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = AdvSimd.ShiftRightLogicalRoundedAdd( _clsVar1, _clsVar2, 1 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr); } public void RunClsVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load)); fixed (Vector64<SByte>* pClsVar1 = &_clsVar1) fixed (Vector64<SByte>* pClsVar2 = &_clsVar2) { var result = AdvSimd.ShiftRightLogicalRoundedAdd( AdvSimd.LoadVector64((SByte*)(pClsVar1)), AdvSimd.LoadVector64((SByte*)(pClsVar2)), 1 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr); } } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<Vector64<SByte>>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read<Vector64<SByte>>(_dataTable.inArray2Ptr); var result = AdvSimd.ShiftRightLogicalRoundedAdd(op1, op2, 1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunLclVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load)); var op1 = AdvSimd.LoadVector64((SByte*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector64((SByte*)(_dataTable.inArray2Ptr)); var result = AdvSimd.ShiftRightLogicalRoundedAdd(op1, op2, 1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new ImmBinaryOpTest__ShiftRightLogicalRoundedAdd_Vector64_SByte_1(); var result = AdvSimd.ShiftRightLogicalRoundedAdd(test._fld1, test._fld2, 1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); var test = new ImmBinaryOpTest__ShiftRightLogicalRoundedAdd_Vector64_SByte_1(); fixed (Vector64<SByte>* pFld1 = &test._fld1) fixed (Vector64<SByte>* pFld2 = &test._fld2) { var result = AdvSimd.ShiftRightLogicalRoundedAdd( AdvSimd.LoadVector64((SByte*)(pFld1)), AdvSimd.LoadVector64((SByte*)(pFld2)), 1 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = AdvSimd.ShiftRightLogicalRoundedAdd(_fld1, _fld2, 1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); } public void RunClassFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load)); fixed (Vector64<SByte>* pFld1 = &_fld1) fixed (Vector64<SByte>* pFld2 = &_fld2) { var result = AdvSimd.ShiftRightLogicalRoundedAdd( AdvSimd.LoadVector64((SByte*)(pFld1)), AdvSimd.LoadVector64((SByte*)(pFld2)), 1 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); } } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = AdvSimd.ShiftRightLogicalRoundedAdd(test._fld1, test._fld2, 1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunStructLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); var result = AdvSimd.ShiftRightLogicalRoundedAdd( AdvSimd.LoadVector64((SByte*)(&test._fld1)), AdvSimd.LoadVector64((SByte*)(&test._fld2)), 1 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunStructFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario)); var test = TestStruct.Create(); test.RunStructFldScenario(this); } public void RunStructFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario_Load)); var test = TestStruct.Create(); test.RunStructFldScenario_Load(this); } public void RunUnsupportedScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario)); bool succeeded = false; try { RunBasicScenario_UnsafeRead(); } catch (PlatformNotSupportedException) { succeeded = true; } if (!succeeded) { Succeeded = false; } } private void ValidateResult(Vector64<SByte> firstOp, Vector64<SByte> secondOp, void* result, [CallerMemberName] string method = "") { SByte[] inArray1 = new SByte[Op1ElementCount]; SByte[] inArray2 = new SByte[Op2ElementCount]; SByte[] outArray = new SByte[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<SByte, byte>(ref inArray1[0]), firstOp); Unsafe.WriteUnaligned(ref Unsafe.As<SByte, byte>(ref inArray2[0]), secondOp); Unsafe.CopyBlockUnaligned(ref Unsafe.As<SByte, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<SByte>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(void* firstOp, void* secondOp, void* result, [CallerMemberName] string method = "") { SByte[] inArray1 = new SByte[Op1ElementCount]; SByte[] inArray2 = new SByte[Op2ElementCount]; SByte[] outArray = new SByte[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<SByte, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(firstOp), (uint)Unsafe.SizeOf<Vector64<SByte>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<SByte, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(secondOp), (uint)Unsafe.SizeOf<Vector64<SByte>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<SByte, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<SByte>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(SByte[] firstOp, SByte[] secondOp, SByte[] result, [CallerMemberName] string method = "") { bool succeeded = true; for (var i = 0; i < RetElementCount; i++) { if (Helpers.ShiftRightLogicalRoundedAdd(firstOp[i], secondOp[i], Imm) != result[i]) { succeeded = false; break; } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.ShiftRightLogicalRoundedAdd)}<SByte>(Vector64<SByte>, Vector64<SByte>, 1): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($" secondOp: ({string.Join(", ", secondOp)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make * * changes, please update the corresponding template and run according to the * * directions listed in the file. * ******************************************************************************/ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; using System.Runtime.Intrinsics.Arm; namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { private static void ShiftRightLogicalRoundedAdd_Vector64_SByte_1() { var test = new ImmBinaryOpTest__ShiftRightLogicalRoundedAdd_Vector64_SByte_1(); if (test.IsSupported) { // Validates basic functionality works, using Unsafe.Read test.RunBasicScenario_UnsafeRead(); if (AdvSimd.IsSupported) { // Validates basic functionality works, using Load test.RunBasicScenario_Load(); } // Validates calling via reflection works, using Unsafe.Read test.RunReflectionScenario_UnsafeRead(); if (AdvSimd.IsSupported) { // Validates calling via reflection works, using Load test.RunReflectionScenario_Load(); } // Validates passing a static member works test.RunClsVarScenario(); if (AdvSimd.IsSupported) { // Validates passing a static member works, using pinning and Load test.RunClsVarScenario_Load(); } // Validates passing a local works, using Unsafe.Read test.RunLclVarScenario_UnsafeRead(); if (AdvSimd.IsSupported) { // Validates passing a local works, using Load test.RunLclVarScenario_Load(); } // Validates passing the field of a local class works test.RunClassLclFldScenario(); if (AdvSimd.IsSupported) { // Validates passing the field of a local class works, using pinning and Load test.RunClassLclFldScenario_Load(); } // Validates passing an instance member of a class works test.RunClassFldScenario(); if (AdvSimd.IsSupported) { // Validates passing an instance member of a class works, using pinning and Load test.RunClassFldScenario_Load(); } // Validates passing the field of a local struct works test.RunStructLclFldScenario(); if (AdvSimd.IsSupported) { // Validates passing the field of a local struct works, using pinning and Load test.RunStructLclFldScenario_Load(); } // Validates passing an instance member of a struct works test.RunStructFldScenario(); if (AdvSimd.IsSupported) { // Validates passing an instance member of a struct works, using pinning and Load test.RunStructFldScenario_Load(); } } else { // Validates we throw on unsupported hardware test.RunUnsupportedScenario(); } if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class ImmBinaryOpTest__ShiftRightLogicalRoundedAdd_Vector64_SByte_1 { private struct DataTable { private byte[] inArray1; private byte[] inArray2; private byte[] outArray; private GCHandle inHandle1; private GCHandle inHandle2; private GCHandle outHandle; private ulong alignment; public DataTable(SByte[] inArray1, SByte[] inArray2, SByte[] outArray, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<SByte>(); int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<SByte>(); int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<SByte>(); if ((alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2 || (alignment * 2) < sizeOfoutArray) { throw new ArgumentException("Invalid value of alignment"); } this.inArray1 = new byte[alignment * 2]; this.inArray2 = new byte[alignment * 2]; this.outArray = new byte[alignment * 2]; this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned); this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned); this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned); this.alignment = (ulong)alignment; Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<SByte, byte>(ref inArray1[0]), (uint)sizeOfinArray1); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<SByte, byte>(ref inArray2[0]), (uint)sizeOfinArray2); } public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment); public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment); public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment); public void Dispose() { inHandle1.Free(); inHandle2.Free(); outHandle.Free(); } private static unsafe void* Align(byte* buffer, ulong expectedAlignment) { return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1)); } } private struct TestStruct { public Vector64<SByte> _fld1; public Vector64<SByte> _fld2; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetSByte(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<SByte>, byte>(ref testStruct._fld1), ref Unsafe.As<SByte, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<SByte>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetSByte(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<SByte>, byte>(ref testStruct._fld2), ref Unsafe.As<SByte, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector64<SByte>>()); return testStruct; } public void RunStructFldScenario(ImmBinaryOpTest__ShiftRightLogicalRoundedAdd_Vector64_SByte_1 testClass) { var result = AdvSimd.ShiftRightLogicalRoundedAdd(_fld1, _fld2, 1); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } public void RunStructFldScenario_Load(ImmBinaryOpTest__ShiftRightLogicalRoundedAdd_Vector64_SByte_1 testClass) { fixed (Vector64<SByte>* pFld1 = &_fld1) fixed (Vector64<SByte>* pFld2 = &_fld2) { var result = AdvSimd.ShiftRightLogicalRoundedAdd( AdvSimd.LoadVector64((SByte*)(pFld1)), AdvSimd.LoadVector64((SByte*)(pFld2)), 1 ); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } } } private static readonly int LargestVectorSize = 8; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector64<SByte>>() / sizeof(SByte); private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector64<SByte>>() / sizeof(SByte); private static readonly int RetElementCount = Unsafe.SizeOf<Vector64<SByte>>() / sizeof(SByte); private static readonly byte Imm = 1; private static SByte[] _data1 = new SByte[Op1ElementCount]; private static SByte[] _data2 = new SByte[Op2ElementCount]; private static Vector64<SByte> _clsVar1; private static Vector64<SByte> _clsVar2; private Vector64<SByte> _fld1; private Vector64<SByte> _fld2; private DataTable _dataTable; static ImmBinaryOpTest__ShiftRightLogicalRoundedAdd_Vector64_SByte_1() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetSByte(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<SByte>, byte>(ref _clsVar1), ref Unsafe.As<SByte, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<SByte>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetSByte(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<SByte>, byte>(ref _clsVar2), ref Unsafe.As<SByte, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector64<SByte>>()); } public ImmBinaryOpTest__ShiftRightLogicalRoundedAdd_Vector64_SByte_1() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetSByte(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<SByte>, byte>(ref _fld1), ref Unsafe.As<SByte, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<SByte>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetSByte(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<SByte>, byte>(ref _fld2), ref Unsafe.As<SByte, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector64<SByte>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetSByte(); } for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetSByte(); } _dataTable = new DataTable(_data1, _data2, new SByte[RetElementCount], LargestVectorSize); } public bool IsSupported => AdvSimd.IsSupported; public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = AdvSimd.ShiftRightLogicalRoundedAdd( Unsafe.Read<Vector64<SByte>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector64<SByte>>(_dataTable.inArray2Ptr), 1 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); var result = AdvSimd.ShiftRightLogicalRoundedAdd( AdvSimd.LoadVector64((SByte*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector64((SByte*)(_dataTable.inArray2Ptr)), 1 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.ShiftRightLogicalRoundedAdd), new Type[] { typeof(Vector64<SByte>), typeof(Vector64<SByte>), typeof(byte) }) .Invoke(null, new object[] { Unsafe.Read<Vector64<SByte>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector64<SByte>>(_dataTable.inArray2Ptr), (byte)1 }); Unsafe.Write(_dataTable.outArrayPtr, (Vector64<SByte>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.ShiftRightLogicalRoundedAdd), new Type[] { typeof(Vector64<SByte>), typeof(Vector64<SByte>), typeof(byte) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((SByte*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector64((SByte*)(_dataTable.inArray2Ptr)), (byte)1 }); Unsafe.Write(_dataTable.outArrayPtr, (Vector64<SByte>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = AdvSimd.ShiftRightLogicalRoundedAdd( _clsVar1, _clsVar2, 1 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr); } public void RunClsVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load)); fixed (Vector64<SByte>* pClsVar1 = &_clsVar1) fixed (Vector64<SByte>* pClsVar2 = &_clsVar2) { var result = AdvSimd.ShiftRightLogicalRoundedAdd( AdvSimd.LoadVector64((SByte*)(pClsVar1)), AdvSimd.LoadVector64((SByte*)(pClsVar2)), 1 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr); } } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<Vector64<SByte>>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read<Vector64<SByte>>(_dataTable.inArray2Ptr); var result = AdvSimd.ShiftRightLogicalRoundedAdd(op1, op2, 1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunLclVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load)); var op1 = AdvSimd.LoadVector64((SByte*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector64((SByte*)(_dataTable.inArray2Ptr)); var result = AdvSimd.ShiftRightLogicalRoundedAdd(op1, op2, 1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new ImmBinaryOpTest__ShiftRightLogicalRoundedAdd_Vector64_SByte_1(); var result = AdvSimd.ShiftRightLogicalRoundedAdd(test._fld1, test._fld2, 1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); var test = new ImmBinaryOpTest__ShiftRightLogicalRoundedAdd_Vector64_SByte_1(); fixed (Vector64<SByte>* pFld1 = &test._fld1) fixed (Vector64<SByte>* pFld2 = &test._fld2) { var result = AdvSimd.ShiftRightLogicalRoundedAdd( AdvSimd.LoadVector64((SByte*)(pFld1)), AdvSimd.LoadVector64((SByte*)(pFld2)), 1 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = AdvSimd.ShiftRightLogicalRoundedAdd(_fld1, _fld2, 1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); } public void RunClassFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load)); fixed (Vector64<SByte>* pFld1 = &_fld1) fixed (Vector64<SByte>* pFld2 = &_fld2) { var result = AdvSimd.ShiftRightLogicalRoundedAdd( AdvSimd.LoadVector64((SByte*)(pFld1)), AdvSimd.LoadVector64((SByte*)(pFld2)), 1 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); } } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = AdvSimd.ShiftRightLogicalRoundedAdd(test._fld1, test._fld2, 1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunStructLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); var result = AdvSimd.ShiftRightLogicalRoundedAdd( AdvSimd.LoadVector64((SByte*)(&test._fld1)), AdvSimd.LoadVector64((SByte*)(&test._fld2)), 1 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunStructFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario)); var test = TestStruct.Create(); test.RunStructFldScenario(this); } public void RunStructFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario_Load)); var test = TestStruct.Create(); test.RunStructFldScenario_Load(this); } public void RunUnsupportedScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario)); bool succeeded = false; try { RunBasicScenario_UnsafeRead(); } catch (PlatformNotSupportedException) { succeeded = true; } if (!succeeded) { Succeeded = false; } } private void ValidateResult(Vector64<SByte> firstOp, Vector64<SByte> secondOp, void* result, [CallerMemberName] string method = "") { SByte[] inArray1 = new SByte[Op1ElementCount]; SByte[] inArray2 = new SByte[Op2ElementCount]; SByte[] outArray = new SByte[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<SByte, byte>(ref inArray1[0]), firstOp); Unsafe.WriteUnaligned(ref Unsafe.As<SByte, byte>(ref inArray2[0]), secondOp); Unsafe.CopyBlockUnaligned(ref Unsafe.As<SByte, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<SByte>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(void* firstOp, void* secondOp, void* result, [CallerMemberName] string method = "") { SByte[] inArray1 = new SByte[Op1ElementCount]; SByte[] inArray2 = new SByte[Op2ElementCount]; SByte[] outArray = new SByte[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<SByte, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(firstOp), (uint)Unsafe.SizeOf<Vector64<SByte>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<SByte, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(secondOp), (uint)Unsafe.SizeOf<Vector64<SByte>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<SByte, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<SByte>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(SByte[] firstOp, SByte[] secondOp, SByte[] result, [CallerMemberName] string method = "") { bool succeeded = true; for (var i = 0; i < RetElementCount; i++) { if (Helpers.ShiftRightLogicalRoundedAdd(firstOp[i], secondOp[i], Imm) != result[i]) { succeeded = false; break; } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.ShiftRightLogicalRoundedAdd)}<SByte>(Vector64<SByte>, Vector64<SByte>, 1): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($" secondOp: ({string.Join(", ", secondOp)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/UnknownWrapperTests.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Xunit; namespace System.Runtime.InteropServices.Tests { public class UnknownWrapperTests { [Theory] [InlineData(null)] [InlineData(1)] [InlineData("Value")] public void Ctor_Value(object value) { var wrapper = new UnknownWrapper(value); Assert.Equal(value, wrapper.WrappedObject); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Xunit; namespace System.Runtime.InteropServices.Tests { public class UnknownWrapperTests { [Theory] [InlineData(null)] [InlineData(1)] [InlineData("Value")] public void Ctor_Value(object value) { var wrapper = new UnknownWrapper(value); Assert.Equal(value, wrapper.WrappedObject); } } }
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/tests/JIT/SIMD/Ctors_ro.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> </PropertyGroup> <PropertyGroup> <DebugType>None</DebugType> <Optimize>True</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="Ctors.cs" /> <Compile Include="VectorUtil.cs" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> </PropertyGroup> <PropertyGroup> <DebugType>None</DebugType> <Optimize>True</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="Ctors.cs" /> <Compile Include="VectorUtil.cs" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/tests/JIT/Methodical/explicit/coverage/seq_short_1_r.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <CLRTestPriority>1</CLRTestPriority> <AllowUnsafeBlocks>True</AllowUnsafeBlocks> <DebugType>None</DebugType> </PropertyGroup> <ItemGroup> <Compile Include="seq_short_1.cs" /> <Compile Include="body_short.cs" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <CLRTestPriority>1</CLRTestPriority> <AllowUnsafeBlocks>True</AllowUnsafeBlocks> <DebugType>None</DebugType> </PropertyGroup> <ItemGroup> <Compile Include="seq_short_1.cs" /> <Compile Include="body_short.cs" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/libraries/System.DirectoryServices.Protocols/src/System/DirectoryServices/Protocols/common/BerConverter.Windows.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections; using System.Diagnostics; using System.Runtime.InteropServices; namespace System.DirectoryServices.Protocols { public static partial class BerConverter { private static int DecodeBitStringHelper(ArrayList resultList, SafeBerHandle berElement) { int error; // return a bitstring and its length IntPtr ptrResult = IntPtr.Zero; uint length = 0; error = BerPal.ScanNextBitString(berElement, "B", ref ptrResult, ref length); if (!BerPal.IsBerDecodeError(error)) { byte[] byteArray = null; if (ptrResult != IntPtr.Zero) { byteArray = new byte[length]; Marshal.Copy(ptrResult, byteArray, 0, (int)length); } resultList.Add(byteArray); } else { Debug.WriteLine("ber_scanf for format character 'B' failed"); } // no need to free memory as wldap32 returns the original pointer instead of a duplicating memory pointer that // needs to be freed return error; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections; using System.Diagnostics; using System.Runtime.InteropServices; namespace System.DirectoryServices.Protocols { public static partial class BerConverter { private static int DecodeBitStringHelper(ArrayList resultList, SafeBerHandle berElement) { int error; // return a bitstring and its length IntPtr ptrResult = IntPtr.Zero; uint length = 0; error = BerPal.ScanNextBitString(berElement, "B", ref ptrResult, ref length); if (!BerPal.IsBerDecodeError(error)) { byte[] byteArray = null; if (ptrResult != IntPtr.Zero) { byteArray = new byte[length]; Marshal.Copy(ptrResult, byteArray, 0, (int)length); } resultList.Add(byteArray); } else { Debug.WriteLine("ber_scanf for format character 'B' failed"); } // no need to free memory as wldap32 returns the original pointer instead of a duplicating memory pointer that // needs to be freed return error; } } }
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/tests/JIT/opt/Devirtualization/EqualityComparer_GitHub_10050.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; class EqualityComparer_GitHub_10050 { // Would like to see just one call to Default per call to Hoist public static int Hoist() { int result = 0; string s0 = "s"; string s1 = "s"; for (int i = 0; i < 100; i++) { if (EqualityComparer<string>.Default.Equals(s0, s1)) { result++; } } return result; } // Would like to see call to Default optimized away // and Equals devirtualized and inlined public static int Sink(int v0, int v1) { int result = 0; var c = EqualityComparer<int>.Default; for (int i = 0; i < 100; i++) { if (c.Equals(v0, v1)) { result++; } } return result; } // Would like to see just one call to Default per call to Common public static int Common() { int result = 0; string s0 = "t"; string s1 = "t"; for (int i = 0; i < 50; i++) { if (EqualityComparer<string>.Default.Equals(s0, s1)) { result++; } } for (int i = 0; i < 50; i++) { if (EqualityComparer<string>.Default.Equals(s0, s1)) { result++; } } return result; } // Optimization pattern should vary here. // // If T is a ref type, Default will be hoisted and Equals will not devirtualize. // If T is a value type, Default will be removed and Equals will devirtualize. public static int GeneralHoist<T>(T v0, T v1) { int result = 0; for (int i = 0; i < 100; i++) { if (EqualityComparer<T>.Default.Equals(v0, v1)) { result++; } } return result; } // Optimization pattern should vary here. // // If T is a ref type we will compile as is. // If T is a value type, Default will be removed and Equals will devirtualize. public static int GeneralSink<T>(T v0, T v1) { int result = 0; var c = EqualityComparer<T>.Default; for (int i = 0; i < 100; i++) { if (c.Equals(v0, v1)) { result++; } } return result; } public static int Main() { int h = Hoist(); int s = Sink(33, 33); int c = Common(); int ghr = GeneralHoist<string>("u", "u"); int ghv = GeneralHoist<int>(44, 44); int gsr = GeneralSink<string>("v", "v"); int gsv = GeneralSink<int>(55, 55); return h + s + c + ghr + ghv + gsr + gsv - 600; } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; class EqualityComparer_GitHub_10050 { // Would like to see just one call to Default per call to Hoist public static int Hoist() { int result = 0; string s0 = "s"; string s1 = "s"; for (int i = 0; i < 100; i++) { if (EqualityComparer<string>.Default.Equals(s0, s1)) { result++; } } return result; } // Would like to see call to Default optimized away // and Equals devirtualized and inlined public static int Sink(int v0, int v1) { int result = 0; var c = EqualityComparer<int>.Default; for (int i = 0; i < 100; i++) { if (c.Equals(v0, v1)) { result++; } } return result; } // Would like to see just one call to Default per call to Common public static int Common() { int result = 0; string s0 = "t"; string s1 = "t"; for (int i = 0; i < 50; i++) { if (EqualityComparer<string>.Default.Equals(s0, s1)) { result++; } } for (int i = 0; i < 50; i++) { if (EqualityComparer<string>.Default.Equals(s0, s1)) { result++; } } return result; } // Optimization pattern should vary here. // // If T is a ref type, Default will be hoisted and Equals will not devirtualize. // If T is a value type, Default will be removed and Equals will devirtualize. public static int GeneralHoist<T>(T v0, T v1) { int result = 0; for (int i = 0; i < 100; i++) { if (EqualityComparer<T>.Default.Equals(v0, v1)) { result++; } } return result; } // Optimization pattern should vary here. // // If T is a ref type we will compile as is. // If T is a value type, Default will be removed and Equals will devirtualize. public static int GeneralSink<T>(T v0, T v1) { int result = 0; var c = EqualityComparer<T>.Default; for (int i = 0; i < 100; i++) { if (c.Equals(v0, v1)) { result++; } } return result; } public static int Main() { int h = Hoist(); int s = Sink(33, 33); int c = Common(); int ghr = GeneralHoist<string>("u", "u"); int ghv = GeneralHoist<int>(44, 44); int gsr = GeneralSink<string>("v", "v"); int gsv = GeneralSink<int>(55, 55); return h + s + c + ghr + ghv + gsr + gsv - 600; } }
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/tests/JIT/CodeGenBringUpTests/JTrue1_ro.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>PdbOnly</DebugType> <Optimize>True</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="JTrue1.cs" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>PdbOnly</DebugType> <Optimize>True</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="JTrue1.cs" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/tests/JIT/Regression/JitBlue/GitHub_19361/GitHub_19361.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // The test exposed a bug in CORINFO_HELP_ASSIGN_BYREF GC kill set on Unix x64. // that caused segfault. using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; using System.Threading.Tasks; namespace Repro { [Serializable] public struct CompositeSource { public double? Modifier { get; set; } public int InstrumentId { get; set; } public string Section { get; set; } public bool IsCash { get; set; } public bool IsHedge { get; set; } } public class Test { private static readonly DateTime BaseDate = new DateTime(2012, 1, 1); private readonly Random rng; public int Count { get; } public Test(Random rng, List<CompositeSource> sources) { this.rng = rng; var holdingsAttribution = this.GetNumbers(sources); var hedgeAttribution = this.GetNumbers(sources).Where(x => x.Date >= holdingsAttribution.Min(y => y.Date)).ToList(); this.Count = hedgeAttribution.Count; } private List<(DateTime Date, CompositeSource Key, decimal Attribution)> GetNumbers(List<CompositeSource> sources) { var items = new List<(DateTime Date, CompositeSource Key, decimal Attribution)>(); foreach (var _ in Enumerable.Range(0, rng.Next(50, 100))) { items.Add(( BaseDate.AddDays(rng.Next(1, 100)), sources[rng.Next(0, sources.Count - 1)], Convert.ToDecimal(rng.NextDouble() * rng.Next(1, 10)))); } return items; } } class Program { public const int DefaultSeed = 20010415; public static int Seed = Environment.GetEnvironmentVariable("CORECLR_SEED") switch { string seedStr when seedStr.Equals("random", StringComparison.OrdinalIgnoreCase) => new Random().Next(), string seedStr when int.TryParse(seedStr, out int envSeed) => envSeed, _ => DefaultSeed }; static readonly Random Rng = new Random(Seed); public static List<CompositeSource> GetCompositeSources() { var list = new List<CompositeSource>(); foreach (var _ in Enumerable.Range(0, 50)) { lock (Rng) { list.Add(new CompositeSource { InstrumentId = 1, IsCash = true, IsHedge = true, Modifier = 0.5, Section = "hello" }); } } return list; } static int Main() { Console.WriteLine("Starting stress loop"); var compositeSources = GetCompositeSources(); var res = Parallel.For(0, 5, i => { int seed; lock (Rng) { seed = Rng.Next(); } Console.WriteLine(new Test(new Random(seed), compositeSources).Count); }); Console.WriteLine("Result: {0}", res.IsCompleted ? "Completed Normally" : $"Completed to {res.LowestBreakIteration}"); return res.IsCompleted ? 100 : -1; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // The test exposed a bug in CORINFO_HELP_ASSIGN_BYREF GC kill set on Unix x64. // that caused segfault. using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; using System.Threading.Tasks; namespace Repro { [Serializable] public struct CompositeSource { public double? Modifier { get; set; } public int InstrumentId { get; set; } public string Section { get; set; } public bool IsCash { get; set; } public bool IsHedge { get; set; } } public class Test { private static readonly DateTime BaseDate = new DateTime(2012, 1, 1); private readonly Random rng; public int Count { get; } public Test(Random rng, List<CompositeSource> sources) { this.rng = rng; var holdingsAttribution = this.GetNumbers(sources); var hedgeAttribution = this.GetNumbers(sources).Where(x => x.Date >= holdingsAttribution.Min(y => y.Date)).ToList(); this.Count = hedgeAttribution.Count; } private List<(DateTime Date, CompositeSource Key, decimal Attribution)> GetNumbers(List<CompositeSource> sources) { var items = new List<(DateTime Date, CompositeSource Key, decimal Attribution)>(); foreach (var _ in Enumerable.Range(0, rng.Next(50, 100))) { items.Add(( BaseDate.AddDays(rng.Next(1, 100)), sources[rng.Next(0, sources.Count - 1)], Convert.ToDecimal(rng.NextDouble() * rng.Next(1, 10)))); } return items; } } class Program { public const int DefaultSeed = 20010415; public static int Seed = Environment.GetEnvironmentVariable("CORECLR_SEED") switch { string seedStr when seedStr.Equals("random", StringComparison.OrdinalIgnoreCase) => new Random().Next(), string seedStr when int.TryParse(seedStr, out int envSeed) => envSeed, _ => DefaultSeed }; static readonly Random Rng = new Random(Seed); public static List<CompositeSource> GetCompositeSources() { var list = new List<CompositeSource>(); foreach (var _ in Enumerable.Range(0, 50)) { lock (Rng) { list.Add(new CompositeSource { InstrumentId = 1, IsCash = true, IsHedge = true, Modifier = 0.5, Section = "hello" }); } } return list; } static int Main() { Console.WriteLine("Starting stress loop"); var compositeSources = GetCompositeSources(); var res = Parallel.For(0, 5, i => { int seed; lock (Rng) { seed = Rng.Next(); } Console.WriteLine(new Test(new Random(seed), compositeSources).Count); }); Console.WriteLine("Result: {0}", res.IsCompleted ? "Completed Normally" : $"Completed to {res.LowestBreakIteration}"); return res.IsCompleted ? 100 : -1; } } }
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/PrefixOrigin.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Net.NetworkInformation { /// <summary> /// Specifies how an IP address network prefix was located. /// </summary> public enum PrefixOrigin { Other = 0, Manual, WellKnown, Dhcp, RouterAdvertisement, } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Net.NetworkInformation { /// <summary> /// Specifies how an IP address network prefix was located. /// </summary> public enum PrefixOrigin { Other = 0, Manual, WellKnown, Dhcp, RouterAdvertisement, } }
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/tests/JIT/Regression/CLR-x86-JIT/V1-M13-RTM/b99969/b99969.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <!-- Issue https://github.com/dotnet/runtime/issues/50381 --> <GCStressIncompatible Condition="'$(TargetArchitecture)' == 'arm64' and '$(TargetOS)' == 'OSX'">true</GCStressIncompatible> </PropertyGroup> <PropertyGroup> <DebugType>PdbOnly</DebugType> </PropertyGroup> <ItemGroup> <Compile Include="$(MSBuildProjectName).cs" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <!-- Issue https://github.com/dotnet/runtime/issues/50381 --> <GCStressIncompatible Condition="'$(TargetArchitecture)' == 'arm64' and '$(TargetOS)' == 'OSX'">true</GCStressIncompatible> </PropertyGroup> <PropertyGroup> <DebugType>PdbOnly</DebugType> </PropertyGroup> <ItemGroup> <Compile Include="$(MSBuildProjectName).cs" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/coreclr/tools/aot/ILCompiler.Diagnostics/ILCompilerComWrappers.cs
using System; using System.Collections; using System.Diagnostics; using System.Runtime.InteropServices; namespace Microsoft.DiaSymReader { internal unsafe sealed class ILCompilerComWrappers : ComWrappers { protected override unsafe ComInterfaceEntry* ComputeVtables(object obj, CreateComInterfaceFlags flags, out int count) { // passing the managed object to COM is not currently supported throw new NotImplementedException(); } protected override object CreateObject(IntPtr externalComObject, CreateObjectFlags flags) { // Assert use of the UniqueInstance flag since the returned Native Object Wrapper always // supports IDisposable and its Dispose will always release and suppress finalization. // If the wrapper doesn't always support IDisposable the assert can be relaxed. Debug.Assert(flags.HasFlag(CreateObjectFlags.UniqueInstance)); // Throw an exception if the type is not supported by the implementation. // Null can be returned as well, but an ArgumentNullException will be thrown for // the consumer of this ComWrappers instance. return SymNgenWriterWrapper.CreateIfSupported(externalComObject) ?? throw new NotSupportedException(); } protected override void ReleaseObjects(IEnumerable objects) => throw new NotImplementedException(); } }
using System; using System.Collections; using System.Diagnostics; using System.Runtime.InteropServices; namespace Microsoft.DiaSymReader { internal unsafe sealed class ILCompilerComWrappers : ComWrappers { protected override unsafe ComInterfaceEntry* ComputeVtables(object obj, CreateComInterfaceFlags flags, out int count) { // passing the managed object to COM is not currently supported throw new NotImplementedException(); } protected override object CreateObject(IntPtr externalComObject, CreateObjectFlags flags) { // Assert use of the UniqueInstance flag since the returned Native Object Wrapper always // supports IDisposable and its Dispose will always release and suppress finalization. // If the wrapper doesn't always support IDisposable the assert can be relaxed. Debug.Assert(flags.HasFlag(CreateObjectFlags.UniqueInstance)); // Throw an exception if the type is not supported by the implementation. // Null can be returned as well, but an ArgumentNullException will be thrown for // the consumer of this ComWrappers instance. return SymNgenWriterWrapper.CreateIfSupported(externalComObject) ?? throw new NotSupportedException(); } protected override void ReleaseObjects(IEnumerable objects) => throw new NotImplementedException(); } }
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/Marshal/GetTypedObjectForIUnknownTests.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Reflection; using System.Reflection.Emit; using System.Runtime.InteropServices.Tests.Common; using Xunit; namespace System.Runtime.InteropServices.Tests { public partial class GetTypedObjectForIUnknownTests { public static IEnumerable<object> GetTypedObjectForIUnknown_RoundtrippableType_TestData() { yield return new object(); yield return 10; yield return "string"; yield return new NonGenericClass(); yield return new NonGenericStruct(); yield return Int32Enum.Value1; MethodInfo method = typeof(GetTypedObjectForIUnknownTests).GetMethod(nameof(NonGenericMethod), BindingFlags.NonPublic | BindingFlags.Static); Delegate d = method.CreateDelegate(typeof(NonGenericDelegate)); yield return d; } public static IEnumerable<object[]> GetTypedObjectForIUnknown_TestData() { foreach (object o in GetTypedObjectForIUnknown_RoundtrippableType_TestData()) { yield return new object[] { o, o.GetType() }; yield return new object[] { o, typeof(GenericClass<>).GetTypeInfo().GenericTypeParameters[0] }; yield return new object[] { o, typeof(int).MakeByRefType() }; Type baseType = o.GetType().BaseType; while (baseType != null) { yield return new object[] { o, baseType }; baseType = baseType.BaseType; } } yield return new object[] { new ClassWithInterface(), typeof(INonGenericInterface) }; yield return new object[] { new StructWithInterface(), typeof(INonGenericInterface) }; yield return new object[] { new GenericClass<string>(), typeof(object) }; yield return new object[] { new Dictionary<string, int>(), typeof(object) }; yield return new object[] { new GenericStruct<string>(), typeof(object) }; yield return new object[] { new GenericStruct<string>(), typeof(ValueType) }; yield return new object[] { new int[] { 10 }, typeof(object) }; yield return new object[] { new int[] { 10 }, typeof(Array) }; yield return new object[] { new int[][] { new int[] { 10 } }, typeof(object) }; yield return new object[] { new int[][] { new int[] { 10 } }, typeof(Array) }; yield return new object[] { new int[,] { { 10 } }, typeof(object) }; yield return new object[] { new int[,] { { 10 } }, typeof(Array) }; yield return new object[] { new KeyValuePair<string, int>("key", 10), typeof(object) }; yield return new object[] { new KeyValuePair<string, int>("key", 10), typeof(ValueType) }; } [Theory] [MemberData(nameof(GetTypedObjectForIUnknown_TestData))] [PlatformSpecific(TestPlatforms.Windows)] public void GetTypedObjectForIUnknown_ValidPointer_ReturnsExpected(object o, Type type) { IntPtr ptr = Marshal.GetIUnknownForObject(o); try { Assert.Equal(o, Marshal.GetTypedObjectForIUnknown(ptr, type)); } finally { Marshal.Release(ptr); } } [Fact] [PlatformSpecific(TestPlatforms.AnyUnix)] public void GetTypedObjectForIUnknown_Unix_ThrowsPlatformNotSupportedException() { Assert.Throws<PlatformNotSupportedException>(() => Marshal.GetTypedObjectForIUnknown(IntPtr.Zero, typeof(int))); } [Fact] [PlatformSpecific(TestPlatforms.Windows)] public void GetTypedObjectForIUnknown_ZeroUnknown_ThrowsArgumentNullException() { AssertExtensions.Throws<ArgumentNullException>("pUnk", () => Marshal.GetTypedObjectForIUnknown(IntPtr.Zero, typeof(int))); } [Fact] [PlatformSpecific(TestPlatforms.Windows)] public void GetTypedObjectForIUnknown_NullType_ThrowsArgumentNullException() { IntPtr iUnknown = Marshal.GetIUnknownForObject(new object()); try { AssertExtensions.Throws<ArgumentNullException>("t", () => Marshal.GetTypedObjectForIUnknown(iUnknown, null)); } finally { Marshal.Release(iUnknown); } } public static IEnumerable<object[]> GetTypedObjectForIUnknown_Invalid_TestData() { yield return new object[] { typeof(GenericClass<string>) }; yield return new object[] { typeof(GenericStruct<string>) }; yield return new object[] { typeof(IGenericInterface<string>) }; yield return new object[] { typeof(GenericClass<>) }; AssemblyBuilder assemblyBuilder = AssemblyBuilder.DefineDynamicAssembly(new AssemblyName("Assembly"), AssemblyBuilderAccess.Run); ModuleBuilder moduleBuilder = assemblyBuilder.DefineDynamicModule("Module"); TypeBuilder typeBuilder = moduleBuilder.DefineType("Type"); yield return new object[] { typeBuilder }; } [Theory] [MemberData(nameof(GetTypedObjectForIUnknown_Invalid_TestData))] [PlatformSpecific(TestPlatforms.Windows)] public void GetTypedObjectForIUnknown_InvalidType_ThrowsArgumentException(Type type) { IntPtr ptr = Marshal.GetIUnknownForObject(new object()); try { AssertExtensions.Throws<ArgumentException>("t", () => Marshal.GetTypedObjectForIUnknown(ptr, type)); } finally { Marshal.Release(ptr); } } public static IEnumerable<object[]> GetTypedObjectForIUnknownType_UncastableObject_TestData() { yield return new object[] { new object(), typeof(AbstractClass) }; yield return new object[] { new object(), typeof(NonGenericClass) }; yield return new object[] { new object(), typeof(NonGenericStruct) }; yield return new object[] { new object(), typeof(NonGenericStruct) }; yield return new object[] { new object(), typeof(INonGenericInterface) }; yield return new object[] { new NonGenericClass(), typeof(IFormattable) }; yield return new object[] { new ClassWithInterface(), typeof(IFormattable) }; yield return new object[] { new object(), typeof(int).MakePointerType() }; AssemblyBuilder assemblyBuilder = AssemblyBuilder.DefineDynamicAssembly(new AssemblyName("Assembly"), AssemblyBuilderAccess.RunAndCollect); ModuleBuilder moduleBuilder = assemblyBuilder.DefineDynamicModule("Module"); TypeBuilder typeBuilder = moduleBuilder.DefineType("Type"); Type collectibleType = typeBuilder.CreateType(); yield return new object[] { new object(), collectibleType }; } [Theory] [MemberData(nameof(GetTypedObjectForIUnknownType_UncastableObject_TestData))] [PlatformSpecific(TestPlatforms.Windows)] public void GetTypedObjectForIUnknown_UncastableObject_ThrowsInvalidCastException(object o, Type type) { IntPtr ptr = Marshal.GetIUnknownForObject(o); try { Assert.Throws<InvalidCastException>(() => Marshal.GetTypedObjectForIUnknown(ptr, type)); } finally { Marshal.Release(ptr); } } public static IEnumerable<object[]> GetTypedObjectForIUnknown_ArrayObjects_TestData() { yield return new object[] { new int[] { 10 } }; yield return new object[] { new int[][] { new int[] { 10 } } }; yield return new object[] { new int[,] { { 10 } } }; } [Theory] [MemberData(nameof(GetTypedObjectForIUnknown_ArrayObjects_TestData))] [PlatformSpecific(TestPlatforms.Windows)] public void GetTypedObjectForIUnknown_ArrayType_ThrowsBadImageFormatException(object o) { IntPtr ptr = Marshal.GetIUnknownForObject(o); try { Assert.Throws<BadImageFormatException>(() => Marshal.GetTypedObjectForIUnknown(ptr, o.GetType())); } finally { Marshal.Release(ptr); } } public class ClassWithInterface : INonGenericInterface { } public struct StructWithInterface : INonGenericInterface { } private static void NonGenericMethod(int i) { } public delegate void NonGenericDelegate(int i); public enum Int32Enum : int { Value1, Value2 } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Reflection; using System.Reflection.Emit; using System.Runtime.InteropServices.Tests.Common; using Xunit; namespace System.Runtime.InteropServices.Tests { public partial class GetTypedObjectForIUnknownTests { public static IEnumerable<object> GetTypedObjectForIUnknown_RoundtrippableType_TestData() { yield return new object(); yield return 10; yield return "string"; yield return new NonGenericClass(); yield return new NonGenericStruct(); yield return Int32Enum.Value1; MethodInfo method = typeof(GetTypedObjectForIUnknownTests).GetMethod(nameof(NonGenericMethod), BindingFlags.NonPublic | BindingFlags.Static); Delegate d = method.CreateDelegate(typeof(NonGenericDelegate)); yield return d; } public static IEnumerable<object[]> GetTypedObjectForIUnknown_TestData() { foreach (object o in GetTypedObjectForIUnknown_RoundtrippableType_TestData()) { yield return new object[] { o, o.GetType() }; yield return new object[] { o, typeof(GenericClass<>).GetTypeInfo().GenericTypeParameters[0] }; yield return new object[] { o, typeof(int).MakeByRefType() }; Type baseType = o.GetType().BaseType; while (baseType != null) { yield return new object[] { o, baseType }; baseType = baseType.BaseType; } } yield return new object[] { new ClassWithInterface(), typeof(INonGenericInterface) }; yield return new object[] { new StructWithInterface(), typeof(INonGenericInterface) }; yield return new object[] { new GenericClass<string>(), typeof(object) }; yield return new object[] { new Dictionary<string, int>(), typeof(object) }; yield return new object[] { new GenericStruct<string>(), typeof(object) }; yield return new object[] { new GenericStruct<string>(), typeof(ValueType) }; yield return new object[] { new int[] { 10 }, typeof(object) }; yield return new object[] { new int[] { 10 }, typeof(Array) }; yield return new object[] { new int[][] { new int[] { 10 } }, typeof(object) }; yield return new object[] { new int[][] { new int[] { 10 } }, typeof(Array) }; yield return new object[] { new int[,] { { 10 } }, typeof(object) }; yield return new object[] { new int[,] { { 10 } }, typeof(Array) }; yield return new object[] { new KeyValuePair<string, int>("key", 10), typeof(object) }; yield return new object[] { new KeyValuePair<string, int>("key", 10), typeof(ValueType) }; } [Theory] [MemberData(nameof(GetTypedObjectForIUnknown_TestData))] [PlatformSpecific(TestPlatforms.Windows)] public void GetTypedObjectForIUnknown_ValidPointer_ReturnsExpected(object o, Type type) { IntPtr ptr = Marshal.GetIUnknownForObject(o); try { Assert.Equal(o, Marshal.GetTypedObjectForIUnknown(ptr, type)); } finally { Marshal.Release(ptr); } } [Fact] [PlatformSpecific(TestPlatforms.AnyUnix)] public void GetTypedObjectForIUnknown_Unix_ThrowsPlatformNotSupportedException() { Assert.Throws<PlatformNotSupportedException>(() => Marshal.GetTypedObjectForIUnknown(IntPtr.Zero, typeof(int))); } [Fact] [PlatformSpecific(TestPlatforms.Windows)] public void GetTypedObjectForIUnknown_ZeroUnknown_ThrowsArgumentNullException() { AssertExtensions.Throws<ArgumentNullException>("pUnk", () => Marshal.GetTypedObjectForIUnknown(IntPtr.Zero, typeof(int))); } [Fact] [PlatformSpecific(TestPlatforms.Windows)] public void GetTypedObjectForIUnknown_NullType_ThrowsArgumentNullException() { IntPtr iUnknown = Marshal.GetIUnknownForObject(new object()); try { AssertExtensions.Throws<ArgumentNullException>("t", () => Marshal.GetTypedObjectForIUnknown(iUnknown, null)); } finally { Marshal.Release(iUnknown); } } public static IEnumerable<object[]> GetTypedObjectForIUnknown_Invalid_TestData() { yield return new object[] { typeof(GenericClass<string>) }; yield return new object[] { typeof(GenericStruct<string>) }; yield return new object[] { typeof(IGenericInterface<string>) }; yield return new object[] { typeof(GenericClass<>) }; AssemblyBuilder assemblyBuilder = AssemblyBuilder.DefineDynamicAssembly(new AssemblyName("Assembly"), AssemblyBuilderAccess.Run); ModuleBuilder moduleBuilder = assemblyBuilder.DefineDynamicModule("Module"); TypeBuilder typeBuilder = moduleBuilder.DefineType("Type"); yield return new object[] { typeBuilder }; } [Theory] [MemberData(nameof(GetTypedObjectForIUnknown_Invalid_TestData))] [PlatformSpecific(TestPlatforms.Windows)] public void GetTypedObjectForIUnknown_InvalidType_ThrowsArgumentException(Type type) { IntPtr ptr = Marshal.GetIUnknownForObject(new object()); try { AssertExtensions.Throws<ArgumentException>("t", () => Marshal.GetTypedObjectForIUnknown(ptr, type)); } finally { Marshal.Release(ptr); } } public static IEnumerable<object[]> GetTypedObjectForIUnknownType_UncastableObject_TestData() { yield return new object[] { new object(), typeof(AbstractClass) }; yield return new object[] { new object(), typeof(NonGenericClass) }; yield return new object[] { new object(), typeof(NonGenericStruct) }; yield return new object[] { new object(), typeof(NonGenericStruct) }; yield return new object[] { new object(), typeof(INonGenericInterface) }; yield return new object[] { new NonGenericClass(), typeof(IFormattable) }; yield return new object[] { new ClassWithInterface(), typeof(IFormattable) }; yield return new object[] { new object(), typeof(int).MakePointerType() }; AssemblyBuilder assemblyBuilder = AssemblyBuilder.DefineDynamicAssembly(new AssemblyName("Assembly"), AssemblyBuilderAccess.RunAndCollect); ModuleBuilder moduleBuilder = assemblyBuilder.DefineDynamicModule("Module"); TypeBuilder typeBuilder = moduleBuilder.DefineType("Type"); Type collectibleType = typeBuilder.CreateType(); yield return new object[] { new object(), collectibleType }; } [Theory] [MemberData(nameof(GetTypedObjectForIUnknownType_UncastableObject_TestData))] [PlatformSpecific(TestPlatforms.Windows)] public void GetTypedObjectForIUnknown_UncastableObject_ThrowsInvalidCastException(object o, Type type) { IntPtr ptr = Marshal.GetIUnknownForObject(o); try { Assert.Throws<InvalidCastException>(() => Marshal.GetTypedObjectForIUnknown(ptr, type)); } finally { Marshal.Release(ptr); } } public static IEnumerable<object[]> GetTypedObjectForIUnknown_ArrayObjects_TestData() { yield return new object[] { new int[] { 10 } }; yield return new object[] { new int[][] { new int[] { 10 } } }; yield return new object[] { new int[,] { { 10 } } }; } [Theory] [MemberData(nameof(GetTypedObjectForIUnknown_ArrayObjects_TestData))] [PlatformSpecific(TestPlatforms.Windows)] public void GetTypedObjectForIUnknown_ArrayType_ThrowsBadImageFormatException(object o) { IntPtr ptr = Marshal.GetIUnknownForObject(o); try { Assert.Throws<BadImageFormatException>(() => Marshal.GetTypedObjectForIUnknown(ptr, o.GetType())); } finally { Marshal.Release(ptr); } } public class ClassWithInterface : INonGenericInterface { } public struct StructWithInterface : INonGenericInterface { } private static void NonGenericMethod(int i) { } public delegate void NonGenericDelegate(int i); public enum Int32Enum : int { Value1, Value2 } } }
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/tests/JIT/Directed/StructABI/StructWithOverlappingFields.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>PdbOnly</DebugType> <Optimize>True</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="StructWithOverlappingFields.cs" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>PdbOnly</DebugType> <Optimize>True</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="StructWithOverlappingFields.cs" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/coreclr/tools/aot/ILCompiler.DependencyAnalysisFramework/NoLogStrategy.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ILCompiler.DependencyAnalysisFramework { /// <summary> /// Very memory efficient, and potentially faster mark strategy that eschews keeping track of what caused what to exist /// </summary> /// <typeparam name="DependencyContextType"></typeparam> public struct NoLogStrategy<DependencyContextType> : IDependencyAnalysisMarkStrategy<DependencyContextType> { private static object s_singleton = new object(); bool IDependencyAnalysisMarkStrategy<DependencyContextType>.MarkNode( DependencyNodeCore<DependencyContextType> node, DependencyNodeCore<DependencyContextType> reasonNode, DependencyNodeCore<DependencyContextType> reasonNode2, string reason) { if (node.Marked) return false; node.SetMark(s_singleton); return true; } void IDependencyAnalysisMarkStrategy<DependencyContextType>.VisitLogEdges(IEnumerable<DependencyNodeCore<DependencyContextType>> nodeList, IDependencyAnalyzerLogEdgeVisitor<DependencyContextType> logEdgeVisitor) { // This marker does not permit logging. return; } void IDependencyAnalysisMarkStrategy<DependencyContextType>.VisitLogNodes(IEnumerable<DependencyNodeCore<DependencyContextType>> nodeList, IDependencyAnalyzerLogNodeVisitor<DependencyContextType> logNodeVisitor) { // This marker does not permit logging. return; } void IDependencyAnalysisMarkStrategy<DependencyContextType>.AttachContext(DependencyContextType context) { // This logger does not need to use the context } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ILCompiler.DependencyAnalysisFramework { /// <summary> /// Very memory efficient, and potentially faster mark strategy that eschews keeping track of what caused what to exist /// </summary> /// <typeparam name="DependencyContextType"></typeparam> public struct NoLogStrategy<DependencyContextType> : IDependencyAnalysisMarkStrategy<DependencyContextType> { private static object s_singleton = new object(); bool IDependencyAnalysisMarkStrategy<DependencyContextType>.MarkNode( DependencyNodeCore<DependencyContextType> node, DependencyNodeCore<DependencyContextType> reasonNode, DependencyNodeCore<DependencyContextType> reasonNode2, string reason) { if (node.Marked) return false; node.SetMark(s_singleton); return true; } void IDependencyAnalysisMarkStrategy<DependencyContextType>.VisitLogEdges(IEnumerable<DependencyNodeCore<DependencyContextType>> nodeList, IDependencyAnalyzerLogEdgeVisitor<DependencyContextType> logEdgeVisitor) { // This marker does not permit logging. return; } void IDependencyAnalysisMarkStrategy<DependencyContextType>.VisitLogNodes(IEnumerable<DependencyNodeCore<DependencyContextType>> nodeList, IDependencyAnalyzerLogNodeVisitor<DependencyContextType> logNodeVisitor) { // This marker does not permit logging. return; } void IDependencyAnalysisMarkStrategy<DependencyContextType>.AttachContext(DependencyContextType context) { // This logger does not need to use the context } } }
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/coreclr/pal/tests/palsuite/c_runtime/fprintf/test4/test4.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*============================================================================ ** ** Source: test4.c (fprintf) ** ** Purpose: Tests the pointer specifier (%p). ** This test is modeled after the fprintf series. ** ** **==========================================================================*/ #include <palsuite.h> #include "../fprintf.h" /* * Depends on memcmp, strlen, fopen, fseek and fgets. */ static void DoTest(char *formatstr, void* param, char* paramstr, char *checkstr1, char *checkstr2) { FILE *fp; char buf[256] = { 0 }; if ((fp = fopen("testfile.txt", "w+")) == NULL ) { Fail("ERROR: fopen failed to create testfile\n"); } if ((fprintf(fp, formatstr, param)) < 0) { Fail("ERROR: fprintf failed\n"); } if ((fseek(fp, 0, SEEK_SET)) != 0) { Fail("ERROR: fseek failed\n"); } if ((fgets(buf, 100, fp)) == NULL) { Fail("ERROR: fseek failed\n"); } if (memcmp(buf, checkstr1, strlen(buf) + 1) != 0 && memcmp(buf, checkstr2, strlen(buf) + 1) != 0 ) { Fail("ERROR: failed to insert %s into \"%s\"\n" "Expected \"%s\" or \"%s\" got \"%s\".\n", paramstr, formatstr, checkstr1, checkstr2, buf); } if ((fclose( fp )) != 0) { Fail("ERROR: fclose failed to close \"testfile.txt\"\n"); } } PALTEST(c_runtime_fprintf_test4_paltest_fprintf_test4, "c_runtime/fprintf/test4/paltest_fprintf_test4") { void *ptr = (void*) 0x123456; INT64 lptr = I64(0x1234567887654321); if (PAL_Initialize(argc, argv) != 0) return(FAIL); /* ** Run only on 64 bit platforms */ #if defined(HOST_64BIT) Trace("Testing for 64 Bit Platforms \n"); DoTest("%p", NULL, "NULL", "0000000000000000", "0x0"); DoTest("%p", ptr, "pointer to 0x123456", "0000000000123456", "0x123456"); DoTest("%17p", ptr, "pointer to 0x123456", " 0000000000123456", " 0x123456"); DoTest("%17p", ptr, "pointer to 0x123456", " 0000000000123456", "0x0123456"); DoTest("%-17p", ptr, "pointer to 0x123456", "0000000000123456 ", "0x123456 "); DoTest("%+p", ptr, "pointer to 0x123456", "0000000000123456", "0x123456"); DoTest("%#p", ptr, "pointer to 0x123456", "0X0000000000123456", "0x123456"); DoTest("%lp", ptr, "pointer to 0x123456", "00123456", "0x123456"); DoTest("%hp", ptr, "pointer to 0x123456", "00003456", "0x3456"); DoTest("%Lp", ptr, "pointer to 0x123456", "00123456", "0x123456"); DoI64Test("%I64p", lptr, "pointer to 0x1234567887654321", "1234567887654321", "0x1234567887654321"); #else Trace("Testing for Non 64 Bit Platforms \n"); DoTest("%p", NULL, "NULL", "00000000", "0x0"); DoTest("%p", ptr, "pointer to 0x123456", "00123456", "0x123456"); DoTest("%9p", ptr, "pointer to 0x123456", " 00123456", " 0x123456"); DoTest("%09p", ptr, "pointer to 0x123456", " 00123456", "0x0123456"); DoTest("%-9p", ptr, "pointer to 0x123456", "00123456 ", "0x123456 "); DoTest("%+p", ptr, "pointer to 0x123456", "00123456", "0x123456"); DoTest("%#p", ptr, "pointer to 0x123456", "0X00123456", "0x123456"); DoTest("%lp", ptr, "pointer to 0x123456", "00123456", "0x123456"); DoTest("%hp", ptr, "pointer to 0x123456", "00003456", "0x3456"); DoTest("%Lp", ptr, "pointer to 0x123456", "00123456", "0x123456"); DoI64Test("%I64p", lptr, "pointer to 0x1234567887654321", "1234567887654321", "0x1234567887654321"); #endif PAL_Terminate(); return PASS; }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*============================================================================ ** ** Source: test4.c (fprintf) ** ** Purpose: Tests the pointer specifier (%p). ** This test is modeled after the fprintf series. ** ** **==========================================================================*/ #include <palsuite.h> #include "../fprintf.h" /* * Depends on memcmp, strlen, fopen, fseek and fgets. */ static void DoTest(char *formatstr, void* param, char* paramstr, char *checkstr1, char *checkstr2) { FILE *fp; char buf[256] = { 0 }; if ((fp = fopen("testfile.txt", "w+")) == NULL ) { Fail("ERROR: fopen failed to create testfile\n"); } if ((fprintf(fp, formatstr, param)) < 0) { Fail("ERROR: fprintf failed\n"); } if ((fseek(fp, 0, SEEK_SET)) != 0) { Fail("ERROR: fseek failed\n"); } if ((fgets(buf, 100, fp)) == NULL) { Fail("ERROR: fseek failed\n"); } if (memcmp(buf, checkstr1, strlen(buf) + 1) != 0 && memcmp(buf, checkstr2, strlen(buf) + 1) != 0 ) { Fail("ERROR: failed to insert %s into \"%s\"\n" "Expected \"%s\" or \"%s\" got \"%s\".\n", paramstr, formatstr, checkstr1, checkstr2, buf); } if ((fclose( fp )) != 0) { Fail("ERROR: fclose failed to close \"testfile.txt\"\n"); } } PALTEST(c_runtime_fprintf_test4_paltest_fprintf_test4, "c_runtime/fprintf/test4/paltest_fprintf_test4") { void *ptr = (void*) 0x123456; INT64 lptr = I64(0x1234567887654321); if (PAL_Initialize(argc, argv) != 0) return(FAIL); /* ** Run only on 64 bit platforms */ #if defined(HOST_64BIT) Trace("Testing for 64 Bit Platforms \n"); DoTest("%p", NULL, "NULL", "0000000000000000", "0x0"); DoTest("%p", ptr, "pointer to 0x123456", "0000000000123456", "0x123456"); DoTest("%17p", ptr, "pointer to 0x123456", " 0000000000123456", " 0x123456"); DoTest("%17p", ptr, "pointer to 0x123456", " 0000000000123456", "0x0123456"); DoTest("%-17p", ptr, "pointer to 0x123456", "0000000000123456 ", "0x123456 "); DoTest("%+p", ptr, "pointer to 0x123456", "0000000000123456", "0x123456"); DoTest("%#p", ptr, "pointer to 0x123456", "0X0000000000123456", "0x123456"); DoTest("%lp", ptr, "pointer to 0x123456", "00123456", "0x123456"); DoTest("%hp", ptr, "pointer to 0x123456", "00003456", "0x3456"); DoTest("%Lp", ptr, "pointer to 0x123456", "00123456", "0x123456"); DoI64Test("%I64p", lptr, "pointer to 0x1234567887654321", "1234567887654321", "0x1234567887654321"); #else Trace("Testing for Non 64 Bit Platforms \n"); DoTest("%p", NULL, "NULL", "00000000", "0x0"); DoTest("%p", ptr, "pointer to 0x123456", "00123456", "0x123456"); DoTest("%9p", ptr, "pointer to 0x123456", " 00123456", " 0x123456"); DoTest("%09p", ptr, "pointer to 0x123456", " 00123456", "0x0123456"); DoTest("%-9p", ptr, "pointer to 0x123456", "00123456 ", "0x123456 "); DoTest("%+p", ptr, "pointer to 0x123456", "00123456", "0x123456"); DoTest("%#p", ptr, "pointer to 0x123456", "0X00123456", "0x123456"); DoTest("%lp", ptr, "pointer to 0x123456", "00123456", "0x123456"); DoTest("%hp", ptr, "pointer to 0x123456", "00003456", "0x3456"); DoTest("%Lp", ptr, "pointer to 0x123456", "00123456", "0x123456"); DoI64Test("%I64p", lptr, "pointer to 0x1234567887654321", "1234567887654321", "0x1234567887654321"); #endif PAL_Terminate(); return PASS; }
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/libraries/System.Text.Json/src/System/Text/Json/JsonCommentHandling.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Text.Json { /// <summary> /// This enum defines the various ways the <see cref="Utf8JsonReader"/> can deal with comments. /// </summary> public enum JsonCommentHandling : byte { /// <summary> /// By default, do no allow comments within the JSON input. /// Comments are treated as invalid JSON if found and a /// <see cref="JsonException"/> is thrown. /// </summary> Disallow = 0, /// <summary> /// Allow comments within the JSON input and ignore them. /// The <see cref="Utf8JsonReader"/> will behave as if no comments were present. /// </summary> Skip = 1, /// <summary> /// Allow comments within the JSON input and treat them as valid tokens. /// While reading, the caller will be able to access the comment values. /// </summary> Allow = 2, } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Text.Json { /// <summary> /// This enum defines the various ways the <see cref="Utf8JsonReader"/> can deal with comments. /// </summary> public enum JsonCommentHandling : byte { /// <summary> /// By default, do no allow comments within the JSON input. /// Comments are treated as invalid JSON if found and a /// <see cref="JsonException"/> is thrown. /// </summary> Disallow = 0, /// <summary> /// Allow comments within the JSON input and ignore them. /// The <see cref="Utf8JsonReader"/> will behave as if no comments were present. /// </summary> Skip = 1, /// <summary> /// Allow comments within the JSON input and treat them as valid tokens. /// While reading, the caller will be able to access the comment values. /// </summary> Allow = 2, } }
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/libraries/System.Speech/src/Internal/SrgsCompiler/SemanticTag.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Speech.Internal.SrgsParser; namespace System.Speech.Internal.SrgsCompiler { internal sealed class SemanticTag : ParseElement, ISemanticTag { #region Constructors internal SemanticTag(ParseElement parent, Backend backend) : base(parent._rule) { } #endregion #region Internal Methods // The probability that this item will be repeated. void ISemanticTag.Content(IElement parentElement, string sTag, int iLine) { //Return if the Tag content is empty sTag = sTag.Trim(Helpers._achTrimChars); if (string.IsNullOrEmpty(sTag)) { return; } // Build semantic properties to attach to epsilon transition. // <tag>script</tag> _propInfo._ulId = (uint)iLine; _propInfo._comValue = sTag; ParseElementCollection parent = (ParseElementCollection)parentElement; // Attach the semantic properties on the parent element. parent.AddSemanticInterpretationTag(_propInfo); } #endregion #region Private Fields private CfgGrammar.CfgProperty _propInfo = new(); #endregion } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Speech.Internal.SrgsParser; namespace System.Speech.Internal.SrgsCompiler { internal sealed class SemanticTag : ParseElement, ISemanticTag { #region Constructors internal SemanticTag(ParseElement parent, Backend backend) : base(parent._rule) { } #endregion #region Internal Methods // The probability that this item will be repeated. void ISemanticTag.Content(IElement parentElement, string sTag, int iLine) { //Return if the Tag content is empty sTag = sTag.Trim(Helpers._achTrimChars); if (string.IsNullOrEmpty(sTag)) { return; } // Build semantic properties to attach to epsilon transition. // <tag>script</tag> _propInfo._ulId = (uint)iLine; _propInfo._comValue = sTag; ParseElementCollection parent = (ParseElementCollection)parentElement; // Attach the semantic properties on the parent element. parent.AddSemanticInterpretationTag(_propInfo); } #endregion #region Private Fields private CfgGrammar.CfgProperty _propInfo = new(); #endregion } }
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/tests/Loader/classloader/regressions/451034/LoadType.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <ItemGroup> <Compile Include="LoadType.cs" /> </ItemGroup> <ItemGroup> <ProjectReference Include="Type.ilproj" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <ItemGroup> <Compile Include="LoadType.cs" /> </ItemGroup> <ItemGroup> <ProjectReference Include="Type.ilproj" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/libraries/System.Text.Json/src/System/Text/Json/Serialization/ReadStack.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Text.Json.Serialization; using System.Text.Json.Serialization.Metadata; namespace System.Text.Json { [DebuggerDisplay("Path:{JsonPath()} Current: ConverterStrategy.{Current.JsonTypeInfo.PropertyInfoForTypeInfo.ConverterStrategy}, {Current.JsonTypeInfo.Type.Name}")] internal struct ReadStack { internal static readonly char[] SpecialCharacters = { '.', ' ', '\'', '/', '"', '[', ']', '(', ')', '\t', '\n', '\r', '\f', '\b', '\\', '\u0085', '\u2028', '\u2029' }; /// <summary> /// Exposes the stackframe that is currently active. /// </summary> public ReadStackFrame Current; /// <summary> /// Buffer containing all frames in the stack. For performance it is only populated for serialization depths > 1. /// </summary> private ReadStackFrame[] _stack; /// <summary> /// Tracks the current depth of the stack. /// </summary> private int _count; /// <summary> /// If not zero, indicates that the stack is part of a re-entrant continuation of given depth. /// </summary> private int _continuationCount; // State cache when deserializing objects with parameterized constructors. private List<ArgumentState>? _ctorArgStateCache; /// <summary> /// Bytes consumed in the current loop. /// </summary> public long BytesConsumed; /// <summary> /// Indicates that the state still contains suspended frames waiting re-entry. /// </summary> public bool IsContinuation => _continuationCount != 0; /// <summary> /// Internal flag to let us know that we need to read ahead in the inner read loop. /// </summary> public bool ReadAhead; // The bag of preservable references. public ReferenceResolver ReferenceResolver; /// <summary> /// Whether we need to read ahead in the inner read loop. /// </summary> public bool SupportContinuation; /// <summary> /// Whether we can read without the need of saving state for stream and preserve references cases. /// </summary> public bool UseFastPath; /// <summary> /// Ensures that the stack buffer has sufficient capacity to hold an additional frame. /// </summary> private void EnsurePushCapacity() { if (_stack is null) { _stack = new ReadStackFrame[4]; } else if (_count - 1 == _stack.Length) { Array.Resize(ref _stack, 2 * _stack.Length); } } public void Initialize(Type type, JsonSerializerOptions options, bool supportContinuation) { JsonTypeInfo jsonTypeInfo = options.GetOrAddJsonTypeInfoForRootType(type); Initialize(jsonTypeInfo, supportContinuation); } internal void Initialize(JsonTypeInfo jsonTypeInfo, bool supportContinuation = false) { Current.JsonTypeInfo = jsonTypeInfo; // The initial JsonPropertyInfo will be used to obtain the converter. Current.JsonPropertyInfo = jsonTypeInfo.PropertyInfoForTypeInfo; Current.NumberHandling = Current.JsonPropertyInfo.NumberHandling; JsonSerializerOptions options = jsonTypeInfo.Options; bool preserveReferences = options.ReferenceHandlingStrategy == ReferenceHandlingStrategy.Preserve; if (preserveReferences) { ReferenceResolver = options.ReferenceHandler!.CreateResolver(writing: false); } SupportContinuation = supportContinuation; UseFastPath = !supportContinuation && !preserveReferences; } public void Push() { if (_continuationCount == 0) { if (_count == 0) { // Performance optimization: reuse the first stackframe on the first push operation. // NB need to be careful when making writes to Current _before_ the first `Push` // operation is performed. _count = 1; } else { JsonTypeInfo jsonTypeInfo; JsonNumberHandling? numberHandling = Current.NumberHandling; ConverterStrategy converterStrategy = Current.JsonTypeInfo.PropertyInfoForTypeInfo.ConverterStrategy; if (converterStrategy == ConverterStrategy.Object) { if (Current.JsonPropertyInfo != null) { jsonTypeInfo = Current.JsonPropertyInfo.JsonTypeInfo; } else { jsonTypeInfo = Current.CtorArgumentState!.JsonParameterInfo!.JsonTypeInfo; } } else if (converterStrategy == ConverterStrategy.Value) { // Although ConverterStrategy.Value doesn't push, a custom custom converter may re-enter serialization. jsonTypeInfo = Current.JsonPropertyInfo!.JsonTypeInfo; } else { Debug.Assert(((ConverterStrategy.Enumerable | ConverterStrategy.Dictionary) & converterStrategy) != 0); jsonTypeInfo = Current.JsonTypeInfo.ElementTypeInfo!; } EnsurePushCapacity(); _stack[_count - 1] = Current; Current = default; _count++; Current.JsonTypeInfo = jsonTypeInfo; Current.JsonPropertyInfo = jsonTypeInfo.PropertyInfoForTypeInfo; // Allow number handling on property to win over handling on type. Current.NumberHandling = numberHandling ?? Current.JsonPropertyInfo.NumberHandling; } } else { // We are re-entering a continuation, adjust indices accordingly if (_count++ > 0) { Current = _stack[_count - 1]; } // check if we are done if (_continuationCount == _count) { _continuationCount = 0; } } SetConstructorArgumentState(); #if DEBUG // Ensure the method is always exercised in debug builds. _ = JsonPath(); #endif } public void Pop(bool success) { Debug.Assert(_count > 0); if (!success) { // Check if we need to initialize the continuation. if (_continuationCount == 0) { if (_count == 1) { // No need to copy any frames here. _continuationCount = 1; _count = 0; return; } // Need to push the Current frame to the stack, // ensure that we have sufficient capacity. EnsurePushCapacity(); _continuationCount = _count--; } else if (--_count == 0) { // reached the root, no need to copy frames. return; } _stack[_count] = Current; Current = _stack[_count - 1]; } else { Debug.Assert(_continuationCount == 0); if (--_count > 0) { Current = _stack[_count - 1]; } } SetConstructorArgumentState(); } // Return a JSONPath using simple dot-notation when possible. When special characters are present, bracket-notation is used: // $.x.y[0].z // $['PropertyName.With.Special.Chars'] public string JsonPath() { StringBuilder sb = new StringBuilder("$"); // If a continuation, always report back full stack which does not use Current for the last frame. int count = Math.Max(_count, _continuationCount + 1); for (int i = 0; i < count - 1; i++) { AppendStackFrame(sb, ref _stack[i]); } if (_continuationCount == 0) { AppendStackFrame(sb, ref Current); } return sb.ToString(); static void AppendStackFrame(StringBuilder sb, ref ReadStackFrame frame) { // Append the property name. string? propertyName = GetPropertyName(ref frame); AppendPropertyName(sb, propertyName); if (frame.JsonTypeInfo != null && frame.IsProcessingEnumerable()) { if (frame.ReturnValue is not IEnumerable enumerable) { return; } // For continuation scenarios only, before or after all elements are read, the exception is not within the array. if (frame.ObjectState == StackFrameObjectState.None || frame.ObjectState == StackFrameObjectState.CreatedObject || frame.ObjectState == StackFrameObjectState.ReadElements) { sb.Append('['); sb.Append(GetCount(enumerable)); sb.Append(']'); } } } static int GetCount(IEnumerable enumerable) { if (enumerable is ICollection collection) { return collection.Count; } int count = 0; IEnumerator enumerator = enumerable.GetEnumerator(); while (enumerator.MoveNext()) { count++; } return count; } static void AppendPropertyName(StringBuilder sb, string? propertyName) { if (propertyName != null) { if (propertyName.IndexOfAny(SpecialCharacters) != -1) { sb.Append(@"['"); sb.Append(propertyName); sb.Append(@"']"); } else { sb.Append('.'); sb.Append(propertyName); } } } static string? GetPropertyName(ref ReadStackFrame frame) { string? propertyName = null; // Attempt to get the JSON property name from the frame. byte[]? utf8PropertyName = frame.JsonPropertyName; if (utf8PropertyName == null) { if (frame.JsonPropertyNameAsString != null) { // Attempt to get the JSON property name set manually for dictionary // keys and KeyValuePair property names. propertyName = frame.JsonPropertyNameAsString; } else { // Attempt to get the JSON property name from the JsonPropertyInfo or JsonParameterInfo. utf8PropertyName = frame.JsonPropertyInfo?.NameAsUtf8Bytes ?? frame.CtorArgumentState?.JsonParameterInfo?.NameAsUtf8Bytes; } } if (utf8PropertyName != null) { propertyName = JsonHelpers.Utf8GetString(utf8PropertyName); } return propertyName; } } [MethodImpl(MethodImplOptions.AggressiveInlining)] private void SetConstructorArgumentState() { if (Current.JsonTypeInfo.IsObjectWithParameterizedCtor) { // A zero index indicates a new stack frame. if (Current.CtorArgumentStateIndex == 0) { _ctorArgStateCache ??= new List<ArgumentState>(); var newState = new ArgumentState(); _ctorArgStateCache.Add(newState); (Current.CtorArgumentStateIndex, Current.CtorArgumentState) = (_ctorArgStateCache.Count, newState); } else { Current.CtorArgumentState = _ctorArgStateCache![Current.CtorArgumentStateIndex - 1]; } } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Text.Json.Serialization; using System.Text.Json.Serialization.Metadata; namespace System.Text.Json { [DebuggerDisplay("Path:{JsonPath()} Current: ConverterStrategy.{Current.JsonTypeInfo.PropertyInfoForTypeInfo.ConverterStrategy}, {Current.JsonTypeInfo.Type.Name}")] internal struct ReadStack { internal static readonly char[] SpecialCharacters = { '.', ' ', '\'', '/', '"', '[', ']', '(', ')', '\t', '\n', '\r', '\f', '\b', '\\', '\u0085', '\u2028', '\u2029' }; /// <summary> /// Exposes the stackframe that is currently active. /// </summary> public ReadStackFrame Current; /// <summary> /// Buffer containing all frames in the stack. For performance it is only populated for serialization depths > 1. /// </summary> private ReadStackFrame[] _stack; /// <summary> /// Tracks the current depth of the stack. /// </summary> private int _count; /// <summary> /// If not zero, indicates that the stack is part of a re-entrant continuation of given depth. /// </summary> private int _continuationCount; // State cache when deserializing objects with parameterized constructors. private List<ArgumentState>? _ctorArgStateCache; /// <summary> /// Bytes consumed in the current loop. /// </summary> public long BytesConsumed; /// <summary> /// Indicates that the state still contains suspended frames waiting re-entry. /// </summary> public bool IsContinuation => _continuationCount != 0; /// <summary> /// Internal flag to let us know that we need to read ahead in the inner read loop. /// </summary> public bool ReadAhead; // The bag of preservable references. public ReferenceResolver ReferenceResolver; /// <summary> /// Whether we need to read ahead in the inner read loop. /// </summary> public bool SupportContinuation; /// <summary> /// Whether we can read without the need of saving state for stream and preserve references cases. /// </summary> public bool UseFastPath; /// <summary> /// Ensures that the stack buffer has sufficient capacity to hold an additional frame. /// </summary> private void EnsurePushCapacity() { if (_stack is null) { _stack = new ReadStackFrame[4]; } else if (_count - 1 == _stack.Length) { Array.Resize(ref _stack, 2 * _stack.Length); } } public void Initialize(Type type, JsonSerializerOptions options, bool supportContinuation) { JsonTypeInfo jsonTypeInfo = options.GetOrAddJsonTypeInfoForRootType(type); Initialize(jsonTypeInfo, supportContinuation); } internal void Initialize(JsonTypeInfo jsonTypeInfo, bool supportContinuation = false) { Current.JsonTypeInfo = jsonTypeInfo; // The initial JsonPropertyInfo will be used to obtain the converter. Current.JsonPropertyInfo = jsonTypeInfo.PropertyInfoForTypeInfo; Current.NumberHandling = Current.JsonPropertyInfo.NumberHandling; JsonSerializerOptions options = jsonTypeInfo.Options; bool preserveReferences = options.ReferenceHandlingStrategy == ReferenceHandlingStrategy.Preserve; if (preserveReferences) { ReferenceResolver = options.ReferenceHandler!.CreateResolver(writing: false); } SupportContinuation = supportContinuation; UseFastPath = !supportContinuation && !preserveReferences; } public void Push() { if (_continuationCount == 0) { if (_count == 0) { // Performance optimization: reuse the first stackframe on the first push operation. // NB need to be careful when making writes to Current _before_ the first `Push` // operation is performed. _count = 1; } else { JsonTypeInfo jsonTypeInfo; JsonNumberHandling? numberHandling = Current.NumberHandling; ConverterStrategy converterStrategy = Current.JsonTypeInfo.PropertyInfoForTypeInfo.ConverterStrategy; if (converterStrategy == ConverterStrategy.Object) { if (Current.JsonPropertyInfo != null) { jsonTypeInfo = Current.JsonPropertyInfo.JsonTypeInfo; } else { jsonTypeInfo = Current.CtorArgumentState!.JsonParameterInfo!.JsonTypeInfo; } } else if (converterStrategy == ConverterStrategy.Value) { // Although ConverterStrategy.Value doesn't push, a custom custom converter may re-enter serialization. jsonTypeInfo = Current.JsonPropertyInfo!.JsonTypeInfo; } else { Debug.Assert(((ConverterStrategy.Enumerable | ConverterStrategy.Dictionary) & converterStrategy) != 0); jsonTypeInfo = Current.JsonTypeInfo.ElementTypeInfo!; } EnsurePushCapacity(); _stack[_count - 1] = Current; Current = default; _count++; Current.JsonTypeInfo = jsonTypeInfo; Current.JsonPropertyInfo = jsonTypeInfo.PropertyInfoForTypeInfo; // Allow number handling on property to win over handling on type. Current.NumberHandling = numberHandling ?? Current.JsonPropertyInfo.NumberHandling; } } else { // We are re-entering a continuation, adjust indices accordingly if (_count++ > 0) { Current = _stack[_count - 1]; } // check if we are done if (_continuationCount == _count) { _continuationCount = 0; } } SetConstructorArgumentState(); #if DEBUG // Ensure the method is always exercised in debug builds. _ = JsonPath(); #endif } public void Pop(bool success) { Debug.Assert(_count > 0); if (!success) { // Check if we need to initialize the continuation. if (_continuationCount == 0) { if (_count == 1) { // No need to copy any frames here. _continuationCount = 1; _count = 0; return; } // Need to push the Current frame to the stack, // ensure that we have sufficient capacity. EnsurePushCapacity(); _continuationCount = _count--; } else if (--_count == 0) { // reached the root, no need to copy frames. return; } _stack[_count] = Current; Current = _stack[_count - 1]; } else { Debug.Assert(_continuationCount == 0); if (--_count > 0) { Current = _stack[_count - 1]; } } SetConstructorArgumentState(); } // Return a JSONPath using simple dot-notation when possible. When special characters are present, bracket-notation is used: // $.x.y[0].z // $['PropertyName.With.Special.Chars'] public string JsonPath() { StringBuilder sb = new StringBuilder("$"); // If a continuation, always report back full stack which does not use Current for the last frame. int count = Math.Max(_count, _continuationCount + 1); for (int i = 0; i < count - 1; i++) { AppendStackFrame(sb, ref _stack[i]); } if (_continuationCount == 0) { AppendStackFrame(sb, ref Current); } return sb.ToString(); static void AppendStackFrame(StringBuilder sb, ref ReadStackFrame frame) { // Append the property name. string? propertyName = GetPropertyName(ref frame); AppendPropertyName(sb, propertyName); if (frame.JsonTypeInfo != null && frame.IsProcessingEnumerable()) { if (frame.ReturnValue is not IEnumerable enumerable) { return; } // For continuation scenarios only, before or after all elements are read, the exception is not within the array. if (frame.ObjectState == StackFrameObjectState.None || frame.ObjectState == StackFrameObjectState.CreatedObject || frame.ObjectState == StackFrameObjectState.ReadElements) { sb.Append('['); sb.Append(GetCount(enumerable)); sb.Append(']'); } } } static int GetCount(IEnumerable enumerable) { if (enumerable is ICollection collection) { return collection.Count; } int count = 0; IEnumerator enumerator = enumerable.GetEnumerator(); while (enumerator.MoveNext()) { count++; } return count; } static void AppendPropertyName(StringBuilder sb, string? propertyName) { if (propertyName != null) { if (propertyName.IndexOfAny(SpecialCharacters) != -1) { sb.Append(@"['"); sb.Append(propertyName); sb.Append(@"']"); } else { sb.Append('.'); sb.Append(propertyName); } } } static string? GetPropertyName(ref ReadStackFrame frame) { string? propertyName = null; // Attempt to get the JSON property name from the frame. byte[]? utf8PropertyName = frame.JsonPropertyName; if (utf8PropertyName == null) { if (frame.JsonPropertyNameAsString != null) { // Attempt to get the JSON property name set manually for dictionary // keys and KeyValuePair property names. propertyName = frame.JsonPropertyNameAsString; } else { // Attempt to get the JSON property name from the JsonPropertyInfo or JsonParameterInfo. utf8PropertyName = frame.JsonPropertyInfo?.NameAsUtf8Bytes ?? frame.CtorArgumentState?.JsonParameterInfo?.NameAsUtf8Bytes; } } if (utf8PropertyName != null) { propertyName = JsonHelpers.Utf8GetString(utf8PropertyName); } return propertyName; } } [MethodImpl(MethodImplOptions.AggressiveInlining)] private void SetConstructorArgumentState() { if (Current.JsonTypeInfo.IsObjectWithParameterizedCtor) { // A zero index indicates a new stack frame. if (Current.CtorArgumentStateIndex == 0) { _ctorArgStateCache ??= new List<ArgumentState>(); var newState = new ArgumentState(); _ctorArgStateCache.Add(newState); (Current.CtorArgumentStateIndex, Current.CtorArgumentState) = (_ctorArgStateCache.Count, newState); } else { Current.CtorArgumentState = _ctorArgStateCache![Current.CtorArgumentStateIndex - 1]; } } } } }
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/tests/GC/Scenarios/GCSimulator/GCSimulator_322.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <GCStressIncompatible>true</GCStressIncompatible> <CLRTestExecutionArguments>-t 1 -tp 0 -dz 17 -sdz 8500 -dc 10000 -sdc 5000 -lt 4 -dp 0.0 -dw 0.0</CLRTestExecutionArguments> <IsGCSimulatorTest>true</IsGCSimulatorTest> <CLRTestProjectToRun>GCSimulator.csproj</CLRTestProjectToRun> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <ItemGroup> <Compile Include="GCSimulator.cs" /> <Compile Include="lifetimefx.cs" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <GCStressIncompatible>true</GCStressIncompatible> <CLRTestExecutionArguments>-t 1 -tp 0 -dz 17 -sdz 8500 -dc 10000 -sdc 5000 -lt 4 -dp 0.0 -dw 0.0</CLRTestExecutionArguments> <IsGCSimulatorTest>true</IsGCSimulatorTest> <CLRTestProjectToRun>GCSimulator.csproj</CLRTestProjectToRun> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <ItemGroup> <Compile Include="GCSimulator.cs" /> <Compile Include="lifetimefx.cs" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/libraries/System.ComponentModel.Composition.Registration/tests/System/ComponentModel/Composition/Registration/RegistrationBuilderExportFuncTests.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel.Composition.Hosting; using Xunit; namespace System.ComponentModel.Composition.Registration.Tests { public class RegistrationBuilderExportFuncUnitTests { public interface IFoo { } public class Class1 { [Import] public Func<IFoo> Foo { get; set; } } public class Factory { [Export] public IFoo Create() { return null; } } [Fact] public void RegistrationBuilder_WithExportDelegatesShouldNotThrow() { var rb = new RegistrationBuilder(); var cat = new TypeCatalog(new Type[] { typeof(Class1), typeof(Factory) }, rb); CompositionService cs = cat.CreateCompositionService(); var test = new Class1(); cs.SatisfyImportsOnce(test); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel.Composition.Hosting; using Xunit; namespace System.ComponentModel.Composition.Registration.Tests { public class RegistrationBuilderExportFuncUnitTests { public interface IFoo { } public class Class1 { [Import] public Func<IFoo> Foo { get; set; } } public class Factory { [Export] public IFoo Create() { return null; } } [Fact] public void RegistrationBuilder_WithExportDelegatesShouldNotThrow() { var rb = new RegistrationBuilder(); var cat = new TypeCatalog(new Type[] { typeof(Class1), typeof(Factory) }, rb); CompositionService cs = cat.CreateCompositionService(); var test = new Class1(); cs.SatisfyImportsOnce(test); } } }
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./.git/hooks/pre-receive.sample
#!/bin/sh # # An example hook script to make use of push options. # The example simply echoes all push options that start with 'echoback=' # and rejects all pushes when the "reject" push option is used. # # To enable this hook, rename this file to "pre-receive". if test -n "$GIT_PUSH_OPTION_COUNT" then i=0 while test "$i" -lt "$GIT_PUSH_OPTION_COUNT" do eval "value=\$GIT_PUSH_OPTION_$i" case "$value" in echoback=*) echo "echo from the pre-receive-hook: ${value#*=}" >&2 ;; reject) exit 1 esac i=$((i + 1)) done fi
#!/bin/sh # # An example hook script to make use of push options. # The example simply echoes all push options that start with 'echoback=' # and rejects all pushes when the "reject" push option is used. # # To enable this hook, rename this file to "pre-receive". if test -n "$GIT_PUSH_OPTION_COUNT" then i=0 while test "$i" -lt "$GIT_PUSH_OPTION_COUNT" do eval "value=\$GIT_PUSH_OPTION_$i" case "$value" in echoback=*) echo "echo from the pre-receive-hook: ${value#*=}" >&2 ;; reject) exit 1 esac i=$((i + 1)) done fi
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/tests/JIT/Regression/JitBlue/Runtime_57061/Runtime_57061_3.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> </PropertyGroup> <PropertyGroup> <DebugType>None</DebugType> <Optimize>True</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="$(MSBuildProjectName).cs" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> </PropertyGroup> <PropertyGroup> <DebugType>None</DebugType> <Optimize>True</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="$(MSBuildProjectName).cs" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/tests/JIT/opt/OSR/integersumloop.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Diagnostics; using System.Runtime.CompilerServices; class IntegerSumLoop { [MethodImpl(MethodImplOptions.NoInlining)] public static int F(int from, int to) { int result = 0; for (int i = from; i < to; i++) { result += i; } return result; } public static int Main(string[] args) { int final = 1_000_000; long frequency = Stopwatch.Frequency; long nanosecPerTick = (1000L*1000L*1000L) / frequency; F(0, 10); Stopwatch s = new Stopwatch(); s.Start(); int result = F(0, final); s.Stop(); double elapsedTime = 1000.0 * (double) s.ElapsedTicks / (double) frequency; Console.WriteLine($"{final} iterations took {elapsedTime:F2}ms"); return result == 1783293664 ? 100 : -1; } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Diagnostics; using System.Runtime.CompilerServices; class IntegerSumLoop { [MethodImpl(MethodImplOptions.NoInlining)] public static int F(int from, int to) { int result = 0; for (int i = from; i < to; i++) { result += i; } return result; } public static int Main(string[] args) { int final = 1_000_000; long frequency = Stopwatch.Frequency; long nanosecPerTick = (1000L*1000L*1000L) / frequency; F(0, 10); Stopwatch s = new Stopwatch(); s.Start(); int result = F(0, final); s.Stop(); double elapsedTime = 1000.0 * (double) s.ElapsedTicks / (double) frequency; Console.WriteLine($"{final} iterations took {elapsedTime:F2}ms"); return result == 1783293664 ? 100 : -1; } }
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/tests/JIT/jit64/gc/misc/vbil.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>Full</DebugType> <Optimize>False</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="vbil.cs" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>Full</DebugType> <Optimize>False</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="vbil.cs" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./eng/pipelines/coreclr/libraries-gcstress-extra.yml
trigger: none # This pipeline currently has too many failures to be enabled by schedule. # schedules: # - cron: "0 10 * * 0" # displayName: Sun at 2:00 AM (UTC-8:00) # branches: # include: # - main # always: true jobs: # # Build CoreCLR checked and libraries Release # - template: /eng/pipelines/common/platform-matrix.yml parameters: jobTemplate: /eng/pipelines/common/build-coreclr-and-libraries-job.yml buildConfig: checked platformGroup: gcstress jobParameters: # libraries test build platforms testBuildPlatforms: - Linux_x64 - windows_x64 # # Libraries Test Run using Release libraries, Checked CoreCLR, and stress modes # - template: /eng/pipelines/common/platform-matrix.yml parameters: jobTemplate: /eng/pipelines/libraries/run-test-job.yml buildConfig: Release platformGroup: gcstress helixQueueGroup: libraries helixQueuesTemplate: /eng/pipelines/coreclr/templates/helix-queues-setup.yml jobParameters: # Default timeout is 150 minutes (2.5 hours), which is not enough for stress. timeoutInMinutes: 600 testScope: innerloop liveRuntimeBuildConfig: checked dependsOnTestBuildConfiguration: Release dependsOnTestArchitecture: x64 coreclrTestGroup: gcstress-extra
trigger: none # This pipeline currently has too many failures to be enabled by schedule. # schedules: # - cron: "0 10 * * 0" # displayName: Sun at 2:00 AM (UTC-8:00) # branches: # include: # - main # always: true jobs: # # Build CoreCLR checked and libraries Release # - template: /eng/pipelines/common/platform-matrix.yml parameters: jobTemplate: /eng/pipelines/common/build-coreclr-and-libraries-job.yml buildConfig: checked platformGroup: gcstress jobParameters: # libraries test build platforms testBuildPlatforms: - Linux_x64 - windows_x64 # # Libraries Test Run using Release libraries, Checked CoreCLR, and stress modes # - template: /eng/pipelines/common/platform-matrix.yml parameters: jobTemplate: /eng/pipelines/libraries/run-test-job.yml buildConfig: Release platformGroup: gcstress helixQueueGroup: libraries helixQueuesTemplate: /eng/pipelines/coreclr/templates/helix-queues-setup.yml jobParameters: # Default timeout is 150 minutes (2.5 hours), which is not enough for stress. timeoutInMinutes: 600 testScope: innerloop liveRuntimeBuildConfig: checked dependsOnTestBuildConfiguration: Release dependsOnTestArchitecture: x64 coreclrTestGroup: gcstress-extra
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/libraries/System.Private.CoreLib/src/System/IO/Strategies/FileStreamHelpers.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.Serialization; using Microsoft.Win32.SafeHandles; namespace System.IO.Strategies { internal static partial class FileStreamHelpers { /// <summary>Caches whether Serialization Guard has been disabled for file writes</summary> private static int s_cachedSerializationSwitch; internal static FileStreamStrategy ChooseStrategy(FileStream fileStream, SafeFileHandle handle, FileAccess access, int bufferSize, bool isAsync) { FileStreamStrategy strategy = EnableBufferingIfNeeded(ChooseStrategyCore(handle, access, isAsync), bufferSize); return WrapIfDerivedType(fileStream, strategy); } internal static FileStreamStrategy ChooseStrategy(FileStream fileStream, string path, FileMode mode, FileAccess access, FileShare share, int bufferSize, FileOptions options, long preallocationSize) { FileStreamStrategy strategy = EnableBufferingIfNeeded(ChooseStrategyCore(path, mode, access, share, options, preallocationSize), bufferSize); return WrapIfDerivedType(fileStream, strategy); } private static FileStreamStrategy EnableBufferingIfNeeded(FileStreamStrategy strategy, int bufferSize) => bufferSize > 1 ? new BufferedFileStreamStrategy(strategy, bufferSize) : strategy; private static FileStreamStrategy WrapIfDerivedType(FileStream fileStream, FileStreamStrategy strategy) => fileStream.GetType() == typeof(FileStream) ? strategy : new DerivedFileStreamStrategy(fileStream, strategy); internal static bool IsIoRelatedException(Exception e) => // These all derive from IOException // DirectoryNotFoundException // DriveNotFoundException // EndOfStreamException // FileLoadException // FileNotFoundException // PathTooLongException // PipeException e is IOException || // Note that SecurityException is only thrown on runtimes that support CAS // e is SecurityException || e is UnauthorizedAccessException || e is NotSupportedException || (e is ArgumentException && !(e is ArgumentNullException)); internal static void ValidateArguments(string path, FileMode mode, FileAccess access, FileShare share, int bufferSize, FileOptions options, long preallocationSize) { ArgumentException.ThrowIfNullOrEmpty(path); // don't include inheritable in our bounds check for share FileShare tempshare = share & ~FileShare.Inheritable; string? badArg = null; if (mode < FileMode.CreateNew || mode > FileMode.Append) { badArg = nameof(mode); } else if (access < FileAccess.Read || access > FileAccess.ReadWrite) { badArg = nameof(access); } else if (tempshare < FileShare.None || tempshare > (FileShare.ReadWrite | FileShare.Delete)) { badArg = nameof(share); } if (badArg != null) { throw new ArgumentOutOfRangeException(badArg, SR.ArgumentOutOfRange_Enum); } // NOTE: any change to FileOptions enum needs to be matched here in the error validation if (options != FileOptions.None && (options & ~(FileOptions.WriteThrough | FileOptions.Asynchronous | FileOptions.RandomAccess | FileOptions.DeleteOnClose | FileOptions.SequentialScan | FileOptions.Encrypted | (FileOptions)0x20000000 /* NoBuffering */)) != 0) { throw new ArgumentOutOfRangeException(nameof(options), SR.ArgumentOutOfRange_Enum); } else if (bufferSize < 0) { ThrowHelper.ThrowArgumentOutOfRangeException_NeedNonNegNum(nameof(bufferSize)); } else if (preallocationSize < 0) { ThrowHelper.ThrowArgumentOutOfRangeException_NeedNonNegNum(nameof(preallocationSize)); } // Write access validation if ((access & FileAccess.Write) == 0) { if (mode == FileMode.Truncate || mode == FileMode.CreateNew || mode == FileMode.Create || mode == FileMode.Append) { // No write access, mode and access disagree but flag access since mode comes first throw new ArgumentException(SR.Format(SR.Argument_InvalidFileModeAndAccessCombo, mode, access), nameof(access)); } } if ((access & FileAccess.Read) != 0 && mode == FileMode.Append) { throw new ArgumentException(SR.Argument_InvalidAppendMode, nameof(access)); } if (preallocationSize > 0) { ValidateArgumentsForPreallocation(mode, access); } SerializationGuard(access); } internal static void ValidateArgumentsForPreallocation(FileMode mode, FileAccess access) { // The user will be writing into the preallocated space. if ((access & FileAccess.Write) == 0) { throw new ArgumentException(SR.Argument_InvalidPreallocateAccess, nameof(access)); } // Only allow preallocation for newly created/overwritten files. // When we fail to preallocate, we'll remove the file. if (mode != FileMode.Create && mode != FileMode.CreateNew) { throw new ArgumentException(SR.Argument_InvalidPreallocateMode, nameof(mode)); } } internal static void SerializationGuard(FileAccess access) { if ((access & FileAccess.Write) == FileAccess.Write) { SerializationInfo.ThrowIfDeserializationInProgress("AllowFileWrites", ref s_cachedSerializationSwitch); } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.Serialization; using Microsoft.Win32.SafeHandles; namespace System.IO.Strategies { internal static partial class FileStreamHelpers { /// <summary>Caches whether Serialization Guard has been disabled for file writes</summary> private static int s_cachedSerializationSwitch; internal static FileStreamStrategy ChooseStrategy(FileStream fileStream, SafeFileHandle handle, FileAccess access, int bufferSize, bool isAsync) { FileStreamStrategy strategy = EnableBufferingIfNeeded(ChooseStrategyCore(handle, access, isAsync), bufferSize); return WrapIfDerivedType(fileStream, strategy); } internal static FileStreamStrategy ChooseStrategy(FileStream fileStream, string path, FileMode mode, FileAccess access, FileShare share, int bufferSize, FileOptions options, long preallocationSize) { FileStreamStrategy strategy = EnableBufferingIfNeeded(ChooseStrategyCore(path, mode, access, share, options, preallocationSize), bufferSize); return WrapIfDerivedType(fileStream, strategy); } private static FileStreamStrategy EnableBufferingIfNeeded(FileStreamStrategy strategy, int bufferSize) => bufferSize > 1 ? new BufferedFileStreamStrategy(strategy, bufferSize) : strategy; private static FileStreamStrategy WrapIfDerivedType(FileStream fileStream, FileStreamStrategy strategy) => fileStream.GetType() == typeof(FileStream) ? strategy : new DerivedFileStreamStrategy(fileStream, strategy); internal static bool IsIoRelatedException(Exception e) => // These all derive from IOException // DirectoryNotFoundException // DriveNotFoundException // EndOfStreamException // FileLoadException // FileNotFoundException // PathTooLongException // PipeException e is IOException || // Note that SecurityException is only thrown on runtimes that support CAS // e is SecurityException || e is UnauthorizedAccessException || e is NotSupportedException || (e is ArgumentException && !(e is ArgumentNullException)); internal static void ValidateArguments(string path, FileMode mode, FileAccess access, FileShare share, int bufferSize, FileOptions options, long preallocationSize) { ArgumentException.ThrowIfNullOrEmpty(path); // don't include inheritable in our bounds check for share FileShare tempshare = share & ~FileShare.Inheritable; string? badArg = null; if (mode < FileMode.CreateNew || mode > FileMode.Append) { badArg = nameof(mode); } else if (access < FileAccess.Read || access > FileAccess.ReadWrite) { badArg = nameof(access); } else if (tempshare < FileShare.None || tempshare > (FileShare.ReadWrite | FileShare.Delete)) { badArg = nameof(share); } if (badArg != null) { throw new ArgumentOutOfRangeException(badArg, SR.ArgumentOutOfRange_Enum); } // NOTE: any change to FileOptions enum needs to be matched here in the error validation if (options != FileOptions.None && (options & ~(FileOptions.WriteThrough | FileOptions.Asynchronous | FileOptions.RandomAccess | FileOptions.DeleteOnClose | FileOptions.SequentialScan | FileOptions.Encrypted | (FileOptions)0x20000000 /* NoBuffering */)) != 0) { throw new ArgumentOutOfRangeException(nameof(options), SR.ArgumentOutOfRange_Enum); } else if (bufferSize < 0) { ThrowHelper.ThrowArgumentOutOfRangeException_NeedNonNegNum(nameof(bufferSize)); } else if (preallocationSize < 0) { ThrowHelper.ThrowArgumentOutOfRangeException_NeedNonNegNum(nameof(preallocationSize)); } // Write access validation if ((access & FileAccess.Write) == 0) { if (mode == FileMode.Truncate || mode == FileMode.CreateNew || mode == FileMode.Create || mode == FileMode.Append) { // No write access, mode and access disagree but flag access since mode comes first throw new ArgumentException(SR.Format(SR.Argument_InvalidFileModeAndAccessCombo, mode, access), nameof(access)); } } if ((access & FileAccess.Read) != 0 && mode == FileMode.Append) { throw new ArgumentException(SR.Argument_InvalidAppendMode, nameof(access)); } if (preallocationSize > 0) { ValidateArgumentsForPreallocation(mode, access); } SerializationGuard(access); } internal static void ValidateArgumentsForPreallocation(FileMode mode, FileAccess access) { // The user will be writing into the preallocated space. if ((access & FileAccess.Write) == 0) { throw new ArgumentException(SR.Argument_InvalidPreallocateAccess, nameof(access)); } // Only allow preallocation for newly created/overwritten files. // When we fail to preallocate, we'll remove the file. if (mode != FileMode.Create && mode != FileMode.CreateNew) { throw new ArgumentException(SR.Argument_InvalidPreallocateMode, nameof(mode)); } } internal static void SerializationGuard(FileAccess access) { if ((access & FileAccess.Write) == FileAccess.Write) { SerializationInfo.ThrowIfDeserializationInProgress("AllowFileWrites", ref s_cachedSerializationSwitch); } } } }
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/coreclr/nativeaot/System.Private.CoreLib/src/System/Runtime/Loader/AssemblyLoadContext.CoreRT.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Reflection; using System.Runtime.InteropServices; using Internal.Reflection.Augments; // This type is just stubbed out to be harmonious with CoreCLR namespace System.Runtime.Loader { public partial class AssemblyLoadContext { internal static Assembly[] GetLoadedAssemblies() => ReflectionAugments.ReflectionCoreCallbacks.GetLoadedAssemblies(); public Assembly LoadFromAssemblyName(AssemblyName assemblyName) { return Assembly.Load(assemblyName); } private static IntPtr InitializeAssemblyLoadContext(IntPtr ptrAssemblyLoadContext, bool fRepresentsTPALoadContext, bool isCollectible) { return IntPtr.Zero; } private static void PrepareForAssemblyLoadContextRelease(IntPtr ptrNativeAssemblyLoadContext, IntPtr ptrAssemblyLoadContextStrong) { } public static AssemblyLoadContext? GetLoadContext(Assembly assembly) { return Default; } public void SetProfileOptimizationRoot(string directoryPath) { } public void StartProfileOptimization(string profile) { } private Assembly InternalLoadFromPath(string? assemblyPath, string? nativeImagePath) { // TODO: This is not passing down the AssemblyLoadContext, // so it won't actually work properly when multiple assemblies with the same identity get loaded. return ReflectionAugments.ReflectionCoreCallbacks.Load(assemblyPath); } internal Assembly InternalLoad(byte[] arrAssembly, byte[] arrSymbols) { return ReflectionAugments.ReflectionCoreCallbacks.Load(arrAssembly, arrSymbols); } private void ReferenceUnreferencedEvents() { // Dummy method to avoid CS0067 "Event is never used" warning. // These are defined in the shared partition and it's not worth the ifdeffing. _ = AssemblyLoad; _ = ResourceResolve; _ = _resolving; _ = TypeResolve; _ = AssemblyResolve; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Reflection; using System.Runtime.InteropServices; using Internal.Reflection.Augments; // This type is just stubbed out to be harmonious with CoreCLR namespace System.Runtime.Loader { public partial class AssemblyLoadContext { internal static Assembly[] GetLoadedAssemblies() => ReflectionAugments.ReflectionCoreCallbacks.GetLoadedAssemblies(); public Assembly LoadFromAssemblyName(AssemblyName assemblyName) { return Assembly.Load(assemblyName); } private static IntPtr InitializeAssemblyLoadContext(IntPtr ptrAssemblyLoadContext, bool fRepresentsTPALoadContext, bool isCollectible) { return IntPtr.Zero; } private static void PrepareForAssemblyLoadContextRelease(IntPtr ptrNativeAssemblyLoadContext, IntPtr ptrAssemblyLoadContextStrong) { } public static AssemblyLoadContext? GetLoadContext(Assembly assembly) { return Default; } public void SetProfileOptimizationRoot(string directoryPath) { } public void StartProfileOptimization(string profile) { } private Assembly InternalLoadFromPath(string? assemblyPath, string? nativeImagePath) { // TODO: This is not passing down the AssemblyLoadContext, // so it won't actually work properly when multiple assemblies with the same identity get loaded. return ReflectionAugments.ReflectionCoreCallbacks.Load(assemblyPath); } internal Assembly InternalLoad(byte[] arrAssembly, byte[] arrSymbols) { return ReflectionAugments.ReflectionCoreCallbacks.Load(arrAssembly, arrSymbols); } private void ReferenceUnreferencedEvents() { // Dummy method to avoid CS0067 "Event is never used" warning. // These are defined in the shared partition and it's not worth the ifdeffing. _ = AssemblyLoad; _ = ResourceResolve; _ = _resolving; _ = TypeResolve; _ = AssemblyResolve; } } }
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest901/Generated901.il
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. .assembly extern mscorlib { .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) .ver 4:0:0:0 } .assembly extern TestFramework { .publickeytoken = ( B0 3F 5F 7F 11 D5 0A 3A ) } //TYPES IN FORWARDER ASSEMBLIES: //TEST ASSEMBLY: .assembly Generated901 { .hash algorithm 0x00008004 } .assembly extern xunit.core {} .class public BaseClass0 { .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } } .class public BaseClass1 extends BaseClass0 { .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void BaseClass0::.ctor() ret } } .class public G3_C1373`1<T0> extends class G2_C400`2<class BaseClass1,class BaseClass0> implements class IBase2`2<class BaseClass0,class BaseClass1> { .method public hidebysig newslot virtual instance string Method7<M0>() cil managed noinlining { ldstr "G3_C1373::Method7.15823<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string ClassMethod4133() cil managed noinlining { ldstr "G3_C1373::ClassMethod4133.15824()" ret } .method public hidebysig newslot virtual instance string ClassMethod4134<M0>() cil managed noinlining { ldstr "G3_C1373::ClassMethod4134.15825<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string 'G2_C400<class BaseClass1,class BaseClass0>.ClassMethod2150'() cil managed noinlining { .override method instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod2150() ldstr "G3_C1373::ClassMethod2150.MI.15826()" ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void class G2_C400`2<class BaseClass1,class BaseClass0>::.ctor() ret } } .class public abstract G2_C400`2<T0, T1> extends class G1_C8`2<class BaseClass0,class BaseClass0> implements class IBase2`2<class BaseClass1,class BaseClass1>, class IBase1`1<class BaseClass0> { .method public hidebysig virtual instance string Method7<M0>() cil managed noinlining { ldstr "G2_C400::Method7.8555<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string 'IBase2<class BaseClass1,class BaseClass1>.Method7'<M0>() cil managed noinlining { .override method instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<[1]>() ldstr "G2_C400::Method7.MI.8556<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string Method4() cil managed noinlining { ldstr "G2_C400::Method4.8557()" ret } .method public hidebysig newslot virtual instance string 'IBase1<class BaseClass0>.Method4'() cil managed noinlining { .override method instance string class IBase1`1<class BaseClass0>::Method4() ldstr "G2_C400::Method4.MI.8558()" ret } .method public hidebysig virtual instance string Method5() cil managed noinlining { ldstr "G2_C400::Method5.8559()" ret } .method public hidebysig newslot virtual instance string 'IBase1<class BaseClass0>.Method5'() cil managed noinlining { .override method instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C400::Method5.MI.8560()" ret } .method public hidebysig newslot virtual instance string Method6<M0>() cil managed noinlining { ldstr "G2_C400::Method6.8561<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string ClassMethod2150() cil managed noinlining { ldstr "G2_C400::ClassMethod2150.8562()" ret } .method public hidebysig newslot virtual instance string 'G1_C8<class BaseClass0,class BaseClass0>.ClassMethod1333'() cil managed noinlining { .override method instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1333() ldstr "G2_C400::ClassMethod1333.MI.8563()" ret } .method public hidebysig newslot virtual instance string 'G1_C8<class BaseClass0,class BaseClass0>.ClassMethod1335'<M0>() cil managed noinlining { .override method instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1335<[1]>() ldstr "G2_C400::ClassMethod1335.MI.8564<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void class G1_C8`2<class BaseClass0,class BaseClass0>::.ctor() ret } } .class interface public abstract IBase2`2<+T0, -T1> { .method public hidebysig newslot abstract virtual instance string Method7<M0>() cil managed { } } .class public G1_C8`2<T0, T1> implements class IBase2`2<!T0,!T1>, IBase0 { .method public hidebysig virtual instance string Method7<M0>() cil managed noinlining { ldstr "G1_C8::Method7.4821<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string 'IBase2<T0,T1>.Method7'<M0>() cil managed noinlining { .override method instance string class IBase2`2<!T0,!T1>::Method7<[1]>() ldstr "G1_C8::Method7.MI.4822<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string Method0() cil managed noinlining { ldstr "G1_C8::Method0.4823()" ret } .method public hidebysig newslot virtual instance string 'IBase0.Method0'() cil managed noinlining { .override method instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ret } .method public hidebysig virtual instance string Method1() cil managed noinlining { ldstr "G1_C8::Method1.4825()" ret } .method public hidebysig newslot virtual instance string Method2<M0>() cil managed noinlining { ldstr "G1_C8::Method2.4826<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string 'IBase0.Method2'<M0>() cil managed noinlining { .override method instance string IBase0::Method2<[1]>() ldstr "G1_C8::Method2.MI.4827<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string Method3<M0>() cil managed noinlining { ldstr "G1_C8::Method3.4828<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string ClassMethod1332() cil managed noinlining { ldstr "G1_C8::ClassMethod1332.4829()" ret } .method public hidebysig newslot virtual instance string ClassMethod1333() cil managed noinlining { ldstr "G1_C8::ClassMethod1333.4830()" ret } .method public hidebysig newslot virtual instance string ClassMethod1334<M0>() cil managed noinlining { ldstr "G1_C8::ClassMethod1334.4831<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string ClassMethod1335<M0>() cil managed noinlining { ldstr "G1_C8::ClassMethod1335.4832<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } } .class interface public abstract IBase1`1<+T0> { .method public hidebysig newslot abstract virtual instance string Method4() cil managed { } .method public hidebysig newslot abstract virtual instance string Method5() cil managed { } .method public hidebysig newslot abstract virtual instance string Method6<M0>() cil managed { } } .class interface public abstract IBase0 { .method public hidebysig newslot abstract virtual instance string Method0() cil managed { } .method public hidebysig newslot abstract virtual instance string Method1() cil managed { } .method public hidebysig newslot abstract virtual instance string Method2<M0>() cil managed { } .method public hidebysig newslot abstract virtual instance string Method3<M0>() cil managed { } } .class public auto ansi beforefieldinit Generated901 { .method static void M.BaseClass0<(BaseClass0)W>(!!W inst, string exp) cil managed { .maxstack 5 .locals init (string[] actualResults) ldc.i4.s 0 newarr string stloc.s actualResults ldarg.1 ldstr "M.BaseClass0<(BaseClass0)W>(!!W inst, string exp)" ldc.i4.s 0 ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.BaseClass1<(BaseClass1)W>(!!W inst, string exp) cil managed { .maxstack 5 .locals init (string[] actualResults) ldc.i4.s 0 newarr string stloc.s actualResults ldarg.1 ldstr "M.BaseClass1<(BaseClass1)W>(!!W inst, string exp)" ldc.i4.s 0 ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G3_C1373.T<T0,(class G3_C1373`1<!!T0>)W>(!!W 'inst', string exp) cil managed { .maxstack 20 .locals init (string[] actualResults) ldc.i4.s 15 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1373.T<T0,(class G3_C1373`1<!!T0>)W>(!!W 'inst', string exp)" ldc.i4.s 15 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<!!T0>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<!!T0>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<!!T0>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<!!T0>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<!!T0>::ClassMethod2150() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<!!T0>::ClassMethod4133() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<!!T0>::ClassMethod4134<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<!!T0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<!!T0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<!!T0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<!!T0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<!!T0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<!!T0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<!!T0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<!!T0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G3_C1373.A<(class G3_C1373`1<class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 20 .locals init (string[] actualResults) ldc.i4.s 15 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1373.A<(class G3_C1373`1<class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 15 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass0>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass0>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass0>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass0>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass0>::ClassMethod2150() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass0>::ClassMethod4133() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass0>::ClassMethod4134<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G3_C1373.B<(class G3_C1373`1<class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 20 .locals init (string[] actualResults) ldc.i4.s 15 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1373.B<(class G3_C1373`1<class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 15 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass1>::ClassMethod2150() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass1>::ClassMethod4133() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass1>::ClassMethod4134<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C400.T.T<T0,T1,(class G2_C400`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 18 .locals init (string[] actualResults) ldc.i4.s 13 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C400.T.T<T0,T1,(class G2_C400`2<!!T0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 13 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<!!T0,!!T1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<!!T0,!!T1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<!!T0,!!T1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<!!T0,!!T1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<!!T0,!!T1>::ClassMethod2150() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<!!T0,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<!!T0,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<!!T0,!!T1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<!!T0,!!T1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<!!T0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<!!T0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<!!T0,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<!!T0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C400.A.T<T1,(class G2_C400`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 18 .locals init (string[] actualResults) ldc.i4.s 13 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C400.A.T<T1,(class G2_C400`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 13 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,!!T1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,!!T1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,!!T1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,!!T1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,!!T1>::ClassMethod2150() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,!!T1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,!!T1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C400.A.A<(class G2_C400`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 18 .locals init (string[] actualResults) ldc.i4.s 13 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C400.A.A<(class G2_C400`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 13 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass0>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass0>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass0>::ClassMethod2150() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C400.A.B<(class G2_C400`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 18 .locals init (string[] actualResults) ldc.i4.s 13 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C400.A.B<(class G2_C400`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 13 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass1>::ClassMethod2150() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C400.B.T<T1,(class G2_C400`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 18 .locals init (string[] actualResults) ldc.i4.s 13 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C400.B.T<T1,(class G2_C400`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 13 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,!!T1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,!!T1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,!!T1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,!!T1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,!!T1>::ClassMethod2150() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,!!T1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,!!T1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C400.B.A<(class G2_C400`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 18 .locals init (string[] actualResults) ldc.i4.s 13 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C400.B.A<(class G2_C400`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 13 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod2150() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C400.B.B<(class G2_C400`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 18 .locals init (string[] actualResults) ldc.i4.s 13 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C400.B.B<(class G2_C400`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 13 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass1>::ClassMethod2150() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<!!T0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass1,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C8.T.T<T0,T1,(class G1_C8`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 14 .locals init (string[] actualResults) ldc.i4.s 9 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C8.T.T<T0,T1,(class G1_C8`2<!!T0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 9 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C8.A.T<T1,(class G1_C8`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 14 .locals init (string[] actualResults) ldc.i4.s 9 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C8.A.T<T1,(class G1_C8`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 9 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C8.A.A<(class G1_C8`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 14 .locals init (string[] actualResults) ldc.i4.s 9 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C8.A.A<(class G1_C8`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 9 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C8.A.B<(class G1_C8`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 14 .locals init (string[] actualResults) ldc.i4.s 9 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C8.A.B<(class G1_C8`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 9 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C8.B.T<T1,(class G1_C8`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 14 .locals init (string[] actualResults) ldc.i4.s 9 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C8.B.T<T1,(class G1_C8`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 9 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C8.B.A<(class G1_C8`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 14 .locals init (string[] actualResults) ldc.i4.s 9 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C8.B.A<(class G1_C8`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 9 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C8.B.B<(class G1_C8`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 14 .locals init (string[] actualResults) ldc.i4.s 9 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C8.B.B<(class G1_C8`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 9 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase1.T<T0,(class IBase1`1<!!T0>)W>(!!W 'inst', string exp) cil managed { .maxstack 8 .locals init (string[] actualResults) ldc.i4.s 3 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase1.T<T0,(class IBase1`1<!!T0>)W>(!!W 'inst', string exp)" ldc.i4.s 3 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<!!T0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<!!T0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<!!T0>::Method6<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase1.A<(class IBase1`1<class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 8 .locals init (string[] actualResults) ldc.i4.s 3 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase1.A<(class IBase1`1<class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 3 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase1.B<(class IBase1`1<class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 8 .locals init (string[] actualResults) ldc.i4.s 3 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase1.B<(class IBase1`1<class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 3 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase0<(IBase0)W>(!!W inst, string exp) cil managed { .maxstack 9 .locals init (string[] actualResults) ldc.i4.s 4 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase0<(IBase0)W>(!!W inst, string exp)" ldc.i4.s 4 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string IBase0::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string IBase0::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string IBase0::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string IBase0::Method3<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method public hidebysig static void MethodCallingTest() cil managed { .maxstack 10 .locals init (object V_0) ldstr "========================== Method Calling Test ==========================" call void [mscorlib]System.Console::WriteLine(string) newobj instance void class G3_C1373`1<class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() ldstr "G2_C400::ClassMethod1335.MI.8564<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1333() ldstr "G2_C400::ClassMethod1333.MI.8563()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C400::Method7.8555<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G3_C1373::Method7.15823<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod2150() ldstr "G3_C1373::ClassMethod2150.MI.15826()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G2_C400::Method6.8561<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G2_C400::Method5.8559()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G2_C400::Method4.8557()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C400::Method7.8555<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() ldstr "G2_C400::ClassMethod1335.MI.8564<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1333() ldstr "G2_C400::ClassMethod1333.MI.8563()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C400::Method7.MI.8556<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass0>::Method4() ldstr "G2_C400::Method4.MI.8558()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C400::Method5.MI.8560()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G2_C400::Method6.8561<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G3_C1373`1<class BaseClass0> callvirt instance string class G3_C1373`1<class BaseClass0>::ClassMethod4134<object>() ldstr "G3_C1373::ClassMethod4134.15825<System.Object>()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass0> callvirt instance string class G3_C1373`1<class BaseClass0>::ClassMethod4133() ldstr "G3_C1373::ClassMethod4133.15824()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass0> callvirt instance string class G3_C1373`1<class BaseClass0>::Method7<object>() ldstr "G3_C1373::Method7.15823<System.Object>()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass0> callvirt instance string class G3_C1373`1<class BaseClass0>::ClassMethod2150() ldstr "G3_C1373::ClassMethod2150.MI.15826()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass0> callvirt instance string class G3_C1373`1<class BaseClass0>::Method6<object>() ldstr "G2_C400::Method6.8561<System.Object>()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass0> callvirt instance string class G3_C1373`1<class BaseClass0>::Method5() ldstr "G2_C400::Method5.8559()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass0> callvirt instance string class G3_C1373`1<class BaseClass0>::Method4() ldstr "G2_C400::Method4.8557()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass0> callvirt instance string class G3_C1373`1<class BaseClass0>::ClassMethod1335<object>() ldstr "G2_C400::ClassMethod1335.MI.8564<System.Object>()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass0> callvirt instance string class G3_C1373`1<class BaseClass0>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass0> callvirt instance string class G3_C1373`1<class BaseClass0>::ClassMethod1333() ldstr "G2_C400::ClassMethod1333.MI.8563()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass0> callvirt instance string class G3_C1373`1<class BaseClass0>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass0> callvirt instance string class G3_C1373`1<class BaseClass0>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass0> callvirt instance string class G3_C1373`1<class BaseClass0>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass0> callvirt instance string class G3_C1373`1<class BaseClass0>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass0> callvirt instance string class G3_C1373`1<class BaseClass0>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G3_C1373`1<class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() ldstr "G2_C400::ClassMethod1335.MI.8564<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1333() ldstr "G2_C400::ClassMethod1333.MI.8563()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C400::Method7.8555<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G3_C1373::Method7.15823<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod2150() ldstr "G3_C1373::ClassMethod2150.MI.15826()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G2_C400::Method6.8561<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G2_C400::Method5.8559()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G2_C400::Method4.8557()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C400::Method7.8555<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() ldstr "G2_C400::ClassMethod1335.MI.8564<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1333() ldstr "G2_C400::ClassMethod1333.MI.8563()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C400::Method7.MI.8556<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass0>::Method4() ldstr "G2_C400::Method4.MI.8558()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C400::Method5.MI.8560()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G2_C400::Method6.8561<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G3_C1373`1<class BaseClass1> callvirt instance string class G3_C1373`1<class BaseClass1>::ClassMethod4134<object>() ldstr "G3_C1373::ClassMethod4134.15825<System.Object>()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass1> callvirt instance string class G3_C1373`1<class BaseClass1>::ClassMethod4133() ldstr "G3_C1373::ClassMethod4133.15824()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass1> callvirt instance string class G3_C1373`1<class BaseClass1>::Method7<object>() ldstr "G3_C1373::Method7.15823<System.Object>()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass1> callvirt instance string class G3_C1373`1<class BaseClass1>::ClassMethod2150() ldstr "G3_C1373::ClassMethod2150.MI.15826()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass1> callvirt instance string class G3_C1373`1<class BaseClass1>::Method6<object>() ldstr "G2_C400::Method6.8561<System.Object>()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass1> callvirt instance string class G3_C1373`1<class BaseClass1>::Method5() ldstr "G2_C400::Method5.8559()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass1> callvirt instance string class G3_C1373`1<class BaseClass1>::Method4() ldstr "G2_C400::Method4.8557()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass1> callvirt instance string class G3_C1373`1<class BaseClass1>::ClassMethod1335<object>() ldstr "G2_C400::ClassMethod1335.MI.8564<System.Object>()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass1> callvirt instance string class G3_C1373`1<class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass1> callvirt instance string class G3_C1373`1<class BaseClass1>::ClassMethod1333() ldstr "G2_C400::ClassMethod1333.MI.8563()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass1> callvirt instance string class G3_C1373`1<class BaseClass1>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass1> callvirt instance string class G3_C1373`1<class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass1> callvirt instance string class G3_C1373`1<class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass1> callvirt instance string class G3_C1373`1<class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass1> callvirt instance string class G3_C1373`1<class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G1_C8`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1333() ldstr "G1_C8::ClassMethod1333.4830()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G1_C8`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1333() ldstr "G1_C8::ClassMethod1333.4830()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G1_C8`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1333() ldstr "G1_C8::ClassMethod1333.4830()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G1_C8`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() ldstr "G1_C8::ClassMethod1333.4830()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static void ConstrainedCallsTest() cil managed { .maxstack 10 .locals init (object V_0) ldstr "========================== Constrained Calls Test ==========================" call void [mscorlib]System.Console::WriteLine(string) newobj instance void class G3_C1373`1<class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C400::ClassMethod1333.MI.8563()#G1_C8::ClassMethod1334.4831<System.Object>()#G2_C400::ClassMethod1335.MI.8564<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C400::Method7.8555<System.Object>()#" call void Generated901::M.G1_C8.T.T<class BaseClass0,class BaseClass0,class G3_C1373`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C400::ClassMethod1333.MI.8563()#G1_C8::ClassMethod1334.4831<System.Object>()#G2_C400::ClassMethod1335.MI.8564<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C400::Method7.8555<System.Object>()#" call void Generated901::M.G1_C8.A.T<class BaseClass0,class G3_C1373`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C400::ClassMethod1333.MI.8563()#G1_C8::ClassMethod1334.4831<System.Object>()#G2_C400::ClassMethod1335.MI.8564<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C400::Method7.8555<System.Object>()#" call void Generated901::M.G1_C8.A.A<class G3_C1373`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G3_C1373`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.A.T<class BaseClass0,class G3_C1373`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.A.A<class G3_C1373`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method0.MI.4824()#G1_C8::Method1.4825()#G1_C8::Method2.MI.4827<System.Object>()#G1_C8::Method3.4828<System.Object>()#" call void Generated901::M.IBase0<class G3_C1373`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G3_C1373::Method7.15823<System.Object>()#" call void Generated901::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G3_C1373`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G3_C1373::Method7.15823<System.Object>()#" call void Generated901::M.IBase2.A.T<class BaseClass1,class G3_C1373`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G3_C1373::Method7.15823<System.Object>()#" call void Generated901::M.IBase2.A.B<class G3_C1373`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C400::ClassMethod1333.MI.8563()#G1_C8::ClassMethod1334.4831<System.Object>()#G2_C400::ClassMethod1335.MI.8564<System.Object>()#G3_C1373::ClassMethod2150.MI.15826()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C400::Method4.8557()#G2_C400::Method5.8559()#G2_C400::Method6.8561<System.Object>()#G2_C400::Method7.8555<System.Object>()#" call void Generated901::M.G2_C400.T.T<class BaseClass1,class BaseClass0,class G3_C1373`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C400::ClassMethod1333.MI.8563()#G1_C8::ClassMethod1334.4831<System.Object>()#G2_C400::ClassMethod1335.MI.8564<System.Object>()#G3_C1373::ClassMethod2150.MI.15826()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C400::Method4.8557()#G2_C400::Method5.8559()#G2_C400::Method6.8561<System.Object>()#G2_C400::Method7.8555<System.Object>()#" call void Generated901::M.G2_C400.B.T<class BaseClass0,class G3_C1373`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C400::ClassMethod1333.MI.8563()#G1_C8::ClassMethod1334.4831<System.Object>()#G2_C400::ClassMethod1335.MI.8564<System.Object>()#G3_C1373::ClassMethod2150.MI.15826()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C400::Method4.8557()#G2_C400::Method5.8559()#G2_C400::Method6.8561<System.Object>()#G2_C400::Method7.8555<System.Object>()#" call void Generated901::M.G2_C400.B.A<class G3_C1373`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C400::Method7.MI.8556<System.Object>()#" call void Generated901::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G3_C1373`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C400::Method7.MI.8556<System.Object>()#" call void Generated901::M.IBase2.B.T<class BaseClass1,class G3_C1373`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C400::Method7.MI.8556<System.Object>()#" call void Generated901::M.IBase2.B.B<class G3_C1373`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C400::Method4.MI.8558()#G2_C400::Method5.MI.8560()#G2_C400::Method6.8561<System.Object>()#" call void Generated901::M.IBase1.T<class BaseClass0,class G3_C1373`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C400::Method4.MI.8558()#G2_C400::Method5.MI.8560()#G2_C400::Method6.8561<System.Object>()#" call void Generated901::M.IBase1.A<class G3_C1373`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C400::ClassMethod1333.MI.8563()#G1_C8::ClassMethod1334.4831<System.Object>()#G2_C400::ClassMethod1335.MI.8564<System.Object>()#G3_C1373::ClassMethod2150.MI.15826()#G3_C1373::ClassMethod4133.15824()#G3_C1373::ClassMethod4134.15825<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C400::Method4.8557()#G2_C400::Method5.8559()#G2_C400::Method6.8561<System.Object>()#G3_C1373::Method7.15823<System.Object>()#" call void Generated901::M.G3_C1373.T<class BaseClass0,class G3_C1373`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C400::ClassMethod1333.MI.8563()#G1_C8::ClassMethod1334.4831<System.Object>()#G2_C400::ClassMethod1335.MI.8564<System.Object>()#G3_C1373::ClassMethod2150.MI.15826()#G3_C1373::ClassMethod4133.15824()#G3_C1373::ClassMethod4134.15825<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C400::Method4.8557()#G2_C400::Method5.8559()#G2_C400::Method6.8561<System.Object>()#G3_C1373::Method7.15823<System.Object>()#" call void Generated901::M.G3_C1373.A<class G3_C1373`1<class BaseClass0>>(!!0,string) newobj instance void class G3_C1373`1<class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C400::ClassMethod1333.MI.8563()#G1_C8::ClassMethod1334.4831<System.Object>()#G2_C400::ClassMethod1335.MI.8564<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C400::Method7.8555<System.Object>()#" call void Generated901::M.G1_C8.T.T<class BaseClass0,class BaseClass0,class G3_C1373`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C400::ClassMethod1333.MI.8563()#G1_C8::ClassMethod1334.4831<System.Object>()#G2_C400::ClassMethod1335.MI.8564<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C400::Method7.8555<System.Object>()#" call void Generated901::M.G1_C8.A.T<class BaseClass0,class G3_C1373`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C400::ClassMethod1333.MI.8563()#G1_C8::ClassMethod1334.4831<System.Object>()#G2_C400::ClassMethod1335.MI.8564<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C400::Method7.8555<System.Object>()#" call void Generated901::M.G1_C8.A.A<class G3_C1373`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G3_C1373`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.A.T<class BaseClass0,class G3_C1373`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.A.A<class G3_C1373`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::Method0.MI.4824()#G1_C8::Method1.4825()#G1_C8::Method2.MI.4827<System.Object>()#G1_C8::Method3.4828<System.Object>()#" call void Generated901::M.IBase0<class G3_C1373`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G3_C1373::Method7.15823<System.Object>()#" call void Generated901::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G3_C1373`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G3_C1373::Method7.15823<System.Object>()#" call void Generated901::M.IBase2.A.T<class BaseClass1,class G3_C1373`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G3_C1373::Method7.15823<System.Object>()#" call void Generated901::M.IBase2.A.B<class G3_C1373`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C400::ClassMethod1333.MI.8563()#G1_C8::ClassMethod1334.4831<System.Object>()#G2_C400::ClassMethod1335.MI.8564<System.Object>()#G3_C1373::ClassMethod2150.MI.15826()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C400::Method4.8557()#G2_C400::Method5.8559()#G2_C400::Method6.8561<System.Object>()#G2_C400::Method7.8555<System.Object>()#" call void Generated901::M.G2_C400.T.T<class BaseClass1,class BaseClass0,class G3_C1373`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C400::ClassMethod1333.MI.8563()#G1_C8::ClassMethod1334.4831<System.Object>()#G2_C400::ClassMethod1335.MI.8564<System.Object>()#G3_C1373::ClassMethod2150.MI.15826()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C400::Method4.8557()#G2_C400::Method5.8559()#G2_C400::Method6.8561<System.Object>()#G2_C400::Method7.8555<System.Object>()#" call void Generated901::M.G2_C400.B.T<class BaseClass0,class G3_C1373`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C400::ClassMethod1333.MI.8563()#G1_C8::ClassMethod1334.4831<System.Object>()#G2_C400::ClassMethod1335.MI.8564<System.Object>()#G3_C1373::ClassMethod2150.MI.15826()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C400::Method4.8557()#G2_C400::Method5.8559()#G2_C400::Method6.8561<System.Object>()#G2_C400::Method7.8555<System.Object>()#" call void Generated901::M.G2_C400.B.A<class G3_C1373`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C400::Method7.MI.8556<System.Object>()#" call void Generated901::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G3_C1373`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C400::Method7.MI.8556<System.Object>()#" call void Generated901::M.IBase2.B.T<class BaseClass1,class G3_C1373`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C400::Method7.MI.8556<System.Object>()#" call void Generated901::M.IBase2.B.B<class G3_C1373`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C400::Method4.MI.8558()#G2_C400::Method5.MI.8560()#G2_C400::Method6.8561<System.Object>()#" call void Generated901::M.IBase1.T<class BaseClass0,class G3_C1373`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C400::Method4.MI.8558()#G2_C400::Method5.MI.8560()#G2_C400::Method6.8561<System.Object>()#" call void Generated901::M.IBase1.A<class G3_C1373`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C400::ClassMethod1333.MI.8563()#G1_C8::ClassMethod1334.4831<System.Object>()#G2_C400::ClassMethod1335.MI.8564<System.Object>()#G3_C1373::ClassMethod2150.MI.15826()#G3_C1373::ClassMethod4133.15824()#G3_C1373::ClassMethod4134.15825<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C400::Method4.8557()#G2_C400::Method5.8559()#G2_C400::Method6.8561<System.Object>()#G3_C1373::Method7.15823<System.Object>()#" call void Generated901::M.G3_C1373.T<class BaseClass1,class G3_C1373`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C400::ClassMethod1333.MI.8563()#G1_C8::ClassMethod1334.4831<System.Object>()#G2_C400::ClassMethod1335.MI.8564<System.Object>()#G3_C1373::ClassMethod2150.MI.15826()#G3_C1373::ClassMethod4133.15824()#G3_C1373::ClassMethod4134.15825<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C400::Method4.8557()#G2_C400::Method5.8559()#G2_C400::Method6.8561<System.Object>()#G3_C1373::Method7.15823<System.Object>()#" call void Generated901::M.G3_C1373.B<class G3_C1373`1<class BaseClass1>>(!!0,string) newobj instance void class G1_C8`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated901::M.G1_C8.T.T<class BaseClass0,class BaseClass0,class G1_C8`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated901::M.G1_C8.A.T<class BaseClass0,class G1_C8`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated901::M.G1_C8.A.A<class G1_C8`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G1_C8`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.A.T<class BaseClass0,class G1_C8`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.A.A<class G1_C8`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method0.MI.4824()#G1_C8::Method1.4825()#G1_C8::Method2.MI.4827<System.Object>()#G1_C8::Method3.4828<System.Object>()#" call void Generated901::M.IBase0<class G1_C8`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G1_C8`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.A.T<class BaseClass1,class G1_C8`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.A.B<class G1_C8`2<class BaseClass0,class BaseClass0>>(!!0,string) newobj instance void class G1_C8`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated901::M.G1_C8.T.T<class BaseClass0,class BaseClass1,class G1_C8`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated901::M.G1_C8.A.T<class BaseClass1,class G1_C8`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated901::M.G1_C8.A.B<class G1_C8`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G1_C8`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.A.T<class BaseClass1,class G1_C8`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.A.B<class G1_C8`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::Method0.MI.4824()#G1_C8::Method1.4825()#G1_C8::Method2.MI.4827<System.Object>()#G1_C8::Method3.4828<System.Object>()#" call void Generated901::M.IBase0<class G1_C8`2<class BaseClass0,class BaseClass1>>(!!0,string) newobj instance void class G1_C8`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated901::M.G1_C8.T.T<class BaseClass1,class BaseClass0,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated901::M.G1_C8.B.T<class BaseClass0,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated901::M.G1_C8.B.A<class G1_C8`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.B.T<class BaseClass0,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.B.A<class G1_C8`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method0.MI.4824()#G1_C8::Method1.4825()#G1_C8::Method2.MI.4827<System.Object>()#G1_C8::Method3.4828<System.Object>()#" call void Generated901::M.IBase0<class G1_C8`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.A.T<class BaseClass0,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.A.A<class G1_C8`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.A.T<class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.A.B<class G1_C8`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.B.T<class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.B.B<class G1_C8`2<class BaseClass1,class BaseClass0>>(!!0,string) newobj instance void class G1_C8`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated901::M.G1_C8.T.T<class BaseClass1,class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated901::M.G1_C8.B.T<class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated901::M.G1_C8.B.B<class G1_C8`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.B.T<class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.B.B<class G1_C8`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::Method0.MI.4824()#G1_C8::Method1.4825()#G1_C8::Method2.MI.4827<System.Object>()#G1_C8::Method3.4828<System.Object>()#" call void Generated901::M.IBase0<class G1_C8`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.A.T<class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.A.B<class G1_C8`2<class BaseClass1,class BaseClass1>>(!!0,string) ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static void StructConstrainedInterfaceCallsTest() cil managed { .maxstack 10 ldstr "===================== Struct Constrained Interface Calls Test =====================" call void [mscorlib]System.Console::WriteLine(string) ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static void CalliTest() cil managed { .maxstack 10 .locals init (object V_0) ldstr "========================== Method Calli Test ==========================" call void [mscorlib]System.Console::WriteLine(string) newobj instance void class G3_C1373`1<class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::ClassMethod1335.MI.8564<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1333() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::ClassMethod1333.MI.8563()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1332() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method3<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method2<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method1() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method0() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::Method7.8555<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method0() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method1() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method2<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method3<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G3_C1373::Method7.15823<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod2150() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G3_C1373::ClassMethod2150.MI.15826()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::Method6.8561<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::Method5.8559()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::Method4.8557()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::Method7.8555<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::ClassMethod1335.MI.8564<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1333() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::ClassMethod1333.MI.8563()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1332() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method3<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method2<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method1() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method0() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::Method7.MI.8556<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::Method4.MI.8558()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::Method5.MI.8560()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::Method6.8561<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass0>::ClassMethod4134<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G3_C1373::ClassMethod4134.15825<System.Object>()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass0>::ClassMethod4133() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G3_C1373::ClassMethod4133.15824()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass0>::Method7<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G3_C1373::Method7.15823<System.Object>()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass0>::ClassMethod2150() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G3_C1373::ClassMethod2150.MI.15826()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass0>::Method6<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::Method6.8561<System.Object>()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass0>::Method5() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::Method5.8559()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass0>::Method4() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::Method4.8557()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass0>::ClassMethod1335<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::ClassMethod1335.MI.8564<System.Object>()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass0>::ClassMethod1334<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass0>::ClassMethod1333() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::ClassMethod1333.MI.8563()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass0>::ClassMethod1332() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass0>::Method3<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass0>::Method2<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass0>::Method1() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass0>::Method0() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G3_C1373`1<class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::ClassMethod1335.MI.8564<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1333() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::ClassMethod1333.MI.8563()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1332() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method3<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method2<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method1() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method0() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::Method7.8555<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method0() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method1() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method2<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method3<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G3_C1373::Method7.15823<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod2150() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G3_C1373::ClassMethod2150.MI.15826()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::Method6.8561<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::Method5.8559()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::Method4.8557()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::Method7.8555<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::ClassMethod1335.MI.8564<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1333() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::ClassMethod1333.MI.8563()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1332() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method3<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method2<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method1() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method0() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::Method7.MI.8556<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::Method4.MI.8558()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::Method5.MI.8560()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::Method6.8561<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass1>::ClassMethod4134<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G3_C1373::ClassMethod4134.15825<System.Object>()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass1>::ClassMethod4133() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G3_C1373::ClassMethod4133.15824()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass1>::Method7<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G3_C1373::Method7.15823<System.Object>()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass1>::ClassMethod2150() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G3_C1373::ClassMethod2150.MI.15826()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass1>::Method6<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::Method6.8561<System.Object>()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass1>::Method5() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::Method5.8559()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass1>::Method4() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::Method4.8557()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass1>::ClassMethod1335<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::ClassMethod1335.MI.8564<System.Object>()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass1>::ClassMethod1334<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass1>::ClassMethod1333() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::ClassMethod1333.MI.8563()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass1>::ClassMethod1332() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass1>::Method3<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass1>::Method2<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass1>::Method1() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass1>::Method0() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G1_C8`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1333() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1333.4830()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1332() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method3<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method2<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method1() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method0() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method0() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method1() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method2<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method3<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G1_C8`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1335<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1334<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1333() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1333.4830()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1332() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method3<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method2<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method1() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method0() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method0() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method1() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method2<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method3<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G1_C8`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1333() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1333.4830()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1332() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method3<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method2<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method1() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method0() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method0() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method1() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method2<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method3<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G1_C8`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1333.4830()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method0() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method1() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method2<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method3<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static int32 Main() cil managed { .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = ( 01 00 00 00 ) .entrypoint .maxstack 10 call void Generated901::MethodCallingTest() call void Generated901::ConstrainedCallsTest() call void Generated901::StructConstrainedInterfaceCallsTest() call void Generated901::CalliTest() ldc.i4 100 ret } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. .assembly extern mscorlib { .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) .ver 4:0:0:0 } .assembly extern TestFramework { .publickeytoken = ( B0 3F 5F 7F 11 D5 0A 3A ) } //TYPES IN FORWARDER ASSEMBLIES: //TEST ASSEMBLY: .assembly Generated901 { .hash algorithm 0x00008004 } .assembly extern xunit.core {} .class public BaseClass0 { .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } } .class public BaseClass1 extends BaseClass0 { .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void BaseClass0::.ctor() ret } } .class public G3_C1373`1<T0> extends class G2_C400`2<class BaseClass1,class BaseClass0> implements class IBase2`2<class BaseClass0,class BaseClass1> { .method public hidebysig newslot virtual instance string Method7<M0>() cil managed noinlining { ldstr "G3_C1373::Method7.15823<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string ClassMethod4133() cil managed noinlining { ldstr "G3_C1373::ClassMethod4133.15824()" ret } .method public hidebysig newslot virtual instance string ClassMethod4134<M0>() cil managed noinlining { ldstr "G3_C1373::ClassMethod4134.15825<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string 'G2_C400<class BaseClass1,class BaseClass0>.ClassMethod2150'() cil managed noinlining { .override method instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod2150() ldstr "G3_C1373::ClassMethod2150.MI.15826()" ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void class G2_C400`2<class BaseClass1,class BaseClass0>::.ctor() ret } } .class public abstract G2_C400`2<T0, T1> extends class G1_C8`2<class BaseClass0,class BaseClass0> implements class IBase2`2<class BaseClass1,class BaseClass1>, class IBase1`1<class BaseClass0> { .method public hidebysig virtual instance string Method7<M0>() cil managed noinlining { ldstr "G2_C400::Method7.8555<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string 'IBase2<class BaseClass1,class BaseClass1>.Method7'<M0>() cil managed noinlining { .override method instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<[1]>() ldstr "G2_C400::Method7.MI.8556<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string Method4() cil managed noinlining { ldstr "G2_C400::Method4.8557()" ret } .method public hidebysig newslot virtual instance string 'IBase1<class BaseClass0>.Method4'() cil managed noinlining { .override method instance string class IBase1`1<class BaseClass0>::Method4() ldstr "G2_C400::Method4.MI.8558()" ret } .method public hidebysig virtual instance string Method5() cil managed noinlining { ldstr "G2_C400::Method5.8559()" ret } .method public hidebysig newslot virtual instance string 'IBase1<class BaseClass0>.Method5'() cil managed noinlining { .override method instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C400::Method5.MI.8560()" ret } .method public hidebysig newslot virtual instance string Method6<M0>() cil managed noinlining { ldstr "G2_C400::Method6.8561<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string ClassMethod2150() cil managed noinlining { ldstr "G2_C400::ClassMethod2150.8562()" ret } .method public hidebysig newslot virtual instance string 'G1_C8<class BaseClass0,class BaseClass0>.ClassMethod1333'() cil managed noinlining { .override method instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1333() ldstr "G2_C400::ClassMethod1333.MI.8563()" ret } .method public hidebysig newslot virtual instance string 'G1_C8<class BaseClass0,class BaseClass0>.ClassMethod1335'<M0>() cil managed noinlining { .override method instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1335<[1]>() ldstr "G2_C400::ClassMethod1335.MI.8564<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void class G1_C8`2<class BaseClass0,class BaseClass0>::.ctor() ret } } .class interface public abstract IBase2`2<+T0, -T1> { .method public hidebysig newslot abstract virtual instance string Method7<M0>() cil managed { } } .class public G1_C8`2<T0, T1> implements class IBase2`2<!T0,!T1>, IBase0 { .method public hidebysig virtual instance string Method7<M0>() cil managed noinlining { ldstr "G1_C8::Method7.4821<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string 'IBase2<T0,T1>.Method7'<M0>() cil managed noinlining { .override method instance string class IBase2`2<!T0,!T1>::Method7<[1]>() ldstr "G1_C8::Method7.MI.4822<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string Method0() cil managed noinlining { ldstr "G1_C8::Method0.4823()" ret } .method public hidebysig newslot virtual instance string 'IBase0.Method0'() cil managed noinlining { .override method instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ret } .method public hidebysig virtual instance string Method1() cil managed noinlining { ldstr "G1_C8::Method1.4825()" ret } .method public hidebysig newslot virtual instance string Method2<M0>() cil managed noinlining { ldstr "G1_C8::Method2.4826<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string 'IBase0.Method2'<M0>() cil managed noinlining { .override method instance string IBase0::Method2<[1]>() ldstr "G1_C8::Method2.MI.4827<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string Method3<M0>() cil managed noinlining { ldstr "G1_C8::Method3.4828<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string ClassMethod1332() cil managed noinlining { ldstr "G1_C8::ClassMethod1332.4829()" ret } .method public hidebysig newslot virtual instance string ClassMethod1333() cil managed noinlining { ldstr "G1_C8::ClassMethod1333.4830()" ret } .method public hidebysig newslot virtual instance string ClassMethod1334<M0>() cil managed noinlining { ldstr "G1_C8::ClassMethod1334.4831<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string ClassMethod1335<M0>() cil managed noinlining { ldstr "G1_C8::ClassMethod1335.4832<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } } .class interface public abstract IBase1`1<+T0> { .method public hidebysig newslot abstract virtual instance string Method4() cil managed { } .method public hidebysig newslot abstract virtual instance string Method5() cil managed { } .method public hidebysig newslot abstract virtual instance string Method6<M0>() cil managed { } } .class interface public abstract IBase0 { .method public hidebysig newslot abstract virtual instance string Method0() cil managed { } .method public hidebysig newslot abstract virtual instance string Method1() cil managed { } .method public hidebysig newslot abstract virtual instance string Method2<M0>() cil managed { } .method public hidebysig newslot abstract virtual instance string Method3<M0>() cil managed { } } .class public auto ansi beforefieldinit Generated901 { .method static void M.BaseClass0<(BaseClass0)W>(!!W inst, string exp) cil managed { .maxstack 5 .locals init (string[] actualResults) ldc.i4.s 0 newarr string stloc.s actualResults ldarg.1 ldstr "M.BaseClass0<(BaseClass0)W>(!!W inst, string exp)" ldc.i4.s 0 ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.BaseClass1<(BaseClass1)W>(!!W inst, string exp) cil managed { .maxstack 5 .locals init (string[] actualResults) ldc.i4.s 0 newarr string stloc.s actualResults ldarg.1 ldstr "M.BaseClass1<(BaseClass1)W>(!!W inst, string exp)" ldc.i4.s 0 ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G3_C1373.T<T0,(class G3_C1373`1<!!T0>)W>(!!W 'inst', string exp) cil managed { .maxstack 20 .locals init (string[] actualResults) ldc.i4.s 15 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1373.T<T0,(class G3_C1373`1<!!T0>)W>(!!W 'inst', string exp)" ldc.i4.s 15 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<!!T0>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<!!T0>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<!!T0>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<!!T0>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<!!T0>::ClassMethod2150() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<!!T0>::ClassMethod4133() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<!!T0>::ClassMethod4134<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<!!T0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<!!T0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<!!T0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<!!T0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<!!T0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<!!T0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<!!T0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<!!T0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G3_C1373.A<(class G3_C1373`1<class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 20 .locals init (string[] actualResults) ldc.i4.s 15 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1373.A<(class G3_C1373`1<class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 15 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass0>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass0>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass0>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass0>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass0>::ClassMethod2150() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass0>::ClassMethod4133() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass0>::ClassMethod4134<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G3_C1373.B<(class G3_C1373`1<class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 20 .locals init (string[] actualResults) ldc.i4.s 15 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1373.B<(class G3_C1373`1<class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 15 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass1>::ClassMethod2150() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass1>::ClassMethod4133() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass1>::ClassMethod4134<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1373`1<class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C400.T.T<T0,T1,(class G2_C400`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 18 .locals init (string[] actualResults) ldc.i4.s 13 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C400.T.T<T0,T1,(class G2_C400`2<!!T0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 13 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<!!T0,!!T1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<!!T0,!!T1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<!!T0,!!T1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<!!T0,!!T1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<!!T0,!!T1>::ClassMethod2150() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<!!T0,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<!!T0,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<!!T0,!!T1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<!!T0,!!T1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<!!T0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<!!T0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<!!T0,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<!!T0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C400.A.T<T1,(class G2_C400`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 18 .locals init (string[] actualResults) ldc.i4.s 13 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C400.A.T<T1,(class G2_C400`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 13 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,!!T1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,!!T1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,!!T1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,!!T1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,!!T1>::ClassMethod2150() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,!!T1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,!!T1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C400.A.A<(class G2_C400`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 18 .locals init (string[] actualResults) ldc.i4.s 13 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C400.A.A<(class G2_C400`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 13 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass0>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass0>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass0>::ClassMethod2150() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C400.A.B<(class G2_C400`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 18 .locals init (string[] actualResults) ldc.i4.s 13 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C400.A.B<(class G2_C400`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 13 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass1>::ClassMethod2150() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass0,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C400.B.T<T1,(class G2_C400`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 18 .locals init (string[] actualResults) ldc.i4.s 13 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C400.B.T<T1,(class G2_C400`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 13 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,!!T1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,!!T1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,!!T1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,!!T1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,!!T1>::ClassMethod2150() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,!!T1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,!!T1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C400.B.A<(class G2_C400`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 18 .locals init (string[] actualResults) ldc.i4.s 13 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C400.B.A<(class G2_C400`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 13 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod2150() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C400.B.B<(class G2_C400`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 18 .locals init (string[] actualResults) ldc.i4.s 13 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C400.B.B<(class G2_C400`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 13 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass1>::ClassMethod2150() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<!!T0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass1,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C8.T.T<T0,T1,(class G1_C8`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 14 .locals init (string[] actualResults) ldc.i4.s 9 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C8.T.T<T0,T1,(class G1_C8`2<!!T0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 9 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C8.A.T<T1,(class G1_C8`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 14 .locals init (string[] actualResults) ldc.i4.s 9 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C8.A.T<T1,(class G1_C8`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 9 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C8.A.A<(class G1_C8`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 14 .locals init (string[] actualResults) ldc.i4.s 9 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C8.A.A<(class G1_C8`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 9 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C8.A.B<(class G1_C8`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 14 .locals init (string[] actualResults) ldc.i4.s 9 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C8.A.B<(class G1_C8`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 9 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C8.B.T<T1,(class G1_C8`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 14 .locals init (string[] actualResults) ldc.i4.s 9 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C8.B.T<T1,(class G1_C8`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 9 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C8.B.A<(class G1_C8`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 14 .locals init (string[] actualResults) ldc.i4.s 9 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C8.B.A<(class G1_C8`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 9 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C8.B.B<(class G1_C8`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 14 .locals init (string[] actualResults) ldc.i4.s 9 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C8.B.B<(class G1_C8`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 9 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase1.T<T0,(class IBase1`1<!!T0>)W>(!!W 'inst', string exp) cil managed { .maxstack 8 .locals init (string[] actualResults) ldc.i4.s 3 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase1.T<T0,(class IBase1`1<!!T0>)W>(!!W 'inst', string exp)" ldc.i4.s 3 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<!!T0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<!!T0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<!!T0>::Method6<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase1.A<(class IBase1`1<class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 8 .locals init (string[] actualResults) ldc.i4.s 3 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase1.A<(class IBase1`1<class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 3 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase1.B<(class IBase1`1<class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 8 .locals init (string[] actualResults) ldc.i4.s 3 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase1.B<(class IBase1`1<class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 3 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase0<(IBase0)W>(!!W inst, string exp) cil managed { .maxstack 9 .locals init (string[] actualResults) ldc.i4.s 4 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase0<(IBase0)W>(!!W inst, string exp)" ldc.i4.s 4 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string IBase0::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string IBase0::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string IBase0::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string IBase0::Method3<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method public hidebysig static void MethodCallingTest() cil managed { .maxstack 10 .locals init (object V_0) ldstr "========================== Method Calling Test ==========================" call void [mscorlib]System.Console::WriteLine(string) newobj instance void class G3_C1373`1<class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() ldstr "G2_C400::ClassMethod1335.MI.8564<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1333() ldstr "G2_C400::ClassMethod1333.MI.8563()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C400::Method7.8555<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G3_C1373::Method7.15823<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod2150() ldstr "G3_C1373::ClassMethod2150.MI.15826()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G2_C400::Method6.8561<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G2_C400::Method5.8559()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G2_C400::Method4.8557()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C400::Method7.8555<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() ldstr "G2_C400::ClassMethod1335.MI.8564<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1333() ldstr "G2_C400::ClassMethod1333.MI.8563()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C400::Method7.MI.8556<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass0>::Method4() ldstr "G2_C400::Method4.MI.8558()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C400::Method5.MI.8560()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G2_C400::Method6.8561<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G3_C1373`1<class BaseClass0> callvirt instance string class G3_C1373`1<class BaseClass0>::ClassMethod4134<object>() ldstr "G3_C1373::ClassMethod4134.15825<System.Object>()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass0> callvirt instance string class G3_C1373`1<class BaseClass0>::ClassMethod4133() ldstr "G3_C1373::ClassMethod4133.15824()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass0> callvirt instance string class G3_C1373`1<class BaseClass0>::Method7<object>() ldstr "G3_C1373::Method7.15823<System.Object>()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass0> callvirt instance string class G3_C1373`1<class BaseClass0>::ClassMethod2150() ldstr "G3_C1373::ClassMethod2150.MI.15826()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass0> callvirt instance string class G3_C1373`1<class BaseClass0>::Method6<object>() ldstr "G2_C400::Method6.8561<System.Object>()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass0> callvirt instance string class G3_C1373`1<class BaseClass0>::Method5() ldstr "G2_C400::Method5.8559()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass0> callvirt instance string class G3_C1373`1<class BaseClass0>::Method4() ldstr "G2_C400::Method4.8557()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass0> callvirt instance string class G3_C1373`1<class BaseClass0>::ClassMethod1335<object>() ldstr "G2_C400::ClassMethod1335.MI.8564<System.Object>()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass0> callvirt instance string class G3_C1373`1<class BaseClass0>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass0> callvirt instance string class G3_C1373`1<class BaseClass0>::ClassMethod1333() ldstr "G2_C400::ClassMethod1333.MI.8563()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass0> callvirt instance string class G3_C1373`1<class BaseClass0>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass0> callvirt instance string class G3_C1373`1<class BaseClass0>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass0> callvirt instance string class G3_C1373`1<class BaseClass0>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass0> callvirt instance string class G3_C1373`1<class BaseClass0>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass0> callvirt instance string class G3_C1373`1<class BaseClass0>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G3_C1373`1<class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() ldstr "G2_C400::ClassMethod1335.MI.8564<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1333() ldstr "G2_C400::ClassMethod1333.MI.8563()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C400::Method7.8555<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G3_C1373::Method7.15823<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod2150() ldstr "G3_C1373::ClassMethod2150.MI.15826()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G2_C400::Method6.8561<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G2_C400::Method5.8559()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G2_C400::Method4.8557()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C400::Method7.8555<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() ldstr "G2_C400::ClassMethod1335.MI.8564<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1333() ldstr "G2_C400::ClassMethod1333.MI.8563()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C400`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C400::Method7.MI.8556<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass0>::Method4() ldstr "G2_C400::Method4.MI.8558()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C400::Method5.MI.8560()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G2_C400::Method6.8561<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G3_C1373`1<class BaseClass1> callvirt instance string class G3_C1373`1<class BaseClass1>::ClassMethod4134<object>() ldstr "G3_C1373::ClassMethod4134.15825<System.Object>()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass1> callvirt instance string class G3_C1373`1<class BaseClass1>::ClassMethod4133() ldstr "G3_C1373::ClassMethod4133.15824()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass1> callvirt instance string class G3_C1373`1<class BaseClass1>::Method7<object>() ldstr "G3_C1373::Method7.15823<System.Object>()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass1> callvirt instance string class G3_C1373`1<class BaseClass1>::ClassMethod2150() ldstr "G3_C1373::ClassMethod2150.MI.15826()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass1> callvirt instance string class G3_C1373`1<class BaseClass1>::Method6<object>() ldstr "G2_C400::Method6.8561<System.Object>()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass1> callvirt instance string class G3_C1373`1<class BaseClass1>::Method5() ldstr "G2_C400::Method5.8559()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass1> callvirt instance string class G3_C1373`1<class BaseClass1>::Method4() ldstr "G2_C400::Method4.8557()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass1> callvirt instance string class G3_C1373`1<class BaseClass1>::ClassMethod1335<object>() ldstr "G2_C400::ClassMethod1335.MI.8564<System.Object>()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass1> callvirt instance string class G3_C1373`1<class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass1> callvirt instance string class G3_C1373`1<class BaseClass1>::ClassMethod1333() ldstr "G2_C400::ClassMethod1333.MI.8563()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass1> callvirt instance string class G3_C1373`1<class BaseClass1>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass1> callvirt instance string class G3_C1373`1<class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass1> callvirt instance string class G3_C1373`1<class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass1> callvirt instance string class G3_C1373`1<class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1373`1<class BaseClass1> callvirt instance string class G3_C1373`1<class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G1_C8`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1333() ldstr "G1_C8::ClassMethod1333.4830()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G1_C8`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1333() ldstr "G1_C8::ClassMethod1333.4830()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G1_C8`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1333() ldstr "G1_C8::ClassMethod1333.4830()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G1_C8`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() ldstr "G1_C8::ClassMethod1333.4830()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static void ConstrainedCallsTest() cil managed { .maxstack 10 .locals init (object V_0) ldstr "========================== Constrained Calls Test ==========================" call void [mscorlib]System.Console::WriteLine(string) newobj instance void class G3_C1373`1<class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C400::ClassMethod1333.MI.8563()#G1_C8::ClassMethod1334.4831<System.Object>()#G2_C400::ClassMethod1335.MI.8564<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C400::Method7.8555<System.Object>()#" call void Generated901::M.G1_C8.T.T<class BaseClass0,class BaseClass0,class G3_C1373`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C400::ClassMethod1333.MI.8563()#G1_C8::ClassMethod1334.4831<System.Object>()#G2_C400::ClassMethod1335.MI.8564<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C400::Method7.8555<System.Object>()#" call void Generated901::M.G1_C8.A.T<class BaseClass0,class G3_C1373`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C400::ClassMethod1333.MI.8563()#G1_C8::ClassMethod1334.4831<System.Object>()#G2_C400::ClassMethod1335.MI.8564<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C400::Method7.8555<System.Object>()#" call void Generated901::M.G1_C8.A.A<class G3_C1373`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G3_C1373`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.A.T<class BaseClass0,class G3_C1373`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.A.A<class G3_C1373`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method0.MI.4824()#G1_C8::Method1.4825()#G1_C8::Method2.MI.4827<System.Object>()#G1_C8::Method3.4828<System.Object>()#" call void Generated901::M.IBase0<class G3_C1373`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G3_C1373::Method7.15823<System.Object>()#" call void Generated901::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G3_C1373`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G3_C1373::Method7.15823<System.Object>()#" call void Generated901::M.IBase2.A.T<class BaseClass1,class G3_C1373`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G3_C1373::Method7.15823<System.Object>()#" call void Generated901::M.IBase2.A.B<class G3_C1373`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C400::ClassMethod1333.MI.8563()#G1_C8::ClassMethod1334.4831<System.Object>()#G2_C400::ClassMethod1335.MI.8564<System.Object>()#G3_C1373::ClassMethod2150.MI.15826()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C400::Method4.8557()#G2_C400::Method5.8559()#G2_C400::Method6.8561<System.Object>()#G2_C400::Method7.8555<System.Object>()#" call void Generated901::M.G2_C400.T.T<class BaseClass1,class BaseClass0,class G3_C1373`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C400::ClassMethod1333.MI.8563()#G1_C8::ClassMethod1334.4831<System.Object>()#G2_C400::ClassMethod1335.MI.8564<System.Object>()#G3_C1373::ClassMethod2150.MI.15826()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C400::Method4.8557()#G2_C400::Method5.8559()#G2_C400::Method6.8561<System.Object>()#G2_C400::Method7.8555<System.Object>()#" call void Generated901::M.G2_C400.B.T<class BaseClass0,class G3_C1373`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C400::ClassMethod1333.MI.8563()#G1_C8::ClassMethod1334.4831<System.Object>()#G2_C400::ClassMethod1335.MI.8564<System.Object>()#G3_C1373::ClassMethod2150.MI.15826()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C400::Method4.8557()#G2_C400::Method5.8559()#G2_C400::Method6.8561<System.Object>()#G2_C400::Method7.8555<System.Object>()#" call void Generated901::M.G2_C400.B.A<class G3_C1373`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C400::Method7.MI.8556<System.Object>()#" call void Generated901::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G3_C1373`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C400::Method7.MI.8556<System.Object>()#" call void Generated901::M.IBase2.B.T<class BaseClass1,class G3_C1373`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C400::Method7.MI.8556<System.Object>()#" call void Generated901::M.IBase2.B.B<class G3_C1373`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C400::Method4.MI.8558()#G2_C400::Method5.MI.8560()#G2_C400::Method6.8561<System.Object>()#" call void Generated901::M.IBase1.T<class BaseClass0,class G3_C1373`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C400::Method4.MI.8558()#G2_C400::Method5.MI.8560()#G2_C400::Method6.8561<System.Object>()#" call void Generated901::M.IBase1.A<class G3_C1373`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C400::ClassMethod1333.MI.8563()#G1_C8::ClassMethod1334.4831<System.Object>()#G2_C400::ClassMethod1335.MI.8564<System.Object>()#G3_C1373::ClassMethod2150.MI.15826()#G3_C1373::ClassMethod4133.15824()#G3_C1373::ClassMethod4134.15825<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C400::Method4.8557()#G2_C400::Method5.8559()#G2_C400::Method6.8561<System.Object>()#G3_C1373::Method7.15823<System.Object>()#" call void Generated901::M.G3_C1373.T<class BaseClass0,class G3_C1373`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C400::ClassMethod1333.MI.8563()#G1_C8::ClassMethod1334.4831<System.Object>()#G2_C400::ClassMethod1335.MI.8564<System.Object>()#G3_C1373::ClassMethod2150.MI.15826()#G3_C1373::ClassMethod4133.15824()#G3_C1373::ClassMethod4134.15825<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C400::Method4.8557()#G2_C400::Method5.8559()#G2_C400::Method6.8561<System.Object>()#G3_C1373::Method7.15823<System.Object>()#" call void Generated901::M.G3_C1373.A<class G3_C1373`1<class BaseClass0>>(!!0,string) newobj instance void class G3_C1373`1<class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C400::ClassMethod1333.MI.8563()#G1_C8::ClassMethod1334.4831<System.Object>()#G2_C400::ClassMethod1335.MI.8564<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C400::Method7.8555<System.Object>()#" call void Generated901::M.G1_C8.T.T<class BaseClass0,class BaseClass0,class G3_C1373`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C400::ClassMethod1333.MI.8563()#G1_C8::ClassMethod1334.4831<System.Object>()#G2_C400::ClassMethod1335.MI.8564<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C400::Method7.8555<System.Object>()#" call void Generated901::M.G1_C8.A.T<class BaseClass0,class G3_C1373`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C400::ClassMethod1333.MI.8563()#G1_C8::ClassMethod1334.4831<System.Object>()#G2_C400::ClassMethod1335.MI.8564<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C400::Method7.8555<System.Object>()#" call void Generated901::M.G1_C8.A.A<class G3_C1373`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G3_C1373`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.A.T<class BaseClass0,class G3_C1373`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.A.A<class G3_C1373`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::Method0.MI.4824()#G1_C8::Method1.4825()#G1_C8::Method2.MI.4827<System.Object>()#G1_C8::Method3.4828<System.Object>()#" call void Generated901::M.IBase0<class G3_C1373`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G3_C1373::Method7.15823<System.Object>()#" call void Generated901::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G3_C1373`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G3_C1373::Method7.15823<System.Object>()#" call void Generated901::M.IBase2.A.T<class BaseClass1,class G3_C1373`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G3_C1373::Method7.15823<System.Object>()#" call void Generated901::M.IBase2.A.B<class G3_C1373`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C400::ClassMethod1333.MI.8563()#G1_C8::ClassMethod1334.4831<System.Object>()#G2_C400::ClassMethod1335.MI.8564<System.Object>()#G3_C1373::ClassMethod2150.MI.15826()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C400::Method4.8557()#G2_C400::Method5.8559()#G2_C400::Method6.8561<System.Object>()#G2_C400::Method7.8555<System.Object>()#" call void Generated901::M.G2_C400.T.T<class BaseClass1,class BaseClass0,class G3_C1373`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C400::ClassMethod1333.MI.8563()#G1_C8::ClassMethod1334.4831<System.Object>()#G2_C400::ClassMethod1335.MI.8564<System.Object>()#G3_C1373::ClassMethod2150.MI.15826()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C400::Method4.8557()#G2_C400::Method5.8559()#G2_C400::Method6.8561<System.Object>()#G2_C400::Method7.8555<System.Object>()#" call void Generated901::M.G2_C400.B.T<class BaseClass0,class G3_C1373`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C400::ClassMethod1333.MI.8563()#G1_C8::ClassMethod1334.4831<System.Object>()#G2_C400::ClassMethod1335.MI.8564<System.Object>()#G3_C1373::ClassMethod2150.MI.15826()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C400::Method4.8557()#G2_C400::Method5.8559()#G2_C400::Method6.8561<System.Object>()#G2_C400::Method7.8555<System.Object>()#" call void Generated901::M.G2_C400.B.A<class G3_C1373`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C400::Method7.MI.8556<System.Object>()#" call void Generated901::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G3_C1373`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C400::Method7.MI.8556<System.Object>()#" call void Generated901::M.IBase2.B.T<class BaseClass1,class G3_C1373`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C400::Method7.MI.8556<System.Object>()#" call void Generated901::M.IBase2.B.B<class G3_C1373`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C400::Method4.MI.8558()#G2_C400::Method5.MI.8560()#G2_C400::Method6.8561<System.Object>()#" call void Generated901::M.IBase1.T<class BaseClass0,class G3_C1373`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C400::Method4.MI.8558()#G2_C400::Method5.MI.8560()#G2_C400::Method6.8561<System.Object>()#" call void Generated901::M.IBase1.A<class G3_C1373`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C400::ClassMethod1333.MI.8563()#G1_C8::ClassMethod1334.4831<System.Object>()#G2_C400::ClassMethod1335.MI.8564<System.Object>()#G3_C1373::ClassMethod2150.MI.15826()#G3_C1373::ClassMethod4133.15824()#G3_C1373::ClassMethod4134.15825<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C400::Method4.8557()#G2_C400::Method5.8559()#G2_C400::Method6.8561<System.Object>()#G3_C1373::Method7.15823<System.Object>()#" call void Generated901::M.G3_C1373.T<class BaseClass1,class G3_C1373`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C400::ClassMethod1333.MI.8563()#G1_C8::ClassMethod1334.4831<System.Object>()#G2_C400::ClassMethod1335.MI.8564<System.Object>()#G3_C1373::ClassMethod2150.MI.15826()#G3_C1373::ClassMethod4133.15824()#G3_C1373::ClassMethod4134.15825<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C400::Method4.8557()#G2_C400::Method5.8559()#G2_C400::Method6.8561<System.Object>()#G3_C1373::Method7.15823<System.Object>()#" call void Generated901::M.G3_C1373.B<class G3_C1373`1<class BaseClass1>>(!!0,string) newobj instance void class G1_C8`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated901::M.G1_C8.T.T<class BaseClass0,class BaseClass0,class G1_C8`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated901::M.G1_C8.A.T<class BaseClass0,class G1_C8`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated901::M.G1_C8.A.A<class G1_C8`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G1_C8`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.A.T<class BaseClass0,class G1_C8`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.A.A<class G1_C8`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method0.MI.4824()#G1_C8::Method1.4825()#G1_C8::Method2.MI.4827<System.Object>()#G1_C8::Method3.4828<System.Object>()#" call void Generated901::M.IBase0<class G1_C8`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G1_C8`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.A.T<class BaseClass1,class G1_C8`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.A.B<class G1_C8`2<class BaseClass0,class BaseClass0>>(!!0,string) newobj instance void class G1_C8`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated901::M.G1_C8.T.T<class BaseClass0,class BaseClass1,class G1_C8`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated901::M.G1_C8.A.T<class BaseClass1,class G1_C8`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated901::M.G1_C8.A.B<class G1_C8`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G1_C8`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.A.T<class BaseClass1,class G1_C8`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.A.B<class G1_C8`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::Method0.MI.4824()#G1_C8::Method1.4825()#G1_C8::Method2.MI.4827<System.Object>()#G1_C8::Method3.4828<System.Object>()#" call void Generated901::M.IBase0<class G1_C8`2<class BaseClass0,class BaseClass1>>(!!0,string) newobj instance void class G1_C8`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated901::M.G1_C8.T.T<class BaseClass1,class BaseClass0,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated901::M.G1_C8.B.T<class BaseClass0,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated901::M.G1_C8.B.A<class G1_C8`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.B.T<class BaseClass0,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.B.A<class G1_C8`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method0.MI.4824()#G1_C8::Method1.4825()#G1_C8::Method2.MI.4827<System.Object>()#G1_C8::Method3.4828<System.Object>()#" call void Generated901::M.IBase0<class G1_C8`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.A.T<class BaseClass0,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.A.A<class G1_C8`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.A.T<class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.A.B<class G1_C8`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.B.T<class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.B.B<class G1_C8`2<class BaseClass1,class BaseClass0>>(!!0,string) newobj instance void class G1_C8`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated901::M.G1_C8.T.T<class BaseClass1,class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated901::M.G1_C8.B.T<class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated901::M.G1_C8.B.B<class G1_C8`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.B.T<class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.B.B<class G1_C8`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::Method0.MI.4824()#G1_C8::Method1.4825()#G1_C8::Method2.MI.4827<System.Object>()#G1_C8::Method3.4828<System.Object>()#" call void Generated901::M.IBase0<class G1_C8`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.A.T<class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated901::M.IBase2.A.B<class G1_C8`2<class BaseClass1,class BaseClass1>>(!!0,string) ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static void StructConstrainedInterfaceCallsTest() cil managed { .maxstack 10 ldstr "===================== Struct Constrained Interface Calls Test =====================" call void [mscorlib]System.Console::WriteLine(string) ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static void CalliTest() cil managed { .maxstack 10 .locals init (object V_0) ldstr "========================== Method Calli Test ==========================" call void [mscorlib]System.Console::WriteLine(string) newobj instance void class G3_C1373`1<class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::ClassMethod1335.MI.8564<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1333() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::ClassMethod1333.MI.8563()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1332() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method3<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method2<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method1() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method0() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::Method7.8555<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method0() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method1() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method2<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method3<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G3_C1373::Method7.15823<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod2150() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G3_C1373::ClassMethod2150.MI.15826()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::Method6.8561<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::Method5.8559()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::Method4.8557()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::Method7.8555<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::ClassMethod1335.MI.8564<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1333() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::ClassMethod1333.MI.8563()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1332() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method3<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method2<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method1() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method0() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::Method7.MI.8556<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::Method4.MI.8558()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::Method5.MI.8560()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::Method6.8561<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass0>::ClassMethod4134<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G3_C1373::ClassMethod4134.15825<System.Object>()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass0>::ClassMethod4133() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G3_C1373::ClassMethod4133.15824()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass0>::Method7<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G3_C1373::Method7.15823<System.Object>()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass0>::ClassMethod2150() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G3_C1373::ClassMethod2150.MI.15826()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass0>::Method6<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::Method6.8561<System.Object>()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass0>::Method5() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::Method5.8559()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass0>::Method4() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::Method4.8557()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass0>::ClassMethod1335<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::ClassMethod1335.MI.8564<System.Object>()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass0>::ClassMethod1334<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass0>::ClassMethod1333() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G2_C400::ClassMethod1333.MI.8563()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass0>::ClassMethod1332() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass0>::Method3<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass0>::Method2<object>() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass0>::Method1() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass0>::Method0() calli default string(class G3_C1373`1<class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G3_C1373`1<class BaseClass0> on type class G3_C1373`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G3_C1373`1<class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::ClassMethod1335.MI.8564<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1333() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::ClassMethod1333.MI.8563()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1332() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method3<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method2<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method1() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method0() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::Method7.8555<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method0() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method1() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method2<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method3<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G3_C1373::Method7.15823<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod2150() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G3_C1373::ClassMethod2150.MI.15826()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::Method6.8561<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::Method5.8559()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::Method4.8557()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::Method7.8555<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::ClassMethod1335.MI.8564<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1333() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::ClassMethod1333.MI.8563()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::ClassMethod1332() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method3<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method2<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method1() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C400`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C400`2<class BaseClass1,class BaseClass0>::Method0() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G2_C400`2<class BaseClass1,class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::Method7.MI.8556<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::Method4.MI.8558()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::Method5.MI.8560()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::Method6.8561<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass1>::ClassMethod4134<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G3_C1373::ClassMethod4134.15825<System.Object>()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass1>::ClassMethod4133() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G3_C1373::ClassMethod4133.15824()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass1>::Method7<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G3_C1373::Method7.15823<System.Object>()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass1>::ClassMethod2150() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G3_C1373::ClassMethod2150.MI.15826()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass1>::Method6<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::Method6.8561<System.Object>()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass1>::Method5() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::Method5.8559()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass1>::Method4() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::Method4.8557()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass1>::ClassMethod1335<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::ClassMethod1335.MI.8564<System.Object>()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass1>::ClassMethod1334<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass1>::ClassMethod1333() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G2_C400::ClassMethod1333.MI.8563()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass1>::ClassMethod1332() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass1>::Method3<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass1>::Method2<object>() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass1>::Method1() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1373`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1373`1<class BaseClass1>::Method0() calli default string(class G3_C1373`1<class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G3_C1373`1<class BaseClass1> on type class G3_C1373`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G1_C8`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1333() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1333.4830()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1332() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method3<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method2<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method1() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method0() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method0() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method1() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method2<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method3<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G1_C8`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1335<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1334<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1333() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1333.4830()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1332() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method3<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method2<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method1() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method0() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method0() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method1() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method2<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method3<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G1_C8`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1333() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1333.4830()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1332() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method3<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method2<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method1() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method0() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method0() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method1() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method2<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method3<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G1_C8`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1333.4830()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method0() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method1() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method2<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method3<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static int32 Main() cil managed { .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = ( 01 00 00 00 ) .entrypoint .maxstack 10 call void Generated901::MethodCallingTest() call void Generated901::ConstrainedCallsTest() call void Generated901::StructConstrainedInterfaceCallsTest() call void Generated901::CalliTest() ldc.i4 100 ret } }
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/tests/JIT/Directed/array-il/complex3.il
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. .assembly extern System.Console { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) .ver 4:0:0:0 } .assembly extern xunit.core {} .assembly extern legacy library mscorlib {} .assembly complex3 { } .class value public auto ansi sealed Yak { .field public int32 a .field private string foo .field public int32 b .method public instance void Do_Something() il managed { .maxstack 8 IL_0000: ldarg.0 IL_0001: ldarg.0 IL_0002: ldflda int32 Yak::a IL_0007: call instance string [mscorlib]System.Int32::ToString() IL_000c: stfld string Yak::foo IL_0011: ldarg.0 IL_0012: dup IL_0013: ldfld int32 Yak::b IL_0018: ldarg.0 IL_0019: ldfld int32 Yak::a IL_001e: add IL_001f: stfld int32 Yak::b IL_0024: ret } // end of method 'Yak::Do_Something' } // end of class 'Yak' .class auto ansi Complex2_Array_Test { .method public static int32 TestRank(value class Yak[,,,,,,] Odd_Variable) il managed { .maxstack 3 .locals (int32 V_0) IL_0000: ldstr "Rank is :" IL_0005: ldarg.0 IL_0006: callvirt instance int32 [mscorlib]System.Array::get_Rank() IL_000b: stloc.0 IL_000c: ldloca.s V_0 IL_000e: call instance string [mscorlib]System.Int32::ToString() IL_0013: call class System.String [mscorlib]System.String::Concat(class System.String,class System.String) IL_0018: call void [System.Console]System.Console::WriteLine(string) ldloc 0 IL_001d: ret } .method public static void test(value class Yak[0...,0...,0...,0...,0...,0...,0...] Odd_Variable) il managed { .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance int32 [mscorlib]System.Array::get_Length() IL_0006: call void [System.Console]System.Console::Write(int32) IL_000b: ret } // end of method 'Complex2_Array_Test::test' .method public static int32 Main(string[] args) il managed { .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = ( 01 00 00 00 ) .entrypoint .maxstack 9 .locals (int32 SIZE, int64 sum, value class Yak[0...,0...,0...,0...,0...,0...,0...] foo, int32 i, int32 j, int32 k, int32 l, int32 m, int32 n, int32 o, int32 V_10) IL_0000: ldstr "Starting..." IL_0005: call void [System.Console]System.Console::WriteLine(string) IL_000a: ldc.i4.2 IL_000b: stloc.0 IL_000c: ldc.i4.0 IL_000d: conv.i8 IL_000e: stloc.1 IL_000f: ldloc.0 IL_0010: ldloc.0 IL_0011: ldloc.0 IL_0012: ldloc.0 IL_0013: ldloc.0 IL_0014: ldloc.0 IL_0015: ldloc.0 IL_0016: newobj instance void valuetype Yak[,,,,,,]::.ctor(int32,int32,int32,int32,int32,int32,int32) IL_001b: stloc.2 ldloc 2 call int32 Complex2_Array_Test::TestRank(value class Yak[,,,,,,]) ldc.i4 7 bne.un IL_0200 IL_001c: ldc.i4.0 IL_001d: stloc.3 IL_001e: br IL_0113 IL_0023: ldc.i4.0 IL_0024: stloc.s j IL_0026: br IL_0107 IL_002b: ldc.i4.0 IL_002c: stloc.s k IL_002e: br IL_00f9 IL_0033: ldc.i4.0 IL_0034: stloc.s l IL_0036: br IL_00eb IL_003b: ldc.i4.0 IL_003c: stloc.s m IL_003e: br IL_00dd IL_0043: ldc.i4.0 IL_0044: stloc.s n IL_0046: br IL_00cf IL_004b: ldc.i4.0 IL_004c: stloc.s o IL_004e: br.s IL_00c4 IL_0050: ldloc.2 IL_0051: ldloc.3 IL_0052: ldloc.s j IL_0054: ldloc.s k IL_0056: ldloc.s l IL_0058: ldloc.s m IL_005a: ldloc.s n IL_005c: ldloc.s o IL_005e: call instance value class Yak& valuetype Yak[,,,,,,]::Address(int32,int32,int32,int32,int32,int32,int32) IL_0063: ldloc.3 IL_0064: ldloc.s j IL_0066: mul IL_0067: ldloc.s k IL_0069: mul IL_006a: ldloc.s l IL_006c: mul IL_006d: ldloc.s m IL_006f: mul IL_0070: ldloc.s n IL_0072: mul IL_0073: ldloc.s o IL_0075: mul IL_0076: stfld int32 Yak::a IL_007b: ldloc.2 IL_007c: ldloc.3 IL_007d: ldloc.s j IL_007f: ldloc.s k IL_0081: ldloc.s l IL_0083: ldloc.s m IL_0085: ldloc.s n IL_0087: ldloc.s o IL_0089: call instance value class Yak& valuetype Yak[,,,,,,]::Address(int32,int32,int32,int32,int32,int32,int32) IL_008e: ldloc.3 IL_008f: ldloc.s j IL_0091: add IL_0092: ldloc.s k IL_0094: add IL_0095: ldloc.s l IL_0097: add IL_0098: ldloc.s m IL_009a: add IL_009b: ldloc.s n IL_009d: add IL_009e: ldloc.s o IL_00a0: add IL_00a1: stfld int32 Yak::b IL_00a6: ldloc.2 IL_00a7: ldloc.3 IL_00a8: ldloc.s j IL_00aa: ldloc.s k IL_00ac: ldloc.s l IL_00ae: ldloc.s m IL_00b0: ldloc.s n IL_00b2: ldloc.s o IL_00b4: call instance value class Yak& valuetype Yak[,,,,,,]::Address(int32,int32,int32,int32,int32,int32,int32) IL_00b9: call instance void Yak::Do_Something() IL_00be: ldloc.s o IL_00c0: ldc.i4.1 IL_00c1: add IL_00c2: stloc.s o IL_00c4: ldloc.s o IL_00c6: ldloc.0 IL_00c7: blt.s IL_0050 IL_00c9: ldloc.s n IL_00cb: ldc.i4.1 IL_00cc: add IL_00cd: stloc.s n IL_00cf: ldloc.s n IL_00d1: ldloc.0 IL_00d2: blt IL_004b IL_00d7: ldloc.s m IL_00d9: ldc.i4.1 IL_00da: add IL_00db: stloc.s m IL_00dd: ldloc.s m IL_00df: ldloc.0 IL_00e0: blt IL_0043 IL_00e5: ldloc.s l IL_00e7: ldc.i4.1 IL_00e8: add IL_00e9: stloc.s l IL_00eb: ldloc.s l IL_00ed: ldloc.0 IL_00ee: blt IL_003b IL_00f3: ldloc.s k IL_00f5: ldc.i4.1 IL_00f6: add IL_00f7: stloc.s k IL_00f9: ldloc.s k IL_00fb: ldloc.0 IL_00fc: blt IL_0033 IL_0101: ldloc.s j IL_0103: ldc.i4.1 IL_0104: add IL_0105: stloc.s j IL_0107: ldloc.s j IL_0109: ldloc.0 IL_010a: blt IL_002b IL_010f: ldloc.3 IL_0110: ldc.i4.1 IL_0111: add IL_0112: stloc.3 IL_0113: ldloc.3 IL_0114: ldloc.0 IL_0115: blt IL_0023 IL_011a: ldc.i4.0 IL_011b: stloc.3 IL_011c: br IL_01a1 IL_0121: ldc.i4.0 IL_0122: stloc.s j IL_0124: br.s IL_0198 IL_0126: ldc.i4.0 IL_0127: stloc.s k IL_0129: br.s IL_018d IL_012b: ldc.i4.0 IL_012c: stloc.s l IL_012e: br.s IL_0182 IL_0130: ldc.i4.0 IL_0131: stloc.s m IL_0133: br.s IL_0177 IL_0135: ldc.i4.0 IL_0136: stloc.s n IL_0138: br.s IL_016c IL_013a: ldc.i4.0 IL_013b: stloc.s o IL_013d: br.s IL_0161 IL_013f: ldloc.1 IL_0140: ldloc.2 IL_0141: ldloc.3 IL_0142: ldloc.s j IL_0144: ldloc.s k IL_0146: ldloc.s l IL_0148: ldloc.s m IL_014a: ldloc.s n IL_014c: ldloc.s o IL_014e: call instance value class Yak& valuetype Yak[,,,,,,]::Address(int32,int32,int32,int32,int32,int32,int32) IL_0153: ldfld int32 Yak::b IL_0158: conv.i8 IL_0159: add IL_015a: stloc.1 IL_015b: ldloc.s o IL_015d: ldc.i4.1 IL_015e: add IL_015f: stloc.s o IL_0161: ldloc.s o IL_0163: ldloc.0 IL_0164: blt.s IL_013f IL_0166: ldloc.s n IL_0168: ldc.i4.1 IL_0169: add IL_016a: stloc.s n IL_016c: ldloc.s n IL_016e: ldloc.0 IL_016f: blt.s IL_013a IL_0171: ldloc.s m IL_0173: ldc.i4.1 IL_0174: add IL_0175: stloc.s m IL_0177: ldloc.s m IL_0179: ldloc.0 IL_017a: blt.s IL_0135 IL_017c: ldloc.s l IL_017e: ldc.i4.1 IL_017f: add IL_0180: stloc.s l IL_0182: ldloc.s l IL_0184: ldloc.0 IL_0185: blt.s IL_0130 IL_0187: ldloc.s k IL_0189: ldc.i4.1 IL_018a: add IL_018b: stloc.s k IL_018d: ldloc.s k IL_018f: ldloc.0 IL_0190: blt.s IL_012b IL_0192: ldloc.s j IL_0194: ldc.i4.1 IL_0195: add IL_0196: stloc.s j IL_0198: ldloc.s j IL_019a: ldloc.0 IL_019b: blt.s IL_0126 IL_019d: ldloc.3 IL_019e: ldc.i4.1 IL_019f: add IL_01a0: stloc.3 IL_01a1: ldloc.3 IL_01a2: ldloc.0 IL_01a3: blt IL_0121 IL_01a8: ldstr "\nTry to get count!" IL_01ad: call void [System.Console]System.Console::WriteLine(string) IL_01b2: ldloc.2 IL_01b3: call void Complex2_Array_Test::test(value class Yak[0...,0...,0...,0...,0...,0...,0...]) IL_01b8: ldloc.2 call instance int32 [mscorlib]System.Array::get_Length() IL_01be: ldloc.0 IL_01bf: ldloc.0 IL_01c0: mul IL_01c1: ldloc.0 IL_01c2: mul IL_01c3: ldloc.0 IL_01c4: mul IL_01c5: ldloc.0 IL_01c6: mul IL_01c7: ldloc.0 IL_01c8: mul IL_01c9: ldloc.0 IL_01ca: mul IL_01cb: bne.un.s IL_0200 IL_01cd: ldloc.1 IL_01ce: ldc.i4 0x1c1 IL_01d3: conv.i8 IL_01d4: bne.un.s IL_0200 IL_01d6: ldstr "Count is:" IL_01db: ldloc.2 call instance int32 [mscorlib]System.Array::get_Length() IL_01e1: stloc.s V_10 IL_01e3: ldloca.s V_10 IL_01e5: call instance string [mscorlib]System.Int32::ToString() IL_01ea: call class System.String [mscorlib]System.String::Concat(class System.String,class System.String) IL_01ef: call void [System.Console]System.Console::Write(string) IL_01f4: ldstr "\nEverything Worked!" IL_01f9: call void [System.Console]System.Console::WriteLine(string) IL_01fe: ldc.i4 0x64 IL_01ff: ret IL_0200: ldstr "Count is:" IL_0205: ldloc.2 call instance int32 [mscorlib]System.Array::get_Length() IL_020b: stloc.s V_10 IL_020d: ldloca.s V_10 IL_020f: call instance string [mscorlib]System.Int32::ToString() IL_0214: call class System.String [mscorlib]System.String::Concat(class System.String,class System.String) IL_0219: call void [System.Console]System.Console::WriteLine(string) IL_021e: ldstr "Sum is:" IL_0223: ldloca.s sum IL_0225: call instance string [mscorlib]System.Int64::ToString() IL_022a: call class System.String [mscorlib]System.String::Concat(class System.String,class System.String) IL_022f: call void [System.Console]System.Console::WriteLine(string) IL_0234: ldstr "\nEverything Didnt Work!" IL_0239: call void [System.Console]System.Console::WriteLine(string) IL_023e: ldc.i4.1 IL_023f: ret } // end of method 'Complex2_Array_Test::Main' .method public specialname rtspecialname instance void .ctor() il managed { .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Object::.ctor() IL_0006: ret } // end of method 'Complex2_Array_Test::.ctor' } // end of class 'Complex2_Array_Test'
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. .assembly extern System.Console { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) .ver 4:0:0:0 } .assembly extern xunit.core {} .assembly extern legacy library mscorlib {} .assembly complex3 { } .class value public auto ansi sealed Yak { .field public int32 a .field private string foo .field public int32 b .method public instance void Do_Something() il managed { .maxstack 8 IL_0000: ldarg.0 IL_0001: ldarg.0 IL_0002: ldflda int32 Yak::a IL_0007: call instance string [mscorlib]System.Int32::ToString() IL_000c: stfld string Yak::foo IL_0011: ldarg.0 IL_0012: dup IL_0013: ldfld int32 Yak::b IL_0018: ldarg.0 IL_0019: ldfld int32 Yak::a IL_001e: add IL_001f: stfld int32 Yak::b IL_0024: ret } // end of method 'Yak::Do_Something' } // end of class 'Yak' .class auto ansi Complex2_Array_Test { .method public static int32 TestRank(value class Yak[,,,,,,] Odd_Variable) il managed { .maxstack 3 .locals (int32 V_0) IL_0000: ldstr "Rank is :" IL_0005: ldarg.0 IL_0006: callvirt instance int32 [mscorlib]System.Array::get_Rank() IL_000b: stloc.0 IL_000c: ldloca.s V_0 IL_000e: call instance string [mscorlib]System.Int32::ToString() IL_0013: call class System.String [mscorlib]System.String::Concat(class System.String,class System.String) IL_0018: call void [System.Console]System.Console::WriteLine(string) ldloc 0 IL_001d: ret } .method public static void test(value class Yak[0...,0...,0...,0...,0...,0...,0...] Odd_Variable) il managed { .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance int32 [mscorlib]System.Array::get_Length() IL_0006: call void [System.Console]System.Console::Write(int32) IL_000b: ret } // end of method 'Complex2_Array_Test::test' .method public static int32 Main(string[] args) il managed { .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = ( 01 00 00 00 ) .entrypoint .maxstack 9 .locals (int32 SIZE, int64 sum, value class Yak[0...,0...,0...,0...,0...,0...,0...] foo, int32 i, int32 j, int32 k, int32 l, int32 m, int32 n, int32 o, int32 V_10) IL_0000: ldstr "Starting..." IL_0005: call void [System.Console]System.Console::WriteLine(string) IL_000a: ldc.i4.2 IL_000b: stloc.0 IL_000c: ldc.i4.0 IL_000d: conv.i8 IL_000e: stloc.1 IL_000f: ldloc.0 IL_0010: ldloc.0 IL_0011: ldloc.0 IL_0012: ldloc.0 IL_0013: ldloc.0 IL_0014: ldloc.0 IL_0015: ldloc.0 IL_0016: newobj instance void valuetype Yak[,,,,,,]::.ctor(int32,int32,int32,int32,int32,int32,int32) IL_001b: stloc.2 ldloc 2 call int32 Complex2_Array_Test::TestRank(value class Yak[,,,,,,]) ldc.i4 7 bne.un IL_0200 IL_001c: ldc.i4.0 IL_001d: stloc.3 IL_001e: br IL_0113 IL_0023: ldc.i4.0 IL_0024: stloc.s j IL_0026: br IL_0107 IL_002b: ldc.i4.0 IL_002c: stloc.s k IL_002e: br IL_00f9 IL_0033: ldc.i4.0 IL_0034: stloc.s l IL_0036: br IL_00eb IL_003b: ldc.i4.0 IL_003c: stloc.s m IL_003e: br IL_00dd IL_0043: ldc.i4.0 IL_0044: stloc.s n IL_0046: br IL_00cf IL_004b: ldc.i4.0 IL_004c: stloc.s o IL_004e: br.s IL_00c4 IL_0050: ldloc.2 IL_0051: ldloc.3 IL_0052: ldloc.s j IL_0054: ldloc.s k IL_0056: ldloc.s l IL_0058: ldloc.s m IL_005a: ldloc.s n IL_005c: ldloc.s o IL_005e: call instance value class Yak& valuetype Yak[,,,,,,]::Address(int32,int32,int32,int32,int32,int32,int32) IL_0063: ldloc.3 IL_0064: ldloc.s j IL_0066: mul IL_0067: ldloc.s k IL_0069: mul IL_006a: ldloc.s l IL_006c: mul IL_006d: ldloc.s m IL_006f: mul IL_0070: ldloc.s n IL_0072: mul IL_0073: ldloc.s o IL_0075: mul IL_0076: stfld int32 Yak::a IL_007b: ldloc.2 IL_007c: ldloc.3 IL_007d: ldloc.s j IL_007f: ldloc.s k IL_0081: ldloc.s l IL_0083: ldloc.s m IL_0085: ldloc.s n IL_0087: ldloc.s o IL_0089: call instance value class Yak& valuetype Yak[,,,,,,]::Address(int32,int32,int32,int32,int32,int32,int32) IL_008e: ldloc.3 IL_008f: ldloc.s j IL_0091: add IL_0092: ldloc.s k IL_0094: add IL_0095: ldloc.s l IL_0097: add IL_0098: ldloc.s m IL_009a: add IL_009b: ldloc.s n IL_009d: add IL_009e: ldloc.s o IL_00a0: add IL_00a1: stfld int32 Yak::b IL_00a6: ldloc.2 IL_00a7: ldloc.3 IL_00a8: ldloc.s j IL_00aa: ldloc.s k IL_00ac: ldloc.s l IL_00ae: ldloc.s m IL_00b0: ldloc.s n IL_00b2: ldloc.s o IL_00b4: call instance value class Yak& valuetype Yak[,,,,,,]::Address(int32,int32,int32,int32,int32,int32,int32) IL_00b9: call instance void Yak::Do_Something() IL_00be: ldloc.s o IL_00c0: ldc.i4.1 IL_00c1: add IL_00c2: stloc.s o IL_00c4: ldloc.s o IL_00c6: ldloc.0 IL_00c7: blt.s IL_0050 IL_00c9: ldloc.s n IL_00cb: ldc.i4.1 IL_00cc: add IL_00cd: stloc.s n IL_00cf: ldloc.s n IL_00d1: ldloc.0 IL_00d2: blt IL_004b IL_00d7: ldloc.s m IL_00d9: ldc.i4.1 IL_00da: add IL_00db: stloc.s m IL_00dd: ldloc.s m IL_00df: ldloc.0 IL_00e0: blt IL_0043 IL_00e5: ldloc.s l IL_00e7: ldc.i4.1 IL_00e8: add IL_00e9: stloc.s l IL_00eb: ldloc.s l IL_00ed: ldloc.0 IL_00ee: blt IL_003b IL_00f3: ldloc.s k IL_00f5: ldc.i4.1 IL_00f6: add IL_00f7: stloc.s k IL_00f9: ldloc.s k IL_00fb: ldloc.0 IL_00fc: blt IL_0033 IL_0101: ldloc.s j IL_0103: ldc.i4.1 IL_0104: add IL_0105: stloc.s j IL_0107: ldloc.s j IL_0109: ldloc.0 IL_010a: blt IL_002b IL_010f: ldloc.3 IL_0110: ldc.i4.1 IL_0111: add IL_0112: stloc.3 IL_0113: ldloc.3 IL_0114: ldloc.0 IL_0115: blt IL_0023 IL_011a: ldc.i4.0 IL_011b: stloc.3 IL_011c: br IL_01a1 IL_0121: ldc.i4.0 IL_0122: stloc.s j IL_0124: br.s IL_0198 IL_0126: ldc.i4.0 IL_0127: stloc.s k IL_0129: br.s IL_018d IL_012b: ldc.i4.0 IL_012c: stloc.s l IL_012e: br.s IL_0182 IL_0130: ldc.i4.0 IL_0131: stloc.s m IL_0133: br.s IL_0177 IL_0135: ldc.i4.0 IL_0136: stloc.s n IL_0138: br.s IL_016c IL_013a: ldc.i4.0 IL_013b: stloc.s o IL_013d: br.s IL_0161 IL_013f: ldloc.1 IL_0140: ldloc.2 IL_0141: ldloc.3 IL_0142: ldloc.s j IL_0144: ldloc.s k IL_0146: ldloc.s l IL_0148: ldloc.s m IL_014a: ldloc.s n IL_014c: ldloc.s o IL_014e: call instance value class Yak& valuetype Yak[,,,,,,]::Address(int32,int32,int32,int32,int32,int32,int32) IL_0153: ldfld int32 Yak::b IL_0158: conv.i8 IL_0159: add IL_015a: stloc.1 IL_015b: ldloc.s o IL_015d: ldc.i4.1 IL_015e: add IL_015f: stloc.s o IL_0161: ldloc.s o IL_0163: ldloc.0 IL_0164: blt.s IL_013f IL_0166: ldloc.s n IL_0168: ldc.i4.1 IL_0169: add IL_016a: stloc.s n IL_016c: ldloc.s n IL_016e: ldloc.0 IL_016f: blt.s IL_013a IL_0171: ldloc.s m IL_0173: ldc.i4.1 IL_0174: add IL_0175: stloc.s m IL_0177: ldloc.s m IL_0179: ldloc.0 IL_017a: blt.s IL_0135 IL_017c: ldloc.s l IL_017e: ldc.i4.1 IL_017f: add IL_0180: stloc.s l IL_0182: ldloc.s l IL_0184: ldloc.0 IL_0185: blt.s IL_0130 IL_0187: ldloc.s k IL_0189: ldc.i4.1 IL_018a: add IL_018b: stloc.s k IL_018d: ldloc.s k IL_018f: ldloc.0 IL_0190: blt.s IL_012b IL_0192: ldloc.s j IL_0194: ldc.i4.1 IL_0195: add IL_0196: stloc.s j IL_0198: ldloc.s j IL_019a: ldloc.0 IL_019b: blt.s IL_0126 IL_019d: ldloc.3 IL_019e: ldc.i4.1 IL_019f: add IL_01a0: stloc.3 IL_01a1: ldloc.3 IL_01a2: ldloc.0 IL_01a3: blt IL_0121 IL_01a8: ldstr "\nTry to get count!" IL_01ad: call void [System.Console]System.Console::WriteLine(string) IL_01b2: ldloc.2 IL_01b3: call void Complex2_Array_Test::test(value class Yak[0...,0...,0...,0...,0...,0...,0...]) IL_01b8: ldloc.2 call instance int32 [mscorlib]System.Array::get_Length() IL_01be: ldloc.0 IL_01bf: ldloc.0 IL_01c0: mul IL_01c1: ldloc.0 IL_01c2: mul IL_01c3: ldloc.0 IL_01c4: mul IL_01c5: ldloc.0 IL_01c6: mul IL_01c7: ldloc.0 IL_01c8: mul IL_01c9: ldloc.0 IL_01ca: mul IL_01cb: bne.un.s IL_0200 IL_01cd: ldloc.1 IL_01ce: ldc.i4 0x1c1 IL_01d3: conv.i8 IL_01d4: bne.un.s IL_0200 IL_01d6: ldstr "Count is:" IL_01db: ldloc.2 call instance int32 [mscorlib]System.Array::get_Length() IL_01e1: stloc.s V_10 IL_01e3: ldloca.s V_10 IL_01e5: call instance string [mscorlib]System.Int32::ToString() IL_01ea: call class System.String [mscorlib]System.String::Concat(class System.String,class System.String) IL_01ef: call void [System.Console]System.Console::Write(string) IL_01f4: ldstr "\nEverything Worked!" IL_01f9: call void [System.Console]System.Console::WriteLine(string) IL_01fe: ldc.i4 0x64 IL_01ff: ret IL_0200: ldstr "Count is:" IL_0205: ldloc.2 call instance int32 [mscorlib]System.Array::get_Length() IL_020b: stloc.s V_10 IL_020d: ldloca.s V_10 IL_020f: call instance string [mscorlib]System.Int32::ToString() IL_0214: call class System.String [mscorlib]System.String::Concat(class System.String,class System.String) IL_0219: call void [System.Console]System.Console::WriteLine(string) IL_021e: ldstr "Sum is:" IL_0223: ldloca.s sum IL_0225: call instance string [mscorlib]System.Int64::ToString() IL_022a: call class System.String [mscorlib]System.String::Concat(class System.String,class System.String) IL_022f: call void [System.Console]System.Console::WriteLine(string) IL_0234: ldstr "\nEverything Didnt Work!" IL_0239: call void [System.Console]System.Console::WriteLine(string) IL_023e: ldc.i4.1 IL_023f: ret } // end of method 'Complex2_Array_Test::Main' .method public specialname rtspecialname instance void .ctor() il managed { .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Object::.ctor() IL_0006: ret } // end of method 'Complex2_Array_Test::.ctor' } // end of class 'Complex2_Array_Test'
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/tests/JIT/HardwareIntrinsics/X86/Avx2/AddSaturate_r.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> </PropertyGroup> <PropertyGroup> <DebugType>Embedded</DebugType> <Optimize /> </PropertyGroup> <ItemGroup> <Compile Include="AddSaturate.cs" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> </PropertyGroup> <PropertyGroup> <DebugType>Embedded</DebugType> <Optimize /> </PropertyGroup> <ItemGroup> <Compile Include="AddSaturate.cs" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/tests/JIT/IL_Conformance/Old/Base/ceq.il
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. .assembly extern legacy library mscorlib {} .assembly 'ceq'{} .class public _ceq { .field public static int32 i4 .field public static int64 i8 .field public static float32 r4 .field public static float64 r8 .field public static int32 i .field public static class _ceq ref .method public void .ctor() { .maxstack 10 ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } .method public static void initialize() { ldc.i4 0x1234ABCD stsfld int32 _ceq::i4 ldc.i8 0x1234ABCD5678EF09 stsfld int64 _ceq::i8 ldc.r4 float32(0xBF800000) stsfld float32 _ceq::r4 ldc.r8 float64(0xBFF0000000000000) stsfld float64 _ceq::r8 ldc.i4 0x000000FF stsfld int32 _ceq::i newobj instance void _ceq::.ctor() stsfld class _ceq _ceq::ref ret } .method public static int32 main(class [mscorlib]System.String[]) { .entrypoint .maxstack 10 call void _ceq::initialize() ldsfld int32 _ceq::i4 ldsfld int32 _ceq::i4 ceq brfalse FAIL ldsfld int64 _ceq::i8 ldsfld int64 _ceq::i8 ceq brfalse FAIL ldsfld float32 _ceq::r4 ldsfld float32 _ceq::r4 ceq brfalse FAIL ldsfld float64 _ceq::r8 ldsfld float64 _ceq::r8 ceq brfalse FAIL ldsfld int32 _ceq::i ldsfld int32 _ceq::i ceq brfalse FAIL PASS: ldc.i4 100 ret FAIL: ldc.i4 0x0 ret } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. .assembly extern legacy library mscorlib {} .assembly 'ceq'{} .class public _ceq { .field public static int32 i4 .field public static int64 i8 .field public static float32 r4 .field public static float64 r8 .field public static int32 i .field public static class _ceq ref .method public void .ctor() { .maxstack 10 ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } .method public static void initialize() { ldc.i4 0x1234ABCD stsfld int32 _ceq::i4 ldc.i8 0x1234ABCD5678EF09 stsfld int64 _ceq::i8 ldc.r4 float32(0xBF800000) stsfld float32 _ceq::r4 ldc.r8 float64(0xBFF0000000000000) stsfld float64 _ceq::r8 ldc.i4 0x000000FF stsfld int32 _ceq::i newobj instance void _ceq::.ctor() stsfld class _ceq _ceq::ref ret } .method public static int32 main(class [mscorlib]System.String[]) { .entrypoint .maxstack 10 call void _ceq::initialize() ldsfld int32 _ceq::i4 ldsfld int32 _ceq::i4 ceq brfalse FAIL ldsfld int64 _ceq::i8 ldsfld int64 _ceq::i8 ceq brfalse FAIL ldsfld float32 _ceq::r4 ldsfld float32 _ceq::r4 ceq brfalse FAIL ldsfld float64 _ceq::r8 ldsfld float64 _ceq::r8 ceq brfalse FAIL ldsfld int32 _ceq::i ldsfld int32 _ceq::i ceq brfalse FAIL PASS: ldc.i4 100 ret FAIL: ldc.i4 0x0 ret } }
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/tests/JIT/Regression/CLR-x86-JIT/v2.1/DDB/b33183/b33183.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // /* csc /o+ InlineRecursion.cs Expected: Caught DivideByZeroException: System.DivideByZeroException: Attempted to divide by zero. at MainApp.Foo() at MainApp.Main() Passed! Any other outcome is a bug. */ using System; using System.Runtime.CompilerServices; class MainApp { static int one = 1; static int zero = 0; static int result; public static void Foo() { result = one / zero; Foo(); } public static int Main() { try { try { Foo(); Console.WriteLine("Return from Foo without any exception."); Console.WriteLine("Failed."); return 101; } catch (DivideByZeroException ex) { Console.WriteLine("Caught DivideByZeroException: " + ex.ToString()); Console.WriteLine("Passed!"); return 100; } } catch (Exception ex) { Console.WriteLine("Caught this unpected exception: " + ex.ToString()); Console.WriteLine("Failed."); return 101; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // /* csc /o+ InlineRecursion.cs Expected: Caught DivideByZeroException: System.DivideByZeroException: Attempted to divide by zero. at MainApp.Foo() at MainApp.Main() Passed! Any other outcome is a bug. */ using System; using System.Runtime.CompilerServices; class MainApp { static int one = 1; static int zero = 0; static int result; public static void Foo() { result = one / zero; Foo(); } public static int Main() { try { try { Foo(); Console.WriteLine("Return from Foo without any exception."); Console.WriteLine("Failed."); return 101; } catch (DivideByZeroException ex) { Console.WriteLine("Caught DivideByZeroException: " + ex.ToString()); Console.WriteLine("Passed!"); return 100; } } catch (Exception ex) { Console.WriteLine("Caught this unpected exception: " + ex.ToString()); Console.WriteLine("Failed."); return 101; } } }
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/tests/JIT/HardwareIntrinsics/X86/Avx1/CompareLessThanOrEqual.Single.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make * * changes, please update the corresponding template and run according to the * * directions listed in the file. * ******************************************************************************/ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; using System.Runtime.Intrinsics.X86; namespace JIT.HardwareIntrinsics.X86 { public static partial class Program { private static void CompareLessThanOrEqualSingle() { var test = new SimpleBinaryOpTest__CompareLessThanOrEqualSingle(); if (test.IsSupported) { // Validates basic functionality works, using Unsafe.Read test.RunBasicScenario_UnsafeRead(); if (Avx.IsSupported) { // Validates basic functionality works, using Load test.RunBasicScenario_Load(); // Validates basic functionality works, using LoadAligned test.RunBasicScenario_LoadAligned(); } // Validates calling via reflection works, using Unsafe.Read test.RunReflectionScenario_UnsafeRead(); if (Avx.IsSupported) { // Validates calling via reflection works, using Load test.RunReflectionScenario_Load(); // Validates calling via reflection works, using LoadAligned test.RunReflectionScenario_LoadAligned(); } // Validates passing a static member works test.RunClsVarScenario(); if (Avx.IsSupported) { // Validates passing a static member works, using pinning and Load test.RunClsVarScenario_Load(); } // Validates passing a local works, using Unsafe.Read test.RunLclVarScenario_UnsafeRead(); if (Avx.IsSupported) { // Validates passing a local works, using Load test.RunLclVarScenario_Load(); // Validates passing a local works, using LoadAligned test.RunLclVarScenario_LoadAligned(); } // Validates passing the field of a local class works test.RunClassLclFldScenario(); if (Avx.IsSupported) { // Validates passing the field of a local class works, using pinning and Load test.RunClassLclFldScenario_Load(); } // Validates passing an instance member of a class works test.RunClassFldScenario(); if (Avx.IsSupported) { // Validates passing an instance member of a class works, using pinning and Load test.RunClassFldScenario_Load(); } // Validates passing the field of a local struct works test.RunStructLclFldScenario(); if (Avx.IsSupported) { // Validates passing the field of a local struct works, using pinning and Load test.RunStructLclFldScenario_Load(); } // Validates passing an instance member of a struct works test.RunStructFldScenario(); if (Avx.IsSupported) { // Validates passing an instance member of a struct works, using pinning and Load test.RunStructFldScenario_Load(); } } else { // Validates we throw on unsupported hardware test.RunUnsupportedScenario(); } if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class SimpleBinaryOpTest__CompareLessThanOrEqualSingle { private struct DataTable { private byte[] inArray1; private byte[] inArray2; private byte[] outArray; private GCHandle inHandle1; private GCHandle inHandle2; private GCHandle outHandle; private ulong alignment; public DataTable(Single[] inArray1, Single[] inArray2, Single[] outArray, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Single>(); int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<Single>(); int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<Single>(); if ((alignment != 32 && alignment != 16) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2 || (alignment * 2) < sizeOfoutArray) { throw new ArgumentException("Invalid value of alignment"); } this.inArray1 = new byte[alignment * 2]; this.inArray2 = new byte[alignment * 2]; this.outArray = new byte[alignment * 2]; this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned); this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned); this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned); this.alignment = (ulong)alignment; Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<Single, byte>(ref inArray1[0]), (uint)sizeOfinArray1); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<Single, byte>(ref inArray2[0]), (uint)sizeOfinArray2); } public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment); public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment); public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment); public void Dispose() { inHandle1.Free(); inHandle2.Free(); outHandle.Free(); } private static unsafe void* Align(byte* buffer, ulong expectedAlignment) { return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1)); } } private struct TestStruct { public Vector256<Single> _fld1; public Vector256<Single> _fld2; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetSingle(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Single>, byte>(ref testStruct._fld1), ref Unsafe.As<Single, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Single>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetSingle(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Single>, byte>(ref testStruct._fld2), ref Unsafe.As<Single, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<Single>>()); return testStruct; } public void RunStructFldScenario(SimpleBinaryOpTest__CompareLessThanOrEqualSingle testClass) { var result = Avx.CompareLessThanOrEqual(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } public void RunStructFldScenario_Load(SimpleBinaryOpTest__CompareLessThanOrEqualSingle testClass) { fixed (Vector256<Single>* pFld1 = &_fld1) fixed (Vector256<Single>* pFld2 = &_fld2) { var result = Avx.CompareLessThanOrEqual( Avx.LoadVector256((Single*)(pFld1)), Avx.LoadVector256((Single*)(pFld2)) ); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } } } private static readonly int LargestVectorSize = 32; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector256<Single>>() / sizeof(Single); private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector256<Single>>() / sizeof(Single); private static readonly int RetElementCount = Unsafe.SizeOf<Vector256<Single>>() / sizeof(Single); private static Single[] _data1 = new Single[Op1ElementCount]; private static Single[] _data2 = new Single[Op2ElementCount]; private static Vector256<Single> _clsVar1; private static Vector256<Single> _clsVar2; private Vector256<Single> _fld1; private Vector256<Single> _fld2; private DataTable _dataTable; static SimpleBinaryOpTest__CompareLessThanOrEqualSingle() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetSingle(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Single>, byte>(ref _clsVar1), ref Unsafe.As<Single, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Single>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetSingle(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Single>, byte>(ref _clsVar2), ref Unsafe.As<Single, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<Single>>()); } public SimpleBinaryOpTest__CompareLessThanOrEqualSingle() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetSingle(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Single>, byte>(ref _fld1), ref Unsafe.As<Single, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Single>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetSingle(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Single>, byte>(ref _fld2), ref Unsafe.As<Single, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<Single>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetSingle(); } for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetSingle(); } _dataTable = new DataTable(_data1, _data2, new Single[RetElementCount], LargestVectorSize); } public bool IsSupported => Avx.IsSupported; public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = Avx.CompareLessThanOrEqual( Unsafe.Read<Vector256<Single>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector256<Single>>(_dataTable.inArray2Ptr) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); var result = Avx.CompareLessThanOrEqual( Avx.LoadVector256((Single*)(_dataTable.inArray1Ptr)), Avx.LoadVector256((Single*)(_dataTable.inArray2Ptr)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunBasicScenario_LoadAligned() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned)); var result = Avx.CompareLessThanOrEqual( Avx.LoadAlignedVector256((Single*)(_dataTable.inArray1Ptr)), Avx.LoadAlignedVector256((Single*)(_dataTable.inArray2Ptr)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); var result = typeof(Avx).GetMethod(nameof(Avx.CompareLessThanOrEqual), new Type[] { typeof(Vector256<Single>), typeof(Vector256<Single>) }) .Invoke(null, new object[] { Unsafe.Read<Vector256<Single>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector256<Single>>(_dataTable.inArray2Ptr) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector256<Single>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); var result = typeof(Avx).GetMethod(nameof(Avx.CompareLessThanOrEqual), new Type[] { typeof(Vector256<Single>), typeof(Vector256<Single>) }) .Invoke(null, new object[] { Avx.LoadVector256((Single*)(_dataTable.inArray1Ptr)), Avx.LoadVector256((Single*)(_dataTable.inArray2Ptr)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector256<Single>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_LoadAligned() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned)); var result = typeof(Avx).GetMethod(nameof(Avx.CompareLessThanOrEqual), new Type[] { typeof(Vector256<Single>), typeof(Vector256<Single>) }) .Invoke(null, new object[] { Avx.LoadAlignedVector256((Single*)(_dataTable.inArray1Ptr)), Avx.LoadAlignedVector256((Single*)(_dataTable.inArray2Ptr)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector256<Single>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = Avx.CompareLessThanOrEqual( _clsVar1, _clsVar2 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr); } public void RunClsVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load)); fixed (Vector256<Single>* pClsVar1 = &_clsVar1) fixed (Vector256<Single>* pClsVar2 = &_clsVar2) { var result = Avx.CompareLessThanOrEqual( Avx.LoadVector256((Single*)(pClsVar1)), Avx.LoadVector256((Single*)(pClsVar2)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr); } } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<Vector256<Single>>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read<Vector256<Single>>(_dataTable.inArray2Ptr); var result = Avx.CompareLessThanOrEqual(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunLclVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load)); var op1 = Avx.LoadVector256((Single*)(_dataTable.inArray1Ptr)); var op2 = Avx.LoadVector256((Single*)(_dataTable.inArray2Ptr)); var result = Avx.CompareLessThanOrEqual(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunLclVarScenario_LoadAligned() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned)); var op1 = Avx.LoadAlignedVector256((Single*)(_dataTable.inArray1Ptr)); var op2 = Avx.LoadAlignedVector256((Single*)(_dataTable.inArray2Ptr)); var result = Avx.CompareLessThanOrEqual(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new SimpleBinaryOpTest__CompareLessThanOrEqualSingle(); var result = Avx.CompareLessThanOrEqual(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); var test = new SimpleBinaryOpTest__CompareLessThanOrEqualSingle(); fixed (Vector256<Single>* pFld1 = &test._fld1) fixed (Vector256<Single>* pFld2 = &test._fld2) { var result = Avx.CompareLessThanOrEqual( Avx.LoadVector256((Single*)(pFld1)), Avx.LoadVector256((Single*)(pFld2)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = Avx.CompareLessThanOrEqual(_fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); } public void RunClassFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load)); fixed (Vector256<Single>* pFld1 = &_fld1) fixed (Vector256<Single>* pFld2 = &_fld2) { var result = Avx.CompareLessThanOrEqual( Avx.LoadVector256((Single*)(pFld1)), Avx.LoadVector256((Single*)(pFld2)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); } } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = Avx.CompareLessThanOrEqual(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunStructLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); var result = Avx.CompareLessThanOrEqual( Avx.LoadVector256((Single*)(&test._fld1)), Avx.LoadVector256((Single*)(&test._fld2)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunStructFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario)); var test = TestStruct.Create(); test.RunStructFldScenario(this); } public void RunStructFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario_Load)); var test = TestStruct.Create(); test.RunStructFldScenario_Load(this); } public void RunUnsupportedScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario)); bool succeeded = false; try { RunBasicScenario_UnsafeRead(); } catch (PlatformNotSupportedException) { succeeded = true; } if (!succeeded) { Succeeded = false; } } private void ValidateResult(Vector256<Single> op1, Vector256<Single> op2, void* result, [CallerMemberName] string method = "") { Single[] inArray1 = new Single[Op1ElementCount]; Single[] inArray2 = new Single[Op2ElementCount]; Single[] outArray = new Single[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<Single, byte>(ref inArray1[0]), op1); Unsafe.WriteUnaligned(ref Unsafe.As<Single, byte>(ref inArray2[0]), op2); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Single, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<Single>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(void* op1, void* op2, void* result, [CallerMemberName] string method = "") { Single[] inArray1 = new Single[Op1ElementCount]; Single[] inArray2 = new Single[Op2ElementCount]; Single[] outArray = new Single[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<Single, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector256<Single>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Single, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<Vector256<Single>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Single, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<Single>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(Single[] left, Single[] right, Single[] result, [CallerMemberName] string method = "") { bool succeeded = true; if (BitConverter.SingleToInt32Bits(result[0]) != ((left[0] <= right[0]) ? -1 : 0)) { succeeded = false; } else { for (var i = 1; i < RetElementCount; i++) { if (BitConverter.SingleToInt32Bits(result[i]) != ((left[i] <= right[i]) ? -1 : 0)) { succeeded = false; break; } } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(Avx)}.{nameof(Avx.CompareLessThanOrEqual)}<Single>(Vector256<Single>, Vector256<Single>): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make * * changes, please update the corresponding template and run according to the * * directions listed in the file. * ******************************************************************************/ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; using System.Runtime.Intrinsics.X86; namespace JIT.HardwareIntrinsics.X86 { public static partial class Program { private static void CompareLessThanOrEqualSingle() { var test = new SimpleBinaryOpTest__CompareLessThanOrEqualSingle(); if (test.IsSupported) { // Validates basic functionality works, using Unsafe.Read test.RunBasicScenario_UnsafeRead(); if (Avx.IsSupported) { // Validates basic functionality works, using Load test.RunBasicScenario_Load(); // Validates basic functionality works, using LoadAligned test.RunBasicScenario_LoadAligned(); } // Validates calling via reflection works, using Unsafe.Read test.RunReflectionScenario_UnsafeRead(); if (Avx.IsSupported) { // Validates calling via reflection works, using Load test.RunReflectionScenario_Load(); // Validates calling via reflection works, using LoadAligned test.RunReflectionScenario_LoadAligned(); } // Validates passing a static member works test.RunClsVarScenario(); if (Avx.IsSupported) { // Validates passing a static member works, using pinning and Load test.RunClsVarScenario_Load(); } // Validates passing a local works, using Unsafe.Read test.RunLclVarScenario_UnsafeRead(); if (Avx.IsSupported) { // Validates passing a local works, using Load test.RunLclVarScenario_Load(); // Validates passing a local works, using LoadAligned test.RunLclVarScenario_LoadAligned(); } // Validates passing the field of a local class works test.RunClassLclFldScenario(); if (Avx.IsSupported) { // Validates passing the field of a local class works, using pinning and Load test.RunClassLclFldScenario_Load(); } // Validates passing an instance member of a class works test.RunClassFldScenario(); if (Avx.IsSupported) { // Validates passing an instance member of a class works, using pinning and Load test.RunClassFldScenario_Load(); } // Validates passing the field of a local struct works test.RunStructLclFldScenario(); if (Avx.IsSupported) { // Validates passing the field of a local struct works, using pinning and Load test.RunStructLclFldScenario_Load(); } // Validates passing an instance member of a struct works test.RunStructFldScenario(); if (Avx.IsSupported) { // Validates passing an instance member of a struct works, using pinning and Load test.RunStructFldScenario_Load(); } } else { // Validates we throw on unsupported hardware test.RunUnsupportedScenario(); } if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class SimpleBinaryOpTest__CompareLessThanOrEqualSingle { private struct DataTable { private byte[] inArray1; private byte[] inArray2; private byte[] outArray; private GCHandle inHandle1; private GCHandle inHandle2; private GCHandle outHandle; private ulong alignment; public DataTable(Single[] inArray1, Single[] inArray2, Single[] outArray, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Single>(); int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<Single>(); int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<Single>(); if ((alignment != 32 && alignment != 16) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2 || (alignment * 2) < sizeOfoutArray) { throw new ArgumentException("Invalid value of alignment"); } this.inArray1 = new byte[alignment * 2]; this.inArray2 = new byte[alignment * 2]; this.outArray = new byte[alignment * 2]; this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned); this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned); this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned); this.alignment = (ulong)alignment; Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<Single, byte>(ref inArray1[0]), (uint)sizeOfinArray1); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<Single, byte>(ref inArray2[0]), (uint)sizeOfinArray2); } public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment); public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment); public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment); public void Dispose() { inHandle1.Free(); inHandle2.Free(); outHandle.Free(); } private static unsafe void* Align(byte* buffer, ulong expectedAlignment) { return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1)); } } private struct TestStruct { public Vector256<Single> _fld1; public Vector256<Single> _fld2; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetSingle(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Single>, byte>(ref testStruct._fld1), ref Unsafe.As<Single, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Single>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetSingle(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Single>, byte>(ref testStruct._fld2), ref Unsafe.As<Single, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<Single>>()); return testStruct; } public void RunStructFldScenario(SimpleBinaryOpTest__CompareLessThanOrEqualSingle testClass) { var result = Avx.CompareLessThanOrEqual(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } public void RunStructFldScenario_Load(SimpleBinaryOpTest__CompareLessThanOrEqualSingle testClass) { fixed (Vector256<Single>* pFld1 = &_fld1) fixed (Vector256<Single>* pFld2 = &_fld2) { var result = Avx.CompareLessThanOrEqual( Avx.LoadVector256((Single*)(pFld1)), Avx.LoadVector256((Single*)(pFld2)) ); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } } } private static readonly int LargestVectorSize = 32; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector256<Single>>() / sizeof(Single); private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector256<Single>>() / sizeof(Single); private static readonly int RetElementCount = Unsafe.SizeOf<Vector256<Single>>() / sizeof(Single); private static Single[] _data1 = new Single[Op1ElementCount]; private static Single[] _data2 = new Single[Op2ElementCount]; private static Vector256<Single> _clsVar1; private static Vector256<Single> _clsVar2; private Vector256<Single> _fld1; private Vector256<Single> _fld2; private DataTable _dataTable; static SimpleBinaryOpTest__CompareLessThanOrEqualSingle() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetSingle(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Single>, byte>(ref _clsVar1), ref Unsafe.As<Single, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Single>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetSingle(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Single>, byte>(ref _clsVar2), ref Unsafe.As<Single, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<Single>>()); } public SimpleBinaryOpTest__CompareLessThanOrEqualSingle() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetSingle(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Single>, byte>(ref _fld1), ref Unsafe.As<Single, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Single>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetSingle(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Single>, byte>(ref _fld2), ref Unsafe.As<Single, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<Single>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetSingle(); } for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetSingle(); } _dataTable = new DataTable(_data1, _data2, new Single[RetElementCount], LargestVectorSize); } public bool IsSupported => Avx.IsSupported; public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = Avx.CompareLessThanOrEqual( Unsafe.Read<Vector256<Single>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector256<Single>>(_dataTable.inArray2Ptr) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); var result = Avx.CompareLessThanOrEqual( Avx.LoadVector256((Single*)(_dataTable.inArray1Ptr)), Avx.LoadVector256((Single*)(_dataTable.inArray2Ptr)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunBasicScenario_LoadAligned() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned)); var result = Avx.CompareLessThanOrEqual( Avx.LoadAlignedVector256((Single*)(_dataTable.inArray1Ptr)), Avx.LoadAlignedVector256((Single*)(_dataTable.inArray2Ptr)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); var result = typeof(Avx).GetMethod(nameof(Avx.CompareLessThanOrEqual), new Type[] { typeof(Vector256<Single>), typeof(Vector256<Single>) }) .Invoke(null, new object[] { Unsafe.Read<Vector256<Single>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector256<Single>>(_dataTable.inArray2Ptr) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector256<Single>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); var result = typeof(Avx).GetMethod(nameof(Avx.CompareLessThanOrEqual), new Type[] { typeof(Vector256<Single>), typeof(Vector256<Single>) }) .Invoke(null, new object[] { Avx.LoadVector256((Single*)(_dataTable.inArray1Ptr)), Avx.LoadVector256((Single*)(_dataTable.inArray2Ptr)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector256<Single>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_LoadAligned() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned)); var result = typeof(Avx).GetMethod(nameof(Avx.CompareLessThanOrEqual), new Type[] { typeof(Vector256<Single>), typeof(Vector256<Single>) }) .Invoke(null, new object[] { Avx.LoadAlignedVector256((Single*)(_dataTable.inArray1Ptr)), Avx.LoadAlignedVector256((Single*)(_dataTable.inArray2Ptr)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector256<Single>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = Avx.CompareLessThanOrEqual( _clsVar1, _clsVar2 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr); } public void RunClsVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load)); fixed (Vector256<Single>* pClsVar1 = &_clsVar1) fixed (Vector256<Single>* pClsVar2 = &_clsVar2) { var result = Avx.CompareLessThanOrEqual( Avx.LoadVector256((Single*)(pClsVar1)), Avx.LoadVector256((Single*)(pClsVar2)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr); } } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<Vector256<Single>>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read<Vector256<Single>>(_dataTable.inArray2Ptr); var result = Avx.CompareLessThanOrEqual(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunLclVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load)); var op1 = Avx.LoadVector256((Single*)(_dataTable.inArray1Ptr)); var op2 = Avx.LoadVector256((Single*)(_dataTable.inArray2Ptr)); var result = Avx.CompareLessThanOrEqual(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunLclVarScenario_LoadAligned() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned)); var op1 = Avx.LoadAlignedVector256((Single*)(_dataTable.inArray1Ptr)); var op2 = Avx.LoadAlignedVector256((Single*)(_dataTable.inArray2Ptr)); var result = Avx.CompareLessThanOrEqual(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new SimpleBinaryOpTest__CompareLessThanOrEqualSingle(); var result = Avx.CompareLessThanOrEqual(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); var test = new SimpleBinaryOpTest__CompareLessThanOrEqualSingle(); fixed (Vector256<Single>* pFld1 = &test._fld1) fixed (Vector256<Single>* pFld2 = &test._fld2) { var result = Avx.CompareLessThanOrEqual( Avx.LoadVector256((Single*)(pFld1)), Avx.LoadVector256((Single*)(pFld2)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = Avx.CompareLessThanOrEqual(_fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); } public void RunClassFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load)); fixed (Vector256<Single>* pFld1 = &_fld1) fixed (Vector256<Single>* pFld2 = &_fld2) { var result = Avx.CompareLessThanOrEqual( Avx.LoadVector256((Single*)(pFld1)), Avx.LoadVector256((Single*)(pFld2)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); } } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = Avx.CompareLessThanOrEqual(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunStructLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); var result = Avx.CompareLessThanOrEqual( Avx.LoadVector256((Single*)(&test._fld1)), Avx.LoadVector256((Single*)(&test._fld2)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunStructFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario)); var test = TestStruct.Create(); test.RunStructFldScenario(this); } public void RunStructFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario_Load)); var test = TestStruct.Create(); test.RunStructFldScenario_Load(this); } public void RunUnsupportedScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario)); bool succeeded = false; try { RunBasicScenario_UnsafeRead(); } catch (PlatformNotSupportedException) { succeeded = true; } if (!succeeded) { Succeeded = false; } } private void ValidateResult(Vector256<Single> op1, Vector256<Single> op2, void* result, [CallerMemberName] string method = "") { Single[] inArray1 = new Single[Op1ElementCount]; Single[] inArray2 = new Single[Op2ElementCount]; Single[] outArray = new Single[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<Single, byte>(ref inArray1[0]), op1); Unsafe.WriteUnaligned(ref Unsafe.As<Single, byte>(ref inArray2[0]), op2); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Single, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<Single>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(void* op1, void* op2, void* result, [CallerMemberName] string method = "") { Single[] inArray1 = new Single[Op1ElementCount]; Single[] inArray2 = new Single[Op2ElementCount]; Single[] outArray = new Single[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<Single, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector256<Single>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Single, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<Vector256<Single>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Single, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<Single>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(Single[] left, Single[] right, Single[] result, [CallerMemberName] string method = "") { bool succeeded = true; if (BitConverter.SingleToInt32Bits(result[0]) != ((left[0] <= right[0]) ? -1 : 0)) { succeeded = false; } else { for (var i = 1; i < RetElementCount; i++) { if (BitConverter.SingleToInt32Bits(result[i]) != ((left[i] <= right[i]) ? -1 : 0)) { succeeded = false; break; } } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(Avx)}.{nameof(Avx.CompareLessThanOrEqual)}<Single>(Vector256<Single>, Vector256<Single>): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/CompilerGlobalScopeAttribute.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Runtime.CompilerServices { // Attribute used to communicate to the VS7 debugger that a class should be treated as if it has global scope. [AttributeUsage(AttributeTargets.Class)] public class CompilerGlobalScopeAttribute : Attribute { public CompilerGlobalScopeAttribute() { } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Runtime.CompilerServices { // Attribute used to communicate to the VS7 debugger that a class should be treated as if it has global scope. [AttributeUsage(AttributeTargets.Class)] public class CompilerGlobalScopeAttribute : Attribute { public CompilerGlobalScopeAttribute() { } } }
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/tests/JIT/Regression/JitBlue/DevDiv_544983/DevDiv_544983.ilproj
<Project Sdk="Microsoft.NET.Sdk.IL"> <PropertyGroup> <OutputType>Exe</OutputType> </PropertyGroup> <PropertyGroup> <DebugType>None</DebugType> <Optimize>True</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="$(MSBuildProjectName).il" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk.IL"> <PropertyGroup> <OutputType>Exe</OutputType> </PropertyGroup> <PropertyGroup> <DebugType>None</DebugType> <Optimize>True</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="$(MSBuildProjectName).il" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/libraries/Microsoft.Extensions.Primitives/src/ChangeToken.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Diagnostics; using System.Threading; namespace Microsoft.Extensions.Primitives { /// <summary> /// Propagates notifications that a change has occurred. /// </summary> public static class ChangeToken { /// <summary> /// Registers the <paramref name="changeTokenConsumer"/> action to be called whenever the token produced changes. /// </summary> /// <param name="changeTokenProducer">Produces the change token.</param> /// <param name="changeTokenConsumer">Action called when the token changes.</param> /// <returns></returns> public static IDisposable OnChange(Func<IChangeToken?> changeTokenProducer!!, Action changeTokenConsumer!!) { return new ChangeTokenRegistration<Action>(changeTokenProducer, callback => callback(), changeTokenConsumer); } /// <summary> /// Registers the <paramref name="changeTokenConsumer"/> action to be called whenever the token produced changes. /// </summary> /// <param name="changeTokenProducer">Produces the change token.</param> /// <param name="changeTokenConsumer">Action called when the token changes.</param> /// <param name="state">state for the consumer.</param> /// <returns></returns> public static IDisposable OnChange<TState>(Func<IChangeToken?> changeTokenProducer!!, Action<TState> changeTokenConsumer!!, TState state) { return new ChangeTokenRegistration<TState>(changeTokenProducer, changeTokenConsumer, state); } private sealed class ChangeTokenRegistration<TState> : IDisposable { private readonly Func<IChangeToken?> _changeTokenProducer; private readonly Action<TState> _changeTokenConsumer; private readonly TState _state; private IDisposable? _disposable; private static readonly NoopDisposable _disposedSentinel = new NoopDisposable(); public ChangeTokenRegistration(Func<IChangeToken?> changeTokenProducer, Action<TState> changeTokenConsumer, TState state) { _changeTokenProducer = changeTokenProducer; _changeTokenConsumer = changeTokenConsumer; _state = state; IChangeToken? token = changeTokenProducer(); RegisterChangeTokenCallback(token); } private void OnChangeTokenFired() { // The order here is important. We need to take the token and then apply our changes BEFORE // registering. This prevents us from possible having two change updates to process concurrently. // // If the token changes after we take the token, then we'll process the update immediately upon // registering the callback. IChangeToken? token = _changeTokenProducer(); try { _changeTokenConsumer(_state); } finally { // We always want to ensure the callback is registered RegisterChangeTokenCallback(token); } } private void RegisterChangeTokenCallback(IChangeToken? token) { if (token is null) { return; } IDisposable registraton = token.RegisterChangeCallback(s => ((ChangeTokenRegistration<TState>?)s)!.OnChangeTokenFired(), this); SetDisposable(registraton); } private void SetDisposable(IDisposable disposable) { // We don't want to transition from _disposedSentinel => anything since it's terminal // but we want to allow going from previously assigned disposable, to another // disposable. IDisposable? current = Volatile.Read(ref _disposable); // If Dispose was called, then immediately dispose the disposable if (current == _disposedSentinel) { disposable.Dispose(); return; } // Otherwise, try to update the disposable IDisposable? previous = Interlocked.CompareExchange(ref _disposable, disposable, current); if (previous == _disposedSentinel) { // The subscription was disposed so we dispose immediately and return disposable.Dispose(); } else if (previous == current) { // We successfully assigned the _disposable field to disposable } else { // Sets can never overlap with other SetDisposable calls so we should never get into this situation throw new InvalidOperationException("Somebody else set the _disposable field"); } } public void Dispose() { // If the previous value is disposable then dispose it, otherwise, // now we've set the disposed sentinel Interlocked.Exchange(ref _disposable, _disposedSentinel)?.Dispose(); } private sealed class NoopDisposable : IDisposable { public void Dispose() { } } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Diagnostics; using System.Threading; namespace Microsoft.Extensions.Primitives { /// <summary> /// Propagates notifications that a change has occurred. /// </summary> public static class ChangeToken { /// <summary> /// Registers the <paramref name="changeTokenConsumer"/> action to be called whenever the token produced changes. /// </summary> /// <param name="changeTokenProducer">Produces the change token.</param> /// <param name="changeTokenConsumer">Action called when the token changes.</param> /// <returns></returns> public static IDisposable OnChange(Func<IChangeToken?> changeTokenProducer!!, Action changeTokenConsumer!!) { return new ChangeTokenRegistration<Action>(changeTokenProducer, callback => callback(), changeTokenConsumer); } /// <summary> /// Registers the <paramref name="changeTokenConsumer"/> action to be called whenever the token produced changes. /// </summary> /// <param name="changeTokenProducer">Produces the change token.</param> /// <param name="changeTokenConsumer">Action called when the token changes.</param> /// <param name="state">state for the consumer.</param> /// <returns></returns> public static IDisposable OnChange<TState>(Func<IChangeToken?> changeTokenProducer!!, Action<TState> changeTokenConsumer!!, TState state) { return new ChangeTokenRegistration<TState>(changeTokenProducer, changeTokenConsumer, state); } private sealed class ChangeTokenRegistration<TState> : IDisposable { private readonly Func<IChangeToken?> _changeTokenProducer; private readonly Action<TState> _changeTokenConsumer; private readonly TState _state; private IDisposable? _disposable; private static readonly NoopDisposable _disposedSentinel = new NoopDisposable(); public ChangeTokenRegistration(Func<IChangeToken?> changeTokenProducer, Action<TState> changeTokenConsumer, TState state) { _changeTokenProducer = changeTokenProducer; _changeTokenConsumer = changeTokenConsumer; _state = state; IChangeToken? token = changeTokenProducer(); RegisterChangeTokenCallback(token); } private void OnChangeTokenFired() { // The order here is important. We need to take the token and then apply our changes BEFORE // registering. This prevents us from possible having two change updates to process concurrently. // // If the token changes after we take the token, then we'll process the update immediately upon // registering the callback. IChangeToken? token = _changeTokenProducer(); try { _changeTokenConsumer(_state); } finally { // We always want to ensure the callback is registered RegisterChangeTokenCallback(token); } } private void RegisterChangeTokenCallback(IChangeToken? token) { if (token is null) { return; } IDisposable registraton = token.RegisterChangeCallback(s => ((ChangeTokenRegistration<TState>?)s)!.OnChangeTokenFired(), this); SetDisposable(registraton); } private void SetDisposable(IDisposable disposable) { // We don't want to transition from _disposedSentinel => anything since it's terminal // but we want to allow going from previously assigned disposable, to another // disposable. IDisposable? current = Volatile.Read(ref _disposable); // If Dispose was called, then immediately dispose the disposable if (current == _disposedSentinel) { disposable.Dispose(); return; } // Otherwise, try to update the disposable IDisposable? previous = Interlocked.CompareExchange(ref _disposable, disposable, current); if (previous == _disposedSentinel) { // The subscription was disposed so we dispose immediately and return disposable.Dispose(); } else if (previous == current) { // We successfully assigned the _disposable field to disposable } else { // Sets can never overlap with other SetDisposable calls so we should never get into this situation throw new InvalidOperationException("Somebody else set the _disposable field"); } } public void Dispose() { // If the previous value is disposable then dispose it, otherwise, // now we've set the disposed sentinel Interlocked.Exchange(ref _disposable, _disposedSentinel)?.Dispose(); } private sealed class NoopDisposable : IDisposable { public void Dispose() { } } } } }
-1
dotnet/runtime
66,142
Use RegexGenerator in System.Private.Xml
Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
stephentoub
2022-03-03T14:28:29Z
2022-03-04T11:33:07Z
4a9d77052206d01ab5a62f16fb44f2f2a168babf
9053aa1e66ab7c1af7a14e649fb0bf0b0c501cde
Use RegexGenerator in System.Private.Xml. Closes https://github.com/dotnet/runtime/issues/62105 (I believe this is the only remaining place regexes are constructed from patterns known at compile time in libraries only targeting netcoreappcurrent).
./src/tests/JIT/Directed/PREFIX/PrimitiveVT/callconv2_cs_r.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType /> <Optimize>False</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="callconv2.cs" /> </ItemGroup> <ItemGroup> <ProjectReference Include="helper.csproj" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType /> <Optimize>False</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="callconv2.cs" /> </ItemGroup> <ItemGroup> <ProjectReference Include="helper.csproj" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./.github/fabricbot/Makefile
generate: node scripts/updateAreaPodConfigs.js .DEFAULT_GOAL := generate
generate: node updateAreaPodConfigs.js .DEFAULT_GOAL := generate
1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./.github/fabricbot/README.md
# FabricBot scripts Contains scripts used for generating FabricBot automation for the area pod issue/PR project boards. Scripts require nodejs to run: ```bash $ node scripts/updateAreaPodConfigs.js ``` or if your system has `make` ```bash $ make ``` Running the script will generate JSON configuration files under the `generated/` subfolder. The generated files are being tracked by git to simplify auditing changes of the generator script. When making changes to the generator script, please ensure that you have run the script and have committed the new generated files. Please note that the generated files themselves have no impact on live FabricBot configuration. The changes need to be merged into the `.github/fabricbot.json` file at the root of the `runtime` and `dotnet-api-docs` repos. Merging the generated config into those files relies on manual editing to preserve other configuration blocks not affected by this script.
# FabricBot scripts Contains scripts used for generating FabricBot automation for the area pod issue/PR project boards. Scripts require nodejs to run: ```bash $ node updateAreaPodConfigs.js ``` or if your system has `make` ```bash $ make ``` Running the script will generate JSON configuration files under the `generated/` subfolder. The generated files are being tracked by git to simplify auditing changes of the generator script. When making changes to the generator script, please ensure that you have run the script and have committed the new generated files. Please note that the generated files themselves have no impact on live FabricBot configuration. The changes need to be merged into the `.github/fabricbot.json` file at the root of the `runtime`, `dotnet-api-docs`, and `machinelearning` repos. Merging the generated config into those files relies on manual editing to preserve other configuration blocks not affected by this script.
1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./.github/fabricbot/generated/areapods-dotnet-api-docs.json
[ { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Meta" } } ] }, { "operator": "or", "operands": [ { "name": "isAction", "parameters": { "action": "reopened" } }, { "operator": "not", "operands": [ { "name": "isInMilestone", "parameters": {} } ] } ] } ] }, { "operator": "or", "operands": [ { "name": "labelAdded", "parameters": { "label": "area-Meta" } } ] } ] }, { "name": "isOpen", "parameters": {} }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "isOrgProject": true, "columnName": "Triaged" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Eric / Jeff - Issue Triage] Add new issue to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssueCommentResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Meta" } } ] }, { "operator": "not", "operands": [ { "name": "isCloseAndComment", "parameters": {} } ] }, { "operator": "not", "operands": [ { "name": "activitySenderHasPermissions", "parameters": { "permissions": "write" } } ] }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } ] }, "eventType": "issue", "eventNames": [ "issue_comment" ], "taskName": "[Area Pod: Eric / Jeff - Issue Triage] Needs Further Triage", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Meta" } } ] } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Eric / Jeff - Issue Triage] Remove relabeled issues", "actions": [ { "name": "removeFromProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Meta" } } ] }, { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - PRs", "isOrgProject": true } } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Eric / Jeff - PRs] Add new PR to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - PRs", "columnName": "Needs Champion", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eric / Jeff - PRs", "columnName": "Needs Champion", "isOrgProject": true } }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Meta" } } ] } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Eric / Jeff - PRs] Remove relabeled PRs", "actions": [ { "name": "removeFromProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - PRs", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.CodeDom" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Configuration" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Emit" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Metadata" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Resources" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.CompilerServices" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.RegularExpressions" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Channels" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Tasks" } }, { "name": "hasLabel", "parameters": { "label": "area-System.DirectoryServices" } } ] }, { "operator": "or", "operands": [ { "name": "isAction", "parameters": { "action": "reopened" } }, { "operator": "not", "operands": [ { "name": "isInMilestone", "parameters": {} } ] } ] } ] }, { "operator": "or", "operands": [ { "name": "labelAdded", "parameters": { "label": "area-System.CodeDom" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Configuration" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Reflection" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Reflection.Emit" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Reflection.Metadata" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Resources" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Runtime.CompilerServices" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Text.RegularExpressions" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Threading.Channels" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Threading.Tasks" } }, { "name": "labelAdded", "parameters": { "label": "area-System.DirectoryServices" } } ] } ] }, { "name": "isOpen", "parameters": {} }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "isOrgProject": true, "columnName": "Triaged" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Buyaa / Jose / Steve - Issue Triage] Add new issue to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssueCommentResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.CodeDom" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Configuration" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Emit" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Metadata" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Resources" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.CompilerServices" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.RegularExpressions" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Channels" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Tasks" } }, { "name": "hasLabel", "parameters": { "label": "area-System.DirectoryServices" } } ] }, { "operator": "not", "operands": [ { "name": "isCloseAndComment", "parameters": {} } ] }, { "operator": "not", "operands": [ { "name": "activitySenderHasPermissions", "parameters": { "permissions": "write" } } ] }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } ] }, "eventType": "issue", "eventNames": [ "issue_comment" ], "taskName": "[Area Pod: Buyaa / Jose / Steve - Issue Triage] Needs Further Triage", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.CodeDom" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Configuration" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Reflection" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Emit" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Metadata" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Resources" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.CompilerServices" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Text.RegularExpressions" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Channels" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Tasks" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.DirectoryServices" } } ] } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Buyaa / Jose / Steve - Issue Triage] Remove relabeled issues", "actions": [ { "name": "removeFromProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.CodeDom" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Configuration" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Emit" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Metadata" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Resources" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.CompilerServices" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.RegularExpressions" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Channels" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Tasks" } }, { "name": "hasLabel", "parameters": { "label": "area-System.DirectoryServices" } } ] }, { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - PRs", "isOrgProject": true } } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Buyaa / Jose / Steve - PRs] Add new PR to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - PRs", "columnName": "Needs Champion", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - PRs", "columnName": "Needs Champion", "isOrgProject": true } }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.CodeDom" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Configuration" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Reflection" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Emit" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Metadata" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Resources" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.CompilerServices" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Text.RegularExpressions" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Channels" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Tasks" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.DirectoryServices" } } ] } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Buyaa / Jose / Steve - PRs] Remove relabeled PRs", "actions": [ { "name": "removeFromProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - PRs", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Collections" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Linq" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Json" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Xml" } } ] }, { "operator": "or", "operands": [ { "name": "isAction", "parameters": { "action": "reopened" } }, { "operator": "not", "operands": [ { "name": "isInMilestone", "parameters": {} } ] } ] } ] }, { "operator": "or", "operands": [ { "name": "labelAdded", "parameters": { "label": "area-System.Collections" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Linq" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Text.Json" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Xml" } } ] } ] }, { "name": "isOpen", "parameters": {} }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "isOrgProject": true, "columnName": "Triaged" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Eirik / Krzysztof / Layomi - Issue Triage] Add new issue to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssueCommentResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Collections" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Linq" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Json" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Xml" } } ] }, { "operator": "not", "operands": [ { "name": "isCloseAndComment", "parameters": {} } ] }, { "operator": "not", "operands": [ { "name": "activitySenderHasPermissions", "parameters": { "permissions": "write" } } ] }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } ] }, "eventType": "issue", "eventNames": [ "issue_comment" ], "taskName": "[Area Pod: Eirik / Krzysztof / Layomi - Issue Triage] Needs Further Triage", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Collections" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Linq" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Text.Json" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Xml" } } ] } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Eirik / Krzysztof / Layomi - Issue Triage] Remove relabeled issues", "actions": [ { "name": "removeFromProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Collections" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Linq" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Json" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Xml" } } ] }, { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - PRs", "isOrgProject": true } } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Eirik / Krzysztof / Layomi - PRs] Add new PR to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - PRs", "columnName": "Needs Champion", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - PRs", "columnName": "Needs Champion", "isOrgProject": true } }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Collections" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Linq" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Text.Json" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Xml" } } ] } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Eirik / Krzysztof / Layomi - PRs] Remove relabeled PRs", "actions": [ { "name": "removeFromProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - PRs", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-DependencyModel" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Caching" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Configuration" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-DependencyInjection" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Hosting" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Logging" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Options" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Primitives" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel.Composition" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Composition" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Activity" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Globalization" } } ] }, { "operator": "or", "operands": [ { "name": "isAction", "parameters": { "action": "reopened" } }, { "operator": "not", "operands": [ { "name": "isInMilestone", "parameters": {} } ] } ] } ] }, { "operator": "or", "operands": [ { "name": "labelAdded", "parameters": { "label": "area-DependencyModel" } }, { "name": "labelAdded", "parameters": { "label": "area-Extensions-Caching" } }, { "name": "labelAdded", "parameters": { "label": "area-Extensions-Configuration" } }, { "name": "labelAdded", "parameters": { "label": "area-Extensions-DependencyInjection" } }, { "name": "labelAdded", "parameters": { "label": "area-Extensions-Hosting" } }, { "name": "labelAdded", "parameters": { "label": "area-Extensions-Logging" } }, { "name": "labelAdded", "parameters": { "label": "area-Extensions-Options" } }, { "name": "labelAdded", "parameters": { "label": "area-Extensions-Primitives" } }, { "name": "labelAdded", "parameters": { "label": "area-System.ComponentModel" } }, { "name": "labelAdded", "parameters": { "label": "area-System.ComponentModel.Composition" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Composition" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Diagnostics.Activity" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Globalization" } } ] } ] }, { "name": "isOpen", "parameters": {} }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "isOrgProject": true, "columnName": "Triaged" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Eric / Maryam / Tarek - Issue Triage] Add new issue to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssueCommentResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-DependencyModel" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Caching" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Configuration" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-DependencyInjection" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Hosting" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Logging" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Options" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Primitives" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel.Composition" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Composition" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Activity" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Globalization" } } ] }, { "operator": "not", "operands": [ { "name": "isCloseAndComment", "parameters": {} } ] }, { "operator": "not", "operands": [ { "name": "activitySenderHasPermissions", "parameters": { "permissions": "write" } } ] }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } ] }, "eventType": "issue", "eventNames": [ "issue_comment" ], "taskName": "[Area Pod: Eric / Maryam / Tarek - Issue Triage] Needs Further Triage", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-DependencyModel" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Caching" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Configuration" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-DependencyInjection" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Hosting" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Logging" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Options" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Primitives" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel.Composition" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Composition" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Activity" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Globalization" } } ] } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Eric / Maryam / Tarek - Issue Triage] Remove relabeled issues", "actions": [ { "name": "removeFromProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-DependencyModel" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Caching" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Configuration" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-DependencyInjection" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Hosting" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Logging" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Options" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Primitives" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel.Composition" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Composition" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Activity" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Globalization" } } ] }, { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - PRs", "isOrgProject": true } } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Eric / Maryam / Tarek - PRs] Add new PR to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - PRs", "columnName": "Needs Champion", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - PRs", "columnName": "Needs Champion", "isOrgProject": true } }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-DependencyModel" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Caching" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Configuration" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-DependencyInjection" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Hosting" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Logging" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Options" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Primitives" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel.Composition" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Composition" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Activity" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Globalization" } } ] } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Eric / Maryam / Tarek - PRs] Remove relabeled PRs", "actions": [ { "name": "removeFromProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - PRs", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Infrastructure-libraries" } }, { "name": "hasLabel", "parameters": { "label": "area-Microsoft.Win32" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.EventLog" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.PerformanceCounter" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.TraceSource" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Drawing" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Management" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ServiceProcess" } } ] }, { "operator": "or", "operands": [ { "name": "isAction", "parameters": { "action": "reopened" } }, { "operator": "not", "operands": [ { "name": "isInMilestone", "parameters": {} } ] } ] } ] }, { "operator": "or", "operands": [ { "name": "labelAdded", "parameters": { "label": "area-Infrastructure-libraries" } }, { "name": "labelAdded", "parameters": { "label": "area-Microsoft.Win32" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Diagnostics.EventLog" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Diagnostics.PerformanceCounter" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Diagnostics.TraceSource" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Drawing" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Management" } }, { "name": "labelAdded", "parameters": { "label": "area-System.ServiceProcess" } } ] } ] }, { "name": "isOpen", "parameters": {} }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "isOrgProject": true, "columnName": "Triaged" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Carlos / Jeremy - Issue Triage] Add new issue to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssueCommentResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Infrastructure-libraries" } }, { "name": "hasLabel", "parameters": { "label": "area-Microsoft.Win32" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.EventLog" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.PerformanceCounter" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.TraceSource" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Drawing" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Management" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ServiceProcess" } } ] }, { "operator": "not", "operands": [ { "name": "isCloseAndComment", "parameters": {} } ] }, { "operator": "not", "operands": [ { "name": "activitySenderHasPermissions", "parameters": { "permissions": "write" } } ] }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } ] }, "eventType": "issue", "eventNames": [ "issue_comment" ], "taskName": "[Area Pod: Carlos / Jeremy - Issue Triage] Needs Further Triage", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Infrastructure-libraries" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Microsoft.Win32" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.EventLog" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.PerformanceCounter" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.TraceSource" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Drawing" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Management" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.ServiceProcess" } } ] } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Carlos / Jeremy - Issue Triage] Remove relabeled issues", "actions": [ { "name": "removeFromProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Infrastructure-libraries" } }, { "name": "hasLabel", "parameters": { "label": "area-Microsoft.Win32" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.EventLog" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.PerformanceCounter" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.TraceSource" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Drawing" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Management" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ServiceProcess" } } ] }, { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - PRs", "isOrgProject": true } } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Carlos / Jeremy - PRs] Add new PR to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - PRs", "columnName": "Needs Champion", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - PRs", "columnName": "Needs Champion", "isOrgProject": true } }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Infrastructure-libraries" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Microsoft.Win32" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.EventLog" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.PerformanceCounter" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.TraceSource" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Drawing" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Management" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.ServiceProcess" } } ] } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Carlos / Jeremy - PRs] Remove relabeled PRs", "actions": [ { "name": "removeFromProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - PRs", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-FileSystem" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Console" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Process" } }, { "name": "hasLabel", "parameters": { "label": "area-System.IO" } }, { "name": "hasLabel", "parameters": { "label": "area-System.IO.Compression" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Linq.Parallel" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Memory" } } ] }, { "operator": "or", "operands": [ { "name": "isAction", "parameters": { "action": "reopened" } }, { "operator": "not", "operands": [ { "name": "isInMilestone", "parameters": {} } ] } ] } ] }, { "operator": "or", "operands": [ { "name": "labelAdded", "parameters": { "label": "area-Extensions-FileSystem" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Console" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Diagnostics.Process" } }, { "name": "labelAdded", "parameters": { "label": "area-System.IO" } }, { "name": "labelAdded", "parameters": { "label": "area-System.IO.Compression" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Linq.Parallel" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Memory" } } ] } ] }, { "name": "isOpen", "parameters": {} }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "isOrgProject": true, "columnName": "Triaged" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Adam / David - Issue Triage] Add new issue to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssueCommentResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-FileSystem" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Console" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Process" } }, { "name": "hasLabel", "parameters": { "label": "area-System.IO" } }, { "name": "hasLabel", "parameters": { "label": "area-System.IO.Compression" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Linq.Parallel" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Memory" } } ] }, { "operator": "not", "operands": [ { "name": "isCloseAndComment", "parameters": {} } ] }, { "operator": "not", "operands": [ { "name": "activitySenderHasPermissions", "parameters": { "permissions": "write" } } ] }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } ] }, "eventType": "issue", "eventNames": [ "issue_comment" ], "taskName": "[Area Pod: Adam / David - Issue Triage] Needs Further Triage", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-FileSystem" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Console" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Process" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.IO" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.IO.Compression" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Linq.Parallel" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Memory" } } ] } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Adam / David - Issue Triage] Remove relabeled issues", "actions": [ { "name": "removeFromProject", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-FileSystem" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Console" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Process" } }, { "name": "hasLabel", "parameters": { "label": "area-System.IO" } }, { "name": "hasLabel", "parameters": { "label": "area-System.IO.Compression" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Linq.Parallel" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Memory" } } ] }, { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Adam / David - PRs", "isOrgProject": true } } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Adam / David - PRs] Add new PR to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Adam / David - PRs", "columnName": "Needs Champion", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Adam / David - PRs", "columnName": "Needs Champion", "isOrgProject": true } }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-FileSystem" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Console" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Process" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.IO" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.IO.Compression" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Linq.Parallel" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Memory" } } ] } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Adam / David - PRs] Remove relabeled PRs", "actions": [ { "name": "removeFromProject", "parameters": { "projectName": "Area Pod: Adam / David - PRs", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Buffers" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Numerics" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Numerics.Tensors" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.Intrinsics" } } ] }, { "operator": "or", "operands": [ { "name": "isAction", "parameters": { "action": "reopened" } }, { "operator": "not", "operands": [ { "name": "isInMilestone", "parameters": {} } ] } ] } ] }, { "operator": "or", "operands": [ { "name": "labelAdded", "parameters": { "label": "area-System.Buffers" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Numerics" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Numerics.Tensors" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Runtime" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Runtime.Intrinsics" } } ] } ] }, { "name": "isOpen", "parameters": {} }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "isOrgProject": true, "columnName": "Triaged" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Michael / Tanner - Issue Triage] Add new issue to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssueCommentResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Buffers" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Numerics" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Numerics.Tensors" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.Intrinsics" } } ] }, { "operator": "not", "operands": [ { "name": "isCloseAndComment", "parameters": {} } ] }, { "operator": "not", "operands": [ { "name": "activitySenderHasPermissions", "parameters": { "permissions": "write" } } ] }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } ] }, "eventType": "issue", "eventNames": [ "issue_comment" ], "taskName": "[Area Pod: Michael / Tanner - Issue Triage] Needs Further Triage", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Buffers" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Numerics" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Numerics.Tensors" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Runtime" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.Intrinsics" } } ] } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Michael / Tanner - Issue Triage] Remove relabeled issues", "actions": [ { "name": "removeFromProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Buffers" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Numerics" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Numerics.Tensors" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.Intrinsics" } } ] }, { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - PRs", "isOrgProject": true } } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Michael / Tanner - PRs] Add new PR to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - PRs", "columnName": "Needs Champion", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Michael / Tanner - PRs", "columnName": "Needs Champion", "isOrgProject": true } }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Buffers" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Numerics" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Numerics.Tensors" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Runtime" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.Intrinsics" } } ] } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Michael / Tanner - PRs] Remove relabeled PRs", "actions": [ { "name": "removeFromProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - PRs", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Asn1" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Cbor" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Security" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encoding" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encodings.Web" } } ] }, { "operator": "or", "operands": [ { "name": "isAction", "parameters": { "action": "reopened" } }, { "operator": "not", "operands": [ { "name": "isInMilestone", "parameters": {} } ] } ] } ] }, { "operator": "or", "operands": [ { "name": "labelAdded", "parameters": { "label": "area-System.Formats.Asn1" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Formats.Cbor" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Security" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Text.Encoding" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Text.Encodings.Web" } } ] } ] }, { "name": "isOpen", "parameters": {} }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "isOrgProject": true, "columnName": "Triaged" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Jeremy / Levi - Issue Triage] Add new issue to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssueCommentResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Asn1" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Cbor" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Security" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encoding" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encodings.Web" } } ] }, { "operator": "not", "operands": [ { "name": "isCloseAndComment", "parameters": {} } ] }, { "operator": "not", "operands": [ { "name": "activitySenderHasPermissions", "parameters": { "permissions": "write" } } ] }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } ] }, "eventType": "issue", "eventNames": [ "issue_comment" ], "taskName": "[Area Pod: Jeremy / Levi - Issue Triage] Needs Further Triage", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Asn1" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Cbor" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Security" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encoding" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encodings.Web" } } ] } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Jeremy / Levi - Issue Triage] Remove relabeled issues", "actions": [ { "name": "removeFromProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Asn1" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Cbor" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Security" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encoding" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encodings.Web" } } ] }, { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - PRs", "isOrgProject": true } } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Jeremy / Levi - PRs] Add new PR to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - PRs", "columnName": "Needs Champion", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Jeremy / Levi - PRs", "columnName": "Needs Champion", "isOrgProject": true } }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Asn1" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Cbor" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Security" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encoding" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encodings.Web" } } ] } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Jeremy / Levi - PRs] Remove relabeled PRs", "actions": [ { "name": "removeFromProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - PRs", "isOrgProject": true } } ] } } ]
[ { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Meta" } } ] }, { "operator": "or", "operands": [ { "name": "isAction", "parameters": { "action": "reopened" } }, { "operator": "not", "operands": [ { "name": "isInMilestone", "parameters": {} } ] } ] } ] }, { "operator": "or", "operands": [ { "name": "labelAdded", "parameters": { "label": "area-Meta" } } ] } ] }, { "name": "isOpen", "parameters": {} }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "isOrgProject": true, "columnName": "Triaged" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Eric / Jeff - Issue Triage] Add new issue to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssueCommentResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Meta" } } ] }, { "operator": "not", "operands": [ { "name": "isCloseAndComment", "parameters": {} } ] }, { "operator": "not", "operands": [ { "name": "activitySenderHasPermissions", "parameters": { "permissions": "write" } } ] }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } ] }, "eventType": "issue", "eventNames": [ "issue_comment" ], "taskName": "[Area Pod: Eric / Jeff - Issue Triage] Needs Further Triage", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Meta" } } ] } ] }, { "name": "isAction", "parameters": { "action": "unlabeled" } } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Eric / Jeff - Issue Triage] Mark relabeled issues as Triaged", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "isOrgProject": true } }, { "operator": "or", "operands": [ { "name": "addedToMilestone", "parameters": {} }, { "name": "labelAdded", "parameters": { "label": "needs-author-action" } }, { "name": "labelAdded", "parameters": { "label": "api-ready-for-review" } }, { "name": "isAction", "parameters": { "action": "closed" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Eric / Jeff - Issue Triage] Move to Triaged Column", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "columnName": "Triaged", "isOrgProject": true } }, { "name": "removeLabel", "parameters": { "label": "untriaged" } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Meta" } } ] }, { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - PRs", "isOrgProject": true } } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Eric / Jeff - PRs] Add new PR to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - PRs", "columnName": "Needs Champion", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eric / Jeff - PRs", "columnName": "Done", "isOrgProject": true } } ] }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Meta" } } ] } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Eric / Jeff - PRs] Mark relabeled PRs as Done", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - PRs", "columnName": "Done", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.CodeDom" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Configuration" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Emit" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Metadata" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Resources" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.CompilerServices" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.RegularExpressions" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Channels" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Tasks" } }, { "name": "hasLabel", "parameters": { "label": "area-System.DirectoryServices" } } ] }, { "operator": "or", "operands": [ { "name": "isAction", "parameters": { "action": "reopened" } }, { "operator": "not", "operands": [ { "name": "isInMilestone", "parameters": {} } ] } ] } ] }, { "operator": "or", "operands": [ { "name": "labelAdded", "parameters": { "label": "area-System.CodeDom" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Configuration" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Reflection" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Reflection.Emit" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Reflection.Metadata" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Resources" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Runtime.CompilerServices" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Text.RegularExpressions" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Threading.Channels" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Threading.Tasks" } }, { "name": "labelAdded", "parameters": { "label": "area-System.DirectoryServices" } } ] } ] }, { "name": "isOpen", "parameters": {} }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "isOrgProject": true, "columnName": "Triaged" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Buyaa / Jose / Steve - Issue Triage] Add new issue to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssueCommentResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.CodeDom" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Configuration" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Emit" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Metadata" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Resources" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.CompilerServices" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.RegularExpressions" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Channels" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Tasks" } }, { "name": "hasLabel", "parameters": { "label": "area-System.DirectoryServices" } } ] }, { "operator": "not", "operands": [ { "name": "isCloseAndComment", "parameters": {} } ] }, { "operator": "not", "operands": [ { "name": "activitySenderHasPermissions", "parameters": { "permissions": "write" } } ] }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } ] }, "eventType": "issue", "eventNames": [ "issue_comment" ], "taskName": "[Area Pod: Buyaa / Jose / Steve - Issue Triage] Needs Further Triage", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.CodeDom" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Configuration" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Reflection" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Emit" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Metadata" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Resources" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.CompilerServices" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Text.RegularExpressions" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Channels" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Tasks" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.DirectoryServices" } } ] } ] }, { "name": "isAction", "parameters": { "action": "unlabeled" } } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Buyaa / Jose / Steve - Issue Triage] Mark relabeled issues as Triaged", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "isOrgProject": true } }, { "operator": "or", "operands": [ { "name": "addedToMilestone", "parameters": {} }, { "name": "labelAdded", "parameters": { "label": "needs-author-action" } }, { "name": "labelAdded", "parameters": { "label": "api-ready-for-review" } }, { "name": "isAction", "parameters": { "action": "closed" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Buyaa / Jose / Steve - Issue Triage] Move to Triaged Column", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "columnName": "Triaged", "isOrgProject": true } }, { "name": "removeLabel", "parameters": { "label": "untriaged" } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.CodeDom" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Configuration" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Emit" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Metadata" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Resources" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.CompilerServices" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.RegularExpressions" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Channels" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Tasks" } }, { "name": "hasLabel", "parameters": { "label": "area-System.DirectoryServices" } } ] }, { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - PRs", "isOrgProject": true } } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Buyaa / Jose / Steve - PRs] Add new PR to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - PRs", "columnName": "Needs Champion", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - PRs", "columnName": "Done", "isOrgProject": true } } ] }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.CodeDom" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Configuration" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Reflection" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Emit" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Metadata" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Resources" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.CompilerServices" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Text.RegularExpressions" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Channels" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Tasks" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.DirectoryServices" } } ] } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Buyaa / Jose / Steve - PRs] Mark relabeled PRs as Done", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - PRs", "columnName": "Done", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Collections" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Linq" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Json" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Xml" } } ] }, { "operator": "or", "operands": [ { "name": "isAction", "parameters": { "action": "reopened" } }, { "operator": "not", "operands": [ { "name": "isInMilestone", "parameters": {} } ] } ] } ] }, { "operator": "or", "operands": [ { "name": "labelAdded", "parameters": { "label": "area-System.Collections" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Linq" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Text.Json" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Xml" } } ] } ] }, { "name": "isOpen", "parameters": {} }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "isOrgProject": true, "columnName": "Triaged" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Eirik / Krzysztof / Layomi - Issue Triage] Add new issue to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssueCommentResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Collections" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Linq" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Json" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Xml" } } ] }, { "operator": "not", "operands": [ { "name": "isCloseAndComment", "parameters": {} } ] }, { "operator": "not", "operands": [ { "name": "activitySenderHasPermissions", "parameters": { "permissions": "write" } } ] }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } ] }, "eventType": "issue", "eventNames": [ "issue_comment" ], "taskName": "[Area Pod: Eirik / Krzysztof / Layomi - Issue Triage] Needs Further Triage", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Collections" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Linq" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Text.Json" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Xml" } } ] } ] }, { "name": "isAction", "parameters": { "action": "unlabeled" } } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Eirik / Krzysztof / Layomi - Issue Triage] Mark relabeled issues as Triaged", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "isOrgProject": true } }, { "operator": "or", "operands": [ { "name": "addedToMilestone", "parameters": {} }, { "name": "labelAdded", "parameters": { "label": "needs-author-action" } }, { "name": "labelAdded", "parameters": { "label": "api-ready-for-review" } }, { "name": "isAction", "parameters": { "action": "closed" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Eirik / Krzysztof / Layomi - Issue Triage] Move to Triaged Column", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "columnName": "Triaged", "isOrgProject": true } }, { "name": "removeLabel", "parameters": { "label": "untriaged" } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Collections" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Linq" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Json" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Xml" } } ] }, { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - PRs", "isOrgProject": true } } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Eirik / Krzysztof / Layomi - PRs] Add new PR to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - PRs", "columnName": "Needs Champion", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - PRs", "columnName": "Done", "isOrgProject": true } } ] }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Collections" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Linq" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Text.Json" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Xml" } } ] } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Eirik / Krzysztof / Layomi - PRs] Mark relabeled PRs as Done", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - PRs", "columnName": "Done", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-DependencyModel" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Caching" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Configuration" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-DependencyInjection" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Hosting" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Logging" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Options" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Primitives" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel.Composition" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Composition" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Activity" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Globalization" } } ] }, { "operator": "or", "operands": [ { "name": "isAction", "parameters": { "action": "reopened" } }, { "operator": "not", "operands": [ { "name": "isInMilestone", "parameters": {} } ] } ] } ] }, { "operator": "or", "operands": [ { "name": "labelAdded", "parameters": { "label": "area-DependencyModel" } }, { "name": "labelAdded", "parameters": { "label": "area-Extensions-Caching" } }, { "name": "labelAdded", "parameters": { "label": "area-Extensions-Configuration" } }, { "name": "labelAdded", "parameters": { "label": "area-Extensions-DependencyInjection" } }, { "name": "labelAdded", "parameters": { "label": "area-Extensions-Hosting" } }, { "name": "labelAdded", "parameters": { "label": "area-Extensions-Logging" } }, { "name": "labelAdded", "parameters": { "label": "area-Extensions-Options" } }, { "name": "labelAdded", "parameters": { "label": "area-Extensions-Primitives" } }, { "name": "labelAdded", "parameters": { "label": "area-System.ComponentModel" } }, { "name": "labelAdded", "parameters": { "label": "area-System.ComponentModel.Composition" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Composition" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Diagnostics.Activity" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Globalization" } } ] } ] }, { "name": "isOpen", "parameters": {} }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "isOrgProject": true, "columnName": "Triaged" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Eric / Maryam / Tarek - Issue Triage] Add new issue to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssueCommentResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-DependencyModel" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Caching" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Configuration" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-DependencyInjection" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Hosting" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Logging" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Options" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Primitives" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel.Composition" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Composition" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Activity" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Globalization" } } ] }, { "operator": "not", "operands": [ { "name": "isCloseAndComment", "parameters": {} } ] }, { "operator": "not", "operands": [ { "name": "activitySenderHasPermissions", "parameters": { "permissions": "write" } } ] }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } ] }, "eventType": "issue", "eventNames": [ "issue_comment" ], "taskName": "[Area Pod: Eric / Maryam / Tarek - Issue Triage] Needs Further Triage", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-DependencyModel" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Caching" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Configuration" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-DependencyInjection" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Hosting" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Logging" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Options" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Primitives" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel.Composition" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Composition" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Activity" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Globalization" } } ] } ] }, { "name": "isAction", "parameters": { "action": "unlabeled" } } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Eric / Maryam / Tarek - Issue Triage] Mark relabeled issues as Triaged", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "isOrgProject": true } }, { "operator": "or", "operands": [ { "name": "addedToMilestone", "parameters": {} }, { "name": "labelAdded", "parameters": { "label": "needs-author-action" } }, { "name": "labelAdded", "parameters": { "label": "api-ready-for-review" } }, { "name": "isAction", "parameters": { "action": "closed" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Eric / Maryam / Tarek - Issue Triage] Move to Triaged Column", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "columnName": "Triaged", "isOrgProject": true } }, { "name": "removeLabel", "parameters": { "label": "untriaged" } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-DependencyModel" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Caching" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Configuration" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-DependencyInjection" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Hosting" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Logging" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Options" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Primitives" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel.Composition" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Composition" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Activity" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Globalization" } } ] }, { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - PRs", "isOrgProject": true } } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Eric / Maryam / Tarek - PRs] Add new PR to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - PRs", "columnName": "Needs Champion", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - PRs", "columnName": "Done", "isOrgProject": true } } ] }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-DependencyModel" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Caching" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Configuration" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-DependencyInjection" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Hosting" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Logging" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Options" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Primitives" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel.Composition" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Composition" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Activity" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Globalization" } } ] } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Eric / Maryam / Tarek - PRs] Mark relabeled PRs as Done", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - PRs", "columnName": "Done", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Infrastructure-libraries" } }, { "name": "hasLabel", "parameters": { "label": "area-Microsoft.Win32" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.EventLog" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.PerformanceCounter" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.TraceSource" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Drawing" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Management" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ServiceProcess" } } ] }, { "operator": "or", "operands": [ { "name": "isAction", "parameters": { "action": "reopened" } }, { "operator": "not", "operands": [ { "name": "isInMilestone", "parameters": {} } ] } ] } ] }, { "operator": "or", "operands": [ { "name": "labelAdded", "parameters": { "label": "area-Infrastructure-libraries" } }, { "name": "labelAdded", "parameters": { "label": "area-Microsoft.Win32" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Diagnostics.EventLog" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Diagnostics.PerformanceCounter" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Diagnostics.TraceSource" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Drawing" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Management" } }, { "name": "labelAdded", "parameters": { "label": "area-System.ServiceProcess" } } ] } ] }, { "name": "isOpen", "parameters": {} }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "isOrgProject": true, "columnName": "Triaged" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Carlos / Jeremy - Issue Triage] Add new issue to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssueCommentResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Infrastructure-libraries" } }, { "name": "hasLabel", "parameters": { "label": "area-Microsoft.Win32" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.EventLog" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.PerformanceCounter" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.TraceSource" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Drawing" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Management" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ServiceProcess" } } ] }, { "operator": "not", "operands": [ { "name": "isCloseAndComment", "parameters": {} } ] }, { "operator": "not", "operands": [ { "name": "activitySenderHasPermissions", "parameters": { "permissions": "write" } } ] }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } ] }, "eventType": "issue", "eventNames": [ "issue_comment" ], "taskName": "[Area Pod: Carlos / Jeremy - Issue Triage] Needs Further Triage", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Infrastructure-libraries" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Microsoft.Win32" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.EventLog" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.PerformanceCounter" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.TraceSource" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Drawing" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Management" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.ServiceProcess" } } ] } ] }, { "name": "isAction", "parameters": { "action": "unlabeled" } } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Carlos / Jeremy - Issue Triage] Mark relabeled issues as Triaged", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "isOrgProject": true } }, { "operator": "or", "operands": [ { "name": "addedToMilestone", "parameters": {} }, { "name": "labelAdded", "parameters": { "label": "needs-author-action" } }, { "name": "labelAdded", "parameters": { "label": "api-ready-for-review" } }, { "name": "isAction", "parameters": { "action": "closed" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Carlos / Jeremy - Issue Triage] Move to Triaged Column", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "columnName": "Triaged", "isOrgProject": true } }, { "name": "removeLabel", "parameters": { "label": "untriaged" } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Infrastructure-libraries" } }, { "name": "hasLabel", "parameters": { "label": "area-Microsoft.Win32" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.EventLog" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.PerformanceCounter" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.TraceSource" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Drawing" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Management" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ServiceProcess" } } ] }, { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - PRs", "isOrgProject": true } } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Carlos / Jeremy - PRs] Add new PR to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - PRs", "columnName": "Needs Champion", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - PRs", "columnName": "Done", "isOrgProject": true } } ] }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Infrastructure-libraries" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Microsoft.Win32" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.EventLog" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.PerformanceCounter" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.TraceSource" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Drawing" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Management" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.ServiceProcess" } } ] } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Carlos / Jeremy - PRs] Mark relabeled PRs as Done", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - PRs", "columnName": "Done", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-FileSystem" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Console" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Process" } }, { "name": "hasLabel", "parameters": { "label": "area-System.IO" } }, { "name": "hasLabel", "parameters": { "label": "area-System.IO.Compression" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Linq.Parallel" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Memory" } } ] }, { "operator": "or", "operands": [ { "name": "isAction", "parameters": { "action": "reopened" } }, { "operator": "not", "operands": [ { "name": "isInMilestone", "parameters": {} } ] } ] } ] }, { "operator": "or", "operands": [ { "name": "labelAdded", "parameters": { "label": "area-Extensions-FileSystem" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Console" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Diagnostics.Process" } }, { "name": "labelAdded", "parameters": { "label": "area-System.IO" } }, { "name": "labelAdded", "parameters": { "label": "area-System.IO.Compression" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Linq.Parallel" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Memory" } } ] } ] }, { "name": "isOpen", "parameters": {} }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "isOrgProject": true, "columnName": "Triaged" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Adam / David - Issue Triage] Add new issue to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssueCommentResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-FileSystem" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Console" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Process" } }, { "name": "hasLabel", "parameters": { "label": "area-System.IO" } }, { "name": "hasLabel", "parameters": { "label": "area-System.IO.Compression" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Linq.Parallel" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Memory" } } ] }, { "operator": "not", "operands": [ { "name": "isCloseAndComment", "parameters": {} } ] }, { "operator": "not", "operands": [ { "name": "activitySenderHasPermissions", "parameters": { "permissions": "write" } } ] }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } ] }, "eventType": "issue", "eventNames": [ "issue_comment" ], "taskName": "[Area Pod: Adam / David - Issue Triage] Needs Further Triage", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-FileSystem" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Console" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Process" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.IO" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.IO.Compression" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Linq.Parallel" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Memory" } } ] } ] }, { "name": "isAction", "parameters": { "action": "unlabeled" } } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Adam / David - Issue Triage] Mark relabeled issues as Triaged", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "isOrgProject": true } }, { "operator": "or", "operands": [ { "name": "addedToMilestone", "parameters": {} }, { "name": "labelAdded", "parameters": { "label": "needs-author-action" } }, { "name": "labelAdded", "parameters": { "label": "api-ready-for-review" } }, { "name": "isAction", "parameters": { "action": "closed" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Adam / David - Issue Triage] Move to Triaged Column", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "columnName": "Triaged", "isOrgProject": true } }, { "name": "removeLabel", "parameters": { "label": "untriaged" } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-FileSystem" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Console" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Process" } }, { "name": "hasLabel", "parameters": { "label": "area-System.IO" } }, { "name": "hasLabel", "parameters": { "label": "area-System.IO.Compression" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Linq.Parallel" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Memory" } } ] }, { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Adam / David - PRs", "isOrgProject": true } } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Adam / David - PRs] Add new PR to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Adam / David - PRs", "columnName": "Needs Champion", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Adam / David - PRs", "columnName": "Done", "isOrgProject": true } } ] }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-FileSystem" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Console" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Process" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.IO" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.IO.Compression" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Linq.Parallel" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Memory" } } ] } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Adam / David - PRs] Mark relabeled PRs as Done", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Adam / David - PRs", "columnName": "Done", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Buffers" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Numerics" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Numerics.Tensors" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.Intrinsics" } } ] }, { "operator": "or", "operands": [ { "name": "isAction", "parameters": { "action": "reopened" } }, { "operator": "not", "operands": [ { "name": "isInMilestone", "parameters": {} } ] } ] } ] }, { "operator": "or", "operands": [ { "name": "labelAdded", "parameters": { "label": "area-System.Buffers" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Numerics" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Numerics.Tensors" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Runtime" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Runtime.Intrinsics" } } ] } ] }, { "name": "isOpen", "parameters": {} }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "isOrgProject": true, "columnName": "Triaged" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Michael / Tanner - Issue Triage] Add new issue to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssueCommentResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Buffers" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Numerics" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Numerics.Tensors" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.Intrinsics" } } ] }, { "operator": "not", "operands": [ { "name": "isCloseAndComment", "parameters": {} } ] }, { "operator": "not", "operands": [ { "name": "activitySenderHasPermissions", "parameters": { "permissions": "write" } } ] }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } ] }, "eventType": "issue", "eventNames": [ "issue_comment" ], "taskName": "[Area Pod: Michael / Tanner - Issue Triage] Needs Further Triage", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Buffers" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Numerics" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Numerics.Tensors" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Runtime" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.Intrinsics" } } ] } ] }, { "name": "isAction", "parameters": { "action": "unlabeled" } } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Michael / Tanner - Issue Triage] Mark relabeled issues as Triaged", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "isOrgProject": true } }, { "operator": "or", "operands": [ { "name": "addedToMilestone", "parameters": {} }, { "name": "labelAdded", "parameters": { "label": "needs-author-action" } }, { "name": "labelAdded", "parameters": { "label": "api-ready-for-review" } }, { "name": "isAction", "parameters": { "action": "closed" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Michael / Tanner - Issue Triage] Move to Triaged Column", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "columnName": "Triaged", "isOrgProject": true } }, { "name": "removeLabel", "parameters": { "label": "untriaged" } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Buffers" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Numerics" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Numerics.Tensors" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.Intrinsics" } } ] }, { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - PRs", "isOrgProject": true } } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Michael / Tanner - PRs] Add new PR to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - PRs", "columnName": "Needs Champion", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Michael / Tanner - PRs", "columnName": "Done", "isOrgProject": true } } ] }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Buffers" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Numerics" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Numerics.Tensors" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Runtime" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.Intrinsics" } } ] } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Michael / Tanner - PRs] Mark relabeled PRs as Done", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - PRs", "columnName": "Done", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Asn1" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Cbor" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Security" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encoding" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encodings.Web" } } ] }, { "operator": "or", "operands": [ { "name": "isAction", "parameters": { "action": "reopened" } }, { "operator": "not", "operands": [ { "name": "isInMilestone", "parameters": {} } ] } ] } ] }, { "operator": "or", "operands": [ { "name": "labelAdded", "parameters": { "label": "area-System.Formats.Asn1" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Formats.Cbor" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Security" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Text.Encoding" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Text.Encodings.Web" } } ] } ] }, { "name": "isOpen", "parameters": {} }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "isOrgProject": true, "columnName": "Triaged" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Jeremy / Levi - Issue Triage] Add new issue to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssueCommentResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Asn1" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Cbor" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Security" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encoding" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encodings.Web" } } ] }, { "operator": "not", "operands": [ { "name": "isCloseAndComment", "parameters": {} } ] }, { "operator": "not", "operands": [ { "name": "activitySenderHasPermissions", "parameters": { "permissions": "write" } } ] }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } ] }, "eventType": "issue", "eventNames": [ "issue_comment" ], "taskName": "[Area Pod: Jeremy / Levi - Issue Triage] Needs Further Triage", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Asn1" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Cbor" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Security" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encoding" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encodings.Web" } } ] } ] }, { "name": "isAction", "parameters": { "action": "unlabeled" } } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Jeremy / Levi - Issue Triage] Mark relabeled issues as Triaged", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "isOrgProject": true } }, { "operator": "or", "operands": [ { "name": "addedToMilestone", "parameters": {} }, { "name": "labelAdded", "parameters": { "label": "needs-author-action" } }, { "name": "labelAdded", "parameters": { "label": "api-ready-for-review" } }, { "name": "isAction", "parameters": { "action": "closed" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Jeremy / Levi - Issue Triage] Move to Triaged Column", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "columnName": "Triaged", "isOrgProject": true } }, { "name": "removeLabel", "parameters": { "label": "untriaged" } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Asn1" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Cbor" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Security" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encoding" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encodings.Web" } } ] }, { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - PRs", "isOrgProject": true } } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Jeremy / Levi - PRs] Add new PR to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - PRs", "columnName": "Needs Champion", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Jeremy / Levi - PRs", "columnName": "Done", "isOrgProject": true } } ] }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Asn1" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Cbor" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Security" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encoding" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encodings.Web" } } ] } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Jeremy / Levi - PRs] Mark relabeled PRs as Done", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - PRs", "columnName": "Done", "isOrgProject": true } } ] } } ]
1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./.github/fabricbot/generated/areapods-machinelearning.json
[ { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "isAction", "parameters": { "action": "reopened" } }, { "operator": "not", "operands": [ { "name": "isInMilestone", "parameters": {} } ] } ] } ] } ] }, { "name": "isOpen", "parameters": {} }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "isOrgProject": true, "columnName": "Triaged" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Michael / Tanner - Issue Triage] Add new issue to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssueCommentResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isCloseAndComment", "parameters": {} } ] }, { "operator": "not", "operands": [ { "name": "activitySenderHasPermissions", "parameters": { "permissions": "write" } } ] }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } ] }, "eventType": "issue", "eventNames": [ "issue_comment" ], "taskName": "[Area Pod: Michael / Tanner - Issue Triage] Needs Further Triage", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "isOrgProject": true } }, { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "columnName": "Triaged" } } ] }, { "operator": "or", "operands": [ { "name": "addedToMilestone", "parameters": {} }, { "name": "labelAdded", "parameters": { "label": "needs-author-action" } }, { "name": "labelAdded", "parameters": { "label": "api-ready-for-review" } }, { "name": "isAction", "parameters": { "action": "closed" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Michael / Tanner - Issue Triage] Move to Triaged Column", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - PRs", "isOrgProject": true } } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Michael / Tanner - PRs] Add new PR to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - PRs", "columnName": "Needs Champion", "isOrgProject": true } } ] } } ]
[ { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "isAction", "parameters": { "action": "reopened" } }, { "operator": "not", "operands": [ { "name": "isInMilestone", "parameters": {} } ] } ] } ] } ] }, { "name": "isOpen", "parameters": {} }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "isOrgProject": true, "columnName": "Triaged" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Michael / Tanner - Issue Triage] Add new issue to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssueCommentResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isCloseAndComment", "parameters": {} } ] }, { "operator": "not", "operands": [ { "name": "activitySenderHasPermissions", "parameters": { "permissions": "write" } } ] }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } ] }, "eventType": "issue", "eventNames": [ "issue_comment" ], "taskName": "[Area Pod: Michael / Tanner - Issue Triage] Needs Further Triage", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "isOrgProject": true } }, { "operator": "or", "operands": [ { "name": "addedToMilestone", "parameters": {} }, { "name": "labelAdded", "parameters": { "label": "needs-author-action" } }, { "name": "labelAdded", "parameters": { "label": "api-ready-for-review" } }, { "name": "isAction", "parameters": { "action": "closed" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Michael / Tanner - Issue Triage] Move to Triaged Column", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "columnName": "Triaged", "isOrgProject": true } }, { "name": "removeLabel", "parameters": { "label": "untriaged" } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - PRs", "isOrgProject": true } } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Michael / Tanner - PRs] Add new PR to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - PRs", "columnName": "Needs Champion", "isOrgProject": true } } ] } } ]
1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./.github/fabricbot/generated/areapods-runtime.json
[ { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Meta" } } ] }, { "operator": "or", "operands": [ { "name": "isAction", "parameters": { "action": "reopened" } }, { "operator": "not", "operands": [ { "name": "isInMilestone", "parameters": {} } ] } ] } ] }, { "operator": "or", "operands": [ { "name": "labelAdded", "parameters": { "label": "area-Meta" } } ] } ] }, { "name": "isOpen", "parameters": {} }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "isOrgProject": true, "columnName": "Triaged" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Eric / Jeff - Issue Triage] Add new issue to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssueCommentResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Meta" } } ] }, { "operator": "not", "operands": [ { "name": "isCloseAndComment", "parameters": {} } ] }, { "operator": "not", "operands": [ { "name": "activitySenderHasPermissions", "parameters": { "permissions": "write" } } ] }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } ] }, "eventType": "issue", "eventNames": [ "issue_comment" ], "taskName": "[Area Pod: Eric / Jeff - Issue Triage] Needs Further Triage", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Meta" } } ] } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Eric / Jeff - Issue Triage] Remove relabeled issues", "actions": [ { "name": "removeFromProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "isOrgProject": true } }, { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "columnName": "Triaged" } } ] }, { "operator": "or", "operands": [ { "name": "addedToMilestone", "parameters": {} }, { "name": "labelAdded", "parameters": { "label": "needs-author-action" } }, { "name": "labelAdded", "parameters": { "label": "api-ready-for-review" } }, { "name": "isAction", "parameters": { "action": "closed" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Eric / Jeff - Issue Triage] Move to Triaged Column", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Meta" } } ] }, { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - PRs", "isOrgProject": true } } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Eric / Jeff - PRs] Add new PR to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - PRs", "columnName": "Needs Champion", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eric / Jeff - PRs", "columnName": "Needs Champion", "isOrgProject": true } }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Meta" } } ] } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Eric / Jeff - PRs] Remove relabeled PRs", "actions": [ { "name": "removeFromProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - PRs", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.CodeDom" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Configuration" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Emit" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Metadata" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Resources" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.CompilerServices" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.RegularExpressions" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Channels" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Tasks" } }, { "name": "hasLabel", "parameters": { "label": "area-System.DirectoryServices" } } ] }, { "operator": "or", "operands": [ { "name": "isAction", "parameters": { "action": "reopened" } }, { "operator": "not", "operands": [ { "name": "isInMilestone", "parameters": {} } ] } ] } ] }, { "operator": "or", "operands": [ { "name": "labelAdded", "parameters": { "label": "area-System.CodeDom" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Configuration" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Reflection" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Reflection.Emit" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Reflection.Metadata" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Resources" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Runtime.CompilerServices" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Text.RegularExpressions" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Threading.Channels" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Threading.Tasks" } }, { "name": "labelAdded", "parameters": { "label": "area-System.DirectoryServices" } } ] } ] }, { "name": "isOpen", "parameters": {} }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "isOrgProject": true, "columnName": "Triaged" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Buyaa / Jose / Steve - Issue Triage] Add new issue to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssueCommentResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.CodeDom" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Configuration" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Emit" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Metadata" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Resources" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.CompilerServices" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.RegularExpressions" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Channels" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Tasks" } }, { "name": "hasLabel", "parameters": { "label": "area-System.DirectoryServices" } } ] }, { "operator": "not", "operands": [ { "name": "isCloseAndComment", "parameters": {} } ] }, { "operator": "not", "operands": [ { "name": "activitySenderHasPermissions", "parameters": { "permissions": "write" } } ] }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } ] }, "eventType": "issue", "eventNames": [ "issue_comment" ], "taskName": "[Area Pod: Buyaa / Jose / Steve - Issue Triage] Needs Further Triage", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.CodeDom" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Configuration" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Reflection" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Emit" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Metadata" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Resources" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.CompilerServices" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Text.RegularExpressions" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Channels" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Tasks" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.DirectoryServices" } } ] } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Buyaa / Jose / Steve - Issue Triage] Remove relabeled issues", "actions": [ { "name": "removeFromProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "isOrgProject": true } }, { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "columnName": "Triaged" } } ] }, { "operator": "or", "operands": [ { "name": "addedToMilestone", "parameters": {} }, { "name": "labelAdded", "parameters": { "label": "needs-author-action" } }, { "name": "labelAdded", "parameters": { "label": "api-ready-for-review" } }, { "name": "isAction", "parameters": { "action": "closed" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Buyaa / Jose / Steve - Issue Triage] Move to Triaged Column", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.CodeDom" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Configuration" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Emit" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Metadata" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Resources" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.CompilerServices" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.RegularExpressions" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Channels" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Tasks" } }, { "name": "hasLabel", "parameters": { "label": "area-System.DirectoryServices" } } ] }, { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - PRs", "isOrgProject": true } } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Buyaa / Jose / Steve - PRs] Add new PR to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - PRs", "columnName": "Needs Champion", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - PRs", "columnName": "Needs Champion", "isOrgProject": true } }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.CodeDom" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Configuration" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Reflection" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Emit" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Metadata" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Resources" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.CompilerServices" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Text.RegularExpressions" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Channels" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Tasks" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.DirectoryServices" } } ] } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Buyaa / Jose / Steve - PRs] Remove relabeled PRs", "actions": [ { "name": "removeFromProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - PRs", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Collections" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Linq" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Json" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Xml" } } ] }, { "operator": "or", "operands": [ { "name": "isAction", "parameters": { "action": "reopened" } }, { "operator": "not", "operands": [ { "name": "isInMilestone", "parameters": {} } ] } ] } ] }, { "operator": "or", "operands": [ { "name": "labelAdded", "parameters": { "label": "area-System.Collections" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Linq" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Text.Json" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Xml" } } ] } ] }, { "name": "isOpen", "parameters": {} }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "isOrgProject": true, "columnName": "Triaged" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Eirik / Krzysztof / Layomi - Issue Triage] Add new issue to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssueCommentResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Collections" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Linq" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Json" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Xml" } } ] }, { "operator": "not", "operands": [ { "name": "isCloseAndComment", "parameters": {} } ] }, { "operator": "not", "operands": [ { "name": "activitySenderHasPermissions", "parameters": { "permissions": "write" } } ] }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } ] }, "eventType": "issue", "eventNames": [ "issue_comment" ], "taskName": "[Area Pod: Eirik / Krzysztof / Layomi - Issue Triage] Needs Further Triage", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Collections" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Linq" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Text.Json" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Xml" } } ] } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Eirik / Krzysztof / Layomi - Issue Triage] Remove relabeled issues", "actions": [ { "name": "removeFromProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "isOrgProject": true } }, { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "columnName": "Triaged" } } ] }, { "operator": "or", "operands": [ { "name": "addedToMilestone", "parameters": {} }, { "name": "labelAdded", "parameters": { "label": "needs-author-action" } }, { "name": "labelAdded", "parameters": { "label": "api-ready-for-review" } }, { "name": "isAction", "parameters": { "action": "closed" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Eirik / Krzysztof / Layomi - Issue Triage] Move to Triaged Column", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Collections" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Linq" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Json" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Xml" } } ] }, { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - PRs", "isOrgProject": true } } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Eirik / Krzysztof / Layomi - PRs] Add new PR to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - PRs", "columnName": "Needs Champion", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - PRs", "columnName": "Needs Champion", "isOrgProject": true } }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Collections" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Linq" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Text.Json" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Xml" } } ] } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Eirik / Krzysztof / Layomi - PRs] Remove relabeled PRs", "actions": [ { "name": "removeFromProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - PRs", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-DependencyModel" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Caching" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Configuration" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-DependencyInjection" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Hosting" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Logging" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Options" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Primitives" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel.Composition" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Composition" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Activity" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Globalization" } } ] }, { "operator": "or", "operands": [ { "name": "isAction", "parameters": { "action": "reopened" } }, { "operator": "not", "operands": [ { "name": "isInMilestone", "parameters": {} } ] } ] } ] }, { "operator": "or", "operands": [ { "name": "labelAdded", "parameters": { "label": "area-DependencyModel" } }, { "name": "labelAdded", "parameters": { "label": "area-Extensions-Caching" } }, { "name": "labelAdded", "parameters": { "label": "area-Extensions-Configuration" } }, { "name": "labelAdded", "parameters": { "label": "area-Extensions-DependencyInjection" } }, { "name": "labelAdded", "parameters": { "label": "area-Extensions-Hosting" } }, { "name": "labelAdded", "parameters": { "label": "area-Extensions-Logging" } }, { "name": "labelAdded", "parameters": { "label": "area-Extensions-Options" } }, { "name": "labelAdded", "parameters": { "label": "area-Extensions-Primitives" } }, { "name": "labelAdded", "parameters": { "label": "area-System.ComponentModel" } }, { "name": "labelAdded", "parameters": { "label": "area-System.ComponentModel.Composition" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Composition" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Diagnostics.Activity" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Globalization" } } ] } ] }, { "name": "isOpen", "parameters": {} }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "isOrgProject": true, "columnName": "Triaged" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Eric / Maryam / Tarek - Issue Triage] Add new issue to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssueCommentResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-DependencyModel" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Caching" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Configuration" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-DependencyInjection" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Hosting" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Logging" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Options" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Primitives" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel.Composition" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Composition" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Activity" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Globalization" } } ] }, { "operator": "not", "operands": [ { "name": "isCloseAndComment", "parameters": {} } ] }, { "operator": "not", "operands": [ { "name": "activitySenderHasPermissions", "parameters": { "permissions": "write" } } ] }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } ] }, "eventType": "issue", "eventNames": [ "issue_comment" ], "taskName": "[Area Pod: Eric / Maryam / Tarek - Issue Triage] Needs Further Triage", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-DependencyModel" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Caching" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Configuration" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-DependencyInjection" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Hosting" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Logging" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Options" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Primitives" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel.Composition" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Composition" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Activity" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Globalization" } } ] } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Eric / Maryam / Tarek - Issue Triage] Remove relabeled issues", "actions": [ { "name": "removeFromProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "isOrgProject": true } }, { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "columnName": "Triaged" } } ] }, { "operator": "or", "operands": [ { "name": "addedToMilestone", "parameters": {} }, { "name": "labelAdded", "parameters": { "label": "needs-author-action" } }, { "name": "labelAdded", "parameters": { "label": "api-ready-for-review" } }, { "name": "isAction", "parameters": { "action": "closed" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Eric / Maryam / Tarek - Issue Triage] Move to Triaged Column", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-DependencyModel" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Caching" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Configuration" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-DependencyInjection" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Hosting" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Logging" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Options" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Primitives" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel.Composition" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Composition" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Activity" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Globalization" } } ] }, { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - PRs", "isOrgProject": true } } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Eric / Maryam / Tarek - PRs] Add new PR to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - PRs", "columnName": "Needs Champion", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - PRs", "columnName": "Needs Champion", "isOrgProject": true } }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-DependencyModel" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Caching" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Configuration" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-DependencyInjection" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Hosting" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Logging" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Options" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Primitives" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel.Composition" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Composition" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Activity" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Globalization" } } ] } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Eric / Maryam / Tarek - PRs] Remove relabeled PRs", "actions": [ { "name": "removeFromProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - PRs", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Infrastructure-libraries" } }, { "name": "hasLabel", "parameters": { "label": "area-Microsoft.Win32" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.EventLog" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.PerformanceCounter" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.TraceSource" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Drawing" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Management" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ServiceProcess" } } ] }, { "operator": "or", "operands": [ { "name": "isAction", "parameters": { "action": "reopened" } }, { "operator": "not", "operands": [ { "name": "isInMilestone", "parameters": {} } ] } ] } ] }, { "operator": "or", "operands": [ { "name": "labelAdded", "parameters": { "label": "area-Infrastructure-libraries" } }, { "name": "labelAdded", "parameters": { "label": "area-Microsoft.Win32" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Diagnostics.EventLog" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Diagnostics.PerformanceCounter" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Diagnostics.TraceSource" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Drawing" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Management" } }, { "name": "labelAdded", "parameters": { "label": "area-System.ServiceProcess" } } ] } ] }, { "name": "isOpen", "parameters": {} }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "isOrgProject": true, "columnName": "Triaged" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Carlos / Jeremy - Issue Triage] Add new issue to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssueCommentResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Infrastructure-libraries" } }, { "name": "hasLabel", "parameters": { "label": "area-Microsoft.Win32" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.EventLog" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.PerformanceCounter" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.TraceSource" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Drawing" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Management" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ServiceProcess" } } ] }, { "operator": "not", "operands": [ { "name": "isCloseAndComment", "parameters": {} } ] }, { "operator": "not", "operands": [ { "name": "activitySenderHasPermissions", "parameters": { "permissions": "write" } } ] }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } ] }, "eventType": "issue", "eventNames": [ "issue_comment" ], "taskName": "[Area Pod: Carlos / Jeremy - Issue Triage] Needs Further Triage", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Infrastructure-libraries" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Microsoft.Win32" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.EventLog" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.PerformanceCounter" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.TraceSource" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Drawing" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Management" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.ServiceProcess" } } ] } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Carlos / Jeremy - Issue Triage] Remove relabeled issues", "actions": [ { "name": "removeFromProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "isOrgProject": true } }, { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "columnName": "Triaged" } } ] }, { "operator": "or", "operands": [ { "name": "addedToMilestone", "parameters": {} }, { "name": "labelAdded", "parameters": { "label": "needs-author-action" } }, { "name": "labelAdded", "parameters": { "label": "api-ready-for-review" } }, { "name": "isAction", "parameters": { "action": "closed" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Carlos / Jeremy - Issue Triage] Move to Triaged Column", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Infrastructure-libraries" } }, { "name": "hasLabel", "parameters": { "label": "area-Microsoft.Win32" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.EventLog" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.PerformanceCounter" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.TraceSource" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Drawing" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Management" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ServiceProcess" } } ] }, { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - PRs", "isOrgProject": true } } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Carlos / Jeremy - PRs] Add new PR to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - PRs", "columnName": "Needs Champion", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - PRs", "columnName": "Needs Champion", "isOrgProject": true } }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Infrastructure-libraries" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Microsoft.Win32" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.EventLog" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.PerformanceCounter" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.TraceSource" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Drawing" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Management" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.ServiceProcess" } } ] } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Carlos / Jeremy - PRs] Remove relabeled PRs", "actions": [ { "name": "removeFromProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - PRs", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-FileSystem" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Console" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Process" } }, { "name": "hasLabel", "parameters": { "label": "area-System.IO" } }, { "name": "hasLabel", "parameters": { "label": "area-System.IO.Compression" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Linq.Parallel" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Memory" } } ] }, { "operator": "or", "operands": [ { "name": "isAction", "parameters": { "action": "reopened" } }, { "operator": "not", "operands": [ { "name": "isInMilestone", "parameters": {} } ] } ] } ] }, { "operator": "or", "operands": [ { "name": "labelAdded", "parameters": { "label": "area-Extensions-FileSystem" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Console" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Diagnostics.Process" } }, { "name": "labelAdded", "parameters": { "label": "area-System.IO" } }, { "name": "labelAdded", "parameters": { "label": "area-System.IO.Compression" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Linq.Parallel" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Memory" } } ] } ] }, { "name": "isOpen", "parameters": {} }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "isOrgProject": true, "columnName": "Triaged" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Adam / David - Issue Triage] Add new issue to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssueCommentResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-FileSystem" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Console" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Process" } }, { "name": "hasLabel", "parameters": { "label": "area-System.IO" } }, { "name": "hasLabel", "parameters": { "label": "area-System.IO.Compression" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Linq.Parallel" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Memory" } } ] }, { "operator": "not", "operands": [ { "name": "isCloseAndComment", "parameters": {} } ] }, { "operator": "not", "operands": [ { "name": "activitySenderHasPermissions", "parameters": { "permissions": "write" } } ] }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } ] }, "eventType": "issue", "eventNames": [ "issue_comment" ], "taskName": "[Area Pod: Adam / David - Issue Triage] Needs Further Triage", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-FileSystem" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Console" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Process" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.IO" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.IO.Compression" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Linq.Parallel" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Memory" } } ] } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Adam / David - Issue Triage] Remove relabeled issues", "actions": [ { "name": "removeFromProject", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "isOrgProject": true } }, { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "columnName": "Triaged" } } ] }, { "operator": "or", "operands": [ { "name": "addedToMilestone", "parameters": {} }, { "name": "labelAdded", "parameters": { "label": "needs-author-action" } }, { "name": "labelAdded", "parameters": { "label": "api-ready-for-review" } }, { "name": "isAction", "parameters": { "action": "closed" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Adam / David - Issue Triage] Move to Triaged Column", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-FileSystem" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Console" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Process" } }, { "name": "hasLabel", "parameters": { "label": "area-System.IO" } }, { "name": "hasLabel", "parameters": { "label": "area-System.IO.Compression" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Linq.Parallel" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Memory" } } ] }, { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Adam / David - PRs", "isOrgProject": true } } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Adam / David - PRs] Add new PR to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Adam / David - PRs", "columnName": "Needs Champion", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Adam / David - PRs", "columnName": "Needs Champion", "isOrgProject": true } }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-FileSystem" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Console" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Process" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.IO" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.IO.Compression" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Linq.Parallel" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Memory" } } ] } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Adam / David - PRs] Remove relabeled PRs", "actions": [ { "name": "removeFromProject", "parameters": { "projectName": "Area Pod: Adam / David - PRs", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Buffers" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Numerics" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Numerics.Tensors" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.Intrinsics" } } ] }, { "operator": "or", "operands": [ { "name": "isAction", "parameters": { "action": "reopened" } }, { "operator": "not", "operands": [ { "name": "isInMilestone", "parameters": {} } ] } ] } ] }, { "operator": "or", "operands": [ { "name": "labelAdded", "parameters": { "label": "area-System.Buffers" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Numerics" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Numerics.Tensors" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Runtime" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Runtime.Intrinsics" } } ] } ] }, { "name": "isOpen", "parameters": {} }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "isOrgProject": true, "columnName": "Triaged" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Michael / Tanner - Issue Triage] Add new issue to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssueCommentResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Buffers" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Numerics" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Numerics.Tensors" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.Intrinsics" } } ] }, { "operator": "not", "operands": [ { "name": "isCloseAndComment", "parameters": {} } ] }, { "operator": "not", "operands": [ { "name": "activitySenderHasPermissions", "parameters": { "permissions": "write" } } ] }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } ] }, "eventType": "issue", "eventNames": [ "issue_comment" ], "taskName": "[Area Pod: Michael / Tanner - Issue Triage] Needs Further Triage", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Buffers" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Numerics" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Numerics.Tensors" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Runtime" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.Intrinsics" } } ] } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Michael / Tanner - Issue Triage] Remove relabeled issues", "actions": [ { "name": "removeFromProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "isOrgProject": true } }, { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "columnName": "Triaged" } } ] }, { "operator": "or", "operands": [ { "name": "addedToMilestone", "parameters": {} }, { "name": "labelAdded", "parameters": { "label": "needs-author-action" } }, { "name": "labelAdded", "parameters": { "label": "api-ready-for-review" } }, { "name": "isAction", "parameters": { "action": "closed" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Michael / Tanner - Issue Triage] Move to Triaged Column", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Buffers" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Numerics" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Numerics.Tensors" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.Intrinsics" } } ] }, { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - PRs", "isOrgProject": true } } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Michael / Tanner - PRs] Add new PR to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - PRs", "columnName": "Needs Champion", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Michael / Tanner - PRs", "columnName": "Needs Champion", "isOrgProject": true } }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Buffers" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Numerics" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Numerics.Tensors" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Runtime" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.Intrinsics" } } ] } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Michael / Tanner - PRs] Remove relabeled PRs", "actions": [ { "name": "removeFromProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - PRs", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Asn1" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Cbor" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Security" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encoding" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encodings.Web" } } ] }, { "operator": "or", "operands": [ { "name": "isAction", "parameters": { "action": "reopened" } }, { "operator": "not", "operands": [ { "name": "isInMilestone", "parameters": {} } ] } ] } ] }, { "operator": "or", "operands": [ { "name": "labelAdded", "parameters": { "label": "area-System.Formats.Asn1" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Formats.Cbor" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Security" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Text.Encoding" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Text.Encodings.Web" } } ] } ] }, { "name": "isOpen", "parameters": {} }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "isOrgProject": true, "columnName": "Triaged" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Jeremy / Levi - Issue Triage] Add new issue to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssueCommentResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Asn1" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Cbor" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Security" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encoding" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encodings.Web" } } ] }, { "operator": "not", "operands": [ { "name": "isCloseAndComment", "parameters": {} } ] }, { "operator": "not", "operands": [ { "name": "activitySenderHasPermissions", "parameters": { "permissions": "write" } } ] }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } ] }, "eventType": "issue", "eventNames": [ "issue_comment" ], "taskName": "[Area Pod: Jeremy / Levi - Issue Triage] Needs Further Triage", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Asn1" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Cbor" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Security" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encoding" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encodings.Web" } } ] } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Jeremy / Levi - Issue Triage] Remove relabeled issues", "actions": [ { "name": "removeFromProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "isOrgProject": true } }, { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "columnName": "Triaged" } } ] }, { "operator": "or", "operands": [ { "name": "addedToMilestone", "parameters": {} }, { "name": "labelAdded", "parameters": { "label": "needs-author-action" } }, { "name": "labelAdded", "parameters": { "label": "api-ready-for-review" } }, { "name": "isAction", "parameters": { "action": "closed" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Jeremy / Levi - Issue Triage] Move to Triaged Column", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Asn1" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Cbor" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Security" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encoding" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encodings.Web" } } ] }, { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - PRs", "isOrgProject": true } } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Jeremy / Levi - PRs] Add new PR to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - PRs", "columnName": "Needs Champion", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Jeremy / Levi - PRs", "columnName": "Needs Champion", "isOrgProject": true } }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Asn1" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Cbor" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Security" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encoding" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encodings.Web" } } ] } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Jeremy / Levi - PRs] Remove relabeled PRs", "actions": [ { "name": "removeFromProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - PRs", "isOrgProject": true } } ] } } ]
[ { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Meta" } } ] }, { "operator": "or", "operands": [ { "name": "isAction", "parameters": { "action": "reopened" } }, { "operator": "not", "operands": [ { "name": "isInMilestone", "parameters": {} } ] } ] } ] }, { "operator": "or", "operands": [ { "name": "labelAdded", "parameters": { "label": "area-Meta" } } ] } ] }, { "name": "isOpen", "parameters": {} }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "isOrgProject": true, "columnName": "Triaged" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Eric / Jeff - Issue Triage] Add new issue to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssueCommentResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Meta" } } ] }, { "operator": "not", "operands": [ { "name": "isCloseAndComment", "parameters": {} } ] }, { "operator": "not", "operands": [ { "name": "activitySenderHasPermissions", "parameters": { "permissions": "write" } } ] }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } ] }, "eventType": "issue", "eventNames": [ "issue_comment" ], "taskName": "[Area Pod: Eric / Jeff - Issue Triage] Needs Further Triage", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Meta" } } ] } ] }, { "name": "isAction", "parameters": { "action": "unlabeled" } } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Eric / Jeff - Issue Triage] Mark relabeled issues as Triaged", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "isOrgProject": true } }, { "operator": "or", "operands": [ { "name": "addedToMilestone", "parameters": {} }, { "name": "labelAdded", "parameters": { "label": "needs-author-action" } }, { "name": "labelAdded", "parameters": { "label": "api-ready-for-review" } }, { "name": "isAction", "parameters": { "action": "closed" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Eric / Jeff - Issue Triage] Move to Triaged Column", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - Issue Triage", "columnName": "Triaged", "isOrgProject": true } }, { "name": "removeLabel", "parameters": { "label": "untriaged" } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Meta" } } ] }, { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - PRs", "isOrgProject": true } } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Eric / Jeff - PRs] Add new PR to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - PRs", "columnName": "Needs Champion", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eric / Jeff - PRs", "columnName": "Done", "isOrgProject": true } } ] }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Meta" } } ] } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Eric / Jeff - PRs] Mark relabeled PRs as Done", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Jeff - PRs", "columnName": "Done", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.CodeDom" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Configuration" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Emit" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Metadata" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Resources" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.CompilerServices" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.RegularExpressions" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Channels" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Tasks" } }, { "name": "hasLabel", "parameters": { "label": "area-System.DirectoryServices" } } ] }, { "operator": "or", "operands": [ { "name": "isAction", "parameters": { "action": "reopened" } }, { "operator": "not", "operands": [ { "name": "isInMilestone", "parameters": {} } ] } ] } ] }, { "operator": "or", "operands": [ { "name": "labelAdded", "parameters": { "label": "area-System.CodeDom" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Configuration" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Reflection" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Reflection.Emit" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Reflection.Metadata" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Resources" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Runtime.CompilerServices" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Text.RegularExpressions" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Threading.Channels" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Threading.Tasks" } }, { "name": "labelAdded", "parameters": { "label": "area-System.DirectoryServices" } } ] } ] }, { "name": "isOpen", "parameters": {} }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "isOrgProject": true, "columnName": "Triaged" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Buyaa / Jose / Steve - Issue Triage] Add new issue to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssueCommentResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.CodeDom" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Configuration" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Emit" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Metadata" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Resources" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.CompilerServices" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.RegularExpressions" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Channels" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Tasks" } }, { "name": "hasLabel", "parameters": { "label": "area-System.DirectoryServices" } } ] }, { "operator": "not", "operands": [ { "name": "isCloseAndComment", "parameters": {} } ] }, { "operator": "not", "operands": [ { "name": "activitySenderHasPermissions", "parameters": { "permissions": "write" } } ] }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } ] }, "eventType": "issue", "eventNames": [ "issue_comment" ], "taskName": "[Area Pod: Buyaa / Jose / Steve - Issue Triage] Needs Further Triage", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.CodeDom" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Configuration" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Reflection" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Emit" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Metadata" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Resources" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.CompilerServices" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Text.RegularExpressions" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Channels" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Tasks" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.DirectoryServices" } } ] } ] }, { "name": "isAction", "parameters": { "action": "unlabeled" } } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Buyaa / Jose / Steve - Issue Triage] Mark relabeled issues as Triaged", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "isOrgProject": true } }, { "operator": "or", "operands": [ { "name": "addedToMilestone", "parameters": {} }, { "name": "labelAdded", "parameters": { "label": "needs-author-action" } }, { "name": "labelAdded", "parameters": { "label": "api-ready-for-review" } }, { "name": "isAction", "parameters": { "action": "closed" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Buyaa / Jose / Steve - Issue Triage] Move to Triaged Column", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - Issue Triage", "columnName": "Triaged", "isOrgProject": true } }, { "name": "removeLabel", "parameters": { "label": "untriaged" } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.CodeDom" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Configuration" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Emit" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Metadata" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Resources" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.CompilerServices" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.RegularExpressions" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Channels" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Tasks" } }, { "name": "hasLabel", "parameters": { "label": "area-System.DirectoryServices" } } ] }, { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - PRs", "isOrgProject": true } } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Buyaa / Jose / Steve - PRs] Add new PR to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - PRs", "columnName": "Needs Champion", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - PRs", "columnName": "Done", "isOrgProject": true } } ] }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.CodeDom" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Configuration" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Reflection" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Emit" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Reflection.Metadata" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Resources" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.CompilerServices" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Text.RegularExpressions" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Channels" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Threading.Tasks" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.DirectoryServices" } } ] } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Buyaa / Jose / Steve - PRs] Mark relabeled PRs as Done", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Buyaa / Jose / Steve - PRs", "columnName": "Done", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Collections" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Linq" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Json" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Xml" } } ] }, { "operator": "or", "operands": [ { "name": "isAction", "parameters": { "action": "reopened" } }, { "operator": "not", "operands": [ { "name": "isInMilestone", "parameters": {} } ] } ] } ] }, { "operator": "or", "operands": [ { "name": "labelAdded", "parameters": { "label": "area-System.Collections" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Linq" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Text.Json" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Xml" } } ] } ] }, { "name": "isOpen", "parameters": {} }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "isOrgProject": true, "columnName": "Triaged" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Eirik / Krzysztof / Layomi - Issue Triage] Add new issue to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssueCommentResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Collections" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Linq" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Json" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Xml" } } ] }, { "operator": "not", "operands": [ { "name": "isCloseAndComment", "parameters": {} } ] }, { "operator": "not", "operands": [ { "name": "activitySenderHasPermissions", "parameters": { "permissions": "write" } } ] }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } ] }, "eventType": "issue", "eventNames": [ "issue_comment" ], "taskName": "[Area Pod: Eirik / Krzysztof / Layomi - Issue Triage] Needs Further Triage", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Collections" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Linq" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Text.Json" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Xml" } } ] } ] }, { "name": "isAction", "parameters": { "action": "unlabeled" } } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Eirik / Krzysztof / Layomi - Issue Triage] Mark relabeled issues as Triaged", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "isOrgProject": true } }, { "operator": "or", "operands": [ { "name": "addedToMilestone", "parameters": {} }, { "name": "labelAdded", "parameters": { "label": "needs-author-action" } }, { "name": "labelAdded", "parameters": { "label": "api-ready-for-review" } }, { "name": "isAction", "parameters": { "action": "closed" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Eirik / Krzysztof / Layomi - Issue Triage] Move to Triaged Column", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - Issue Triage", "columnName": "Triaged", "isOrgProject": true } }, { "name": "removeLabel", "parameters": { "label": "untriaged" } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Collections" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Linq" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Json" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Xml" } } ] }, { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - PRs", "isOrgProject": true } } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Eirik / Krzysztof / Layomi - PRs] Add new PR to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - PRs", "columnName": "Needs Champion", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - PRs", "columnName": "Done", "isOrgProject": true } } ] }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Collections" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Linq" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Text.Json" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Xml" } } ] } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Eirik / Krzysztof / Layomi - PRs] Mark relabeled PRs as Done", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eirik / Krzysztof / Layomi - PRs", "columnName": "Done", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-DependencyModel" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Caching" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Configuration" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-DependencyInjection" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Hosting" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Logging" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Options" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Primitives" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel.Composition" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Composition" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Activity" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Globalization" } } ] }, { "operator": "or", "operands": [ { "name": "isAction", "parameters": { "action": "reopened" } }, { "operator": "not", "operands": [ { "name": "isInMilestone", "parameters": {} } ] } ] } ] }, { "operator": "or", "operands": [ { "name": "labelAdded", "parameters": { "label": "area-DependencyModel" } }, { "name": "labelAdded", "parameters": { "label": "area-Extensions-Caching" } }, { "name": "labelAdded", "parameters": { "label": "area-Extensions-Configuration" } }, { "name": "labelAdded", "parameters": { "label": "area-Extensions-DependencyInjection" } }, { "name": "labelAdded", "parameters": { "label": "area-Extensions-Hosting" } }, { "name": "labelAdded", "parameters": { "label": "area-Extensions-Logging" } }, { "name": "labelAdded", "parameters": { "label": "area-Extensions-Options" } }, { "name": "labelAdded", "parameters": { "label": "area-Extensions-Primitives" } }, { "name": "labelAdded", "parameters": { "label": "area-System.ComponentModel" } }, { "name": "labelAdded", "parameters": { "label": "area-System.ComponentModel.Composition" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Composition" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Diagnostics.Activity" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Globalization" } } ] } ] }, { "name": "isOpen", "parameters": {} }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "isOrgProject": true, "columnName": "Triaged" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Eric / Maryam / Tarek - Issue Triage] Add new issue to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssueCommentResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-DependencyModel" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Caching" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Configuration" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-DependencyInjection" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Hosting" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Logging" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Options" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Primitives" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel.Composition" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Composition" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Activity" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Globalization" } } ] }, { "operator": "not", "operands": [ { "name": "isCloseAndComment", "parameters": {} } ] }, { "operator": "not", "operands": [ { "name": "activitySenderHasPermissions", "parameters": { "permissions": "write" } } ] }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } ] }, "eventType": "issue", "eventNames": [ "issue_comment" ], "taskName": "[Area Pod: Eric / Maryam / Tarek - Issue Triage] Needs Further Triage", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-DependencyModel" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Caching" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Configuration" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-DependencyInjection" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Hosting" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Logging" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Options" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Primitives" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel.Composition" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Composition" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Activity" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Globalization" } } ] } ] }, { "name": "isAction", "parameters": { "action": "unlabeled" } } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Eric / Maryam / Tarek - Issue Triage] Mark relabeled issues as Triaged", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "isOrgProject": true } }, { "operator": "or", "operands": [ { "name": "addedToMilestone", "parameters": {} }, { "name": "labelAdded", "parameters": { "label": "needs-author-action" } }, { "name": "labelAdded", "parameters": { "label": "api-ready-for-review" } }, { "name": "isAction", "parameters": { "action": "closed" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Eric / Maryam / Tarek - Issue Triage] Move to Triaged Column", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - Issue Triage", "columnName": "Triaged", "isOrgProject": true } }, { "name": "removeLabel", "parameters": { "label": "untriaged" } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-DependencyModel" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Caching" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Configuration" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-DependencyInjection" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Hosting" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Logging" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Options" } }, { "name": "hasLabel", "parameters": { "label": "area-Extensions-Primitives" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel.Composition" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Composition" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Activity" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Globalization" } } ] }, { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - PRs", "isOrgProject": true } } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Eric / Maryam / Tarek - PRs] Add new PR to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - PRs", "columnName": "Needs Champion", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - PRs", "columnName": "Done", "isOrgProject": true } } ] }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-DependencyModel" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Caching" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Configuration" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-DependencyInjection" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Hosting" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Logging" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Options" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-Primitives" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.ComponentModel.Composition" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Composition" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Activity" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Globalization" } } ] } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Eric / Maryam / Tarek - PRs] Mark relabeled PRs as Done", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Eric / Maryam / Tarek - PRs", "columnName": "Done", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Infrastructure-libraries" } }, { "name": "hasLabel", "parameters": { "label": "area-Microsoft.Win32" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.EventLog" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.PerformanceCounter" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.TraceSource" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Drawing" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Management" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ServiceProcess" } } ] }, { "operator": "or", "operands": [ { "name": "isAction", "parameters": { "action": "reopened" } }, { "operator": "not", "operands": [ { "name": "isInMilestone", "parameters": {} } ] } ] } ] }, { "operator": "or", "operands": [ { "name": "labelAdded", "parameters": { "label": "area-Infrastructure-libraries" } }, { "name": "labelAdded", "parameters": { "label": "area-Microsoft.Win32" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Diagnostics.EventLog" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Diagnostics.PerformanceCounter" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Diagnostics.TraceSource" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Drawing" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Management" } }, { "name": "labelAdded", "parameters": { "label": "area-System.ServiceProcess" } } ] } ] }, { "name": "isOpen", "parameters": {} }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "isOrgProject": true, "columnName": "Triaged" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Carlos / Jeremy - Issue Triage] Add new issue to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssueCommentResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Infrastructure-libraries" } }, { "name": "hasLabel", "parameters": { "label": "area-Microsoft.Win32" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.EventLog" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.PerformanceCounter" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.TraceSource" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Drawing" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Management" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ServiceProcess" } } ] }, { "operator": "not", "operands": [ { "name": "isCloseAndComment", "parameters": {} } ] }, { "operator": "not", "operands": [ { "name": "activitySenderHasPermissions", "parameters": { "permissions": "write" } } ] }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } ] }, "eventType": "issue", "eventNames": [ "issue_comment" ], "taskName": "[Area Pod: Carlos / Jeremy - Issue Triage] Needs Further Triage", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Infrastructure-libraries" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Microsoft.Win32" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.EventLog" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.PerformanceCounter" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.TraceSource" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Drawing" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Management" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.ServiceProcess" } } ] } ] }, { "name": "isAction", "parameters": { "action": "unlabeled" } } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Carlos / Jeremy - Issue Triage] Mark relabeled issues as Triaged", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "isOrgProject": true } }, { "operator": "or", "operands": [ { "name": "addedToMilestone", "parameters": {} }, { "name": "labelAdded", "parameters": { "label": "needs-author-action" } }, { "name": "labelAdded", "parameters": { "label": "api-ready-for-review" } }, { "name": "isAction", "parameters": { "action": "closed" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Carlos / Jeremy - Issue Triage] Move to Triaged Column", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - Issue Triage", "columnName": "Triaged", "isOrgProject": true } }, { "name": "removeLabel", "parameters": { "label": "untriaged" } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Infrastructure-libraries" } }, { "name": "hasLabel", "parameters": { "label": "area-Microsoft.Win32" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.EventLog" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.PerformanceCounter" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.TraceSource" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Drawing" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Management" } }, { "name": "hasLabel", "parameters": { "label": "area-System.ServiceProcess" } } ] }, { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - PRs", "isOrgProject": true } } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Carlos / Jeremy - PRs] Add new PR to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - PRs", "columnName": "Needs Champion", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - PRs", "columnName": "Done", "isOrgProject": true } } ] }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Infrastructure-libraries" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Microsoft.Win32" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.EventLog" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.PerformanceCounter" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.TraceSource" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Drawing" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Management" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.ServiceProcess" } } ] } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Carlos / Jeremy - PRs] Mark relabeled PRs as Done", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Carlos / Jeremy - PRs", "columnName": "Done", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-FileSystem" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Console" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Process" } }, { "name": "hasLabel", "parameters": { "label": "area-System.IO" } }, { "name": "hasLabel", "parameters": { "label": "area-System.IO.Compression" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Linq.Parallel" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Memory" } } ] }, { "operator": "or", "operands": [ { "name": "isAction", "parameters": { "action": "reopened" } }, { "operator": "not", "operands": [ { "name": "isInMilestone", "parameters": {} } ] } ] } ] }, { "operator": "or", "operands": [ { "name": "labelAdded", "parameters": { "label": "area-Extensions-FileSystem" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Console" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Diagnostics.Process" } }, { "name": "labelAdded", "parameters": { "label": "area-System.IO" } }, { "name": "labelAdded", "parameters": { "label": "area-System.IO.Compression" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Linq.Parallel" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Memory" } } ] } ] }, { "name": "isOpen", "parameters": {} }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "isOrgProject": true, "columnName": "Triaged" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Adam / David - Issue Triage] Add new issue to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssueCommentResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-FileSystem" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Console" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Process" } }, { "name": "hasLabel", "parameters": { "label": "area-System.IO" } }, { "name": "hasLabel", "parameters": { "label": "area-System.IO.Compression" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Linq.Parallel" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Memory" } } ] }, { "operator": "not", "operands": [ { "name": "isCloseAndComment", "parameters": {} } ] }, { "operator": "not", "operands": [ { "name": "activitySenderHasPermissions", "parameters": { "permissions": "write" } } ] }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } ] }, "eventType": "issue", "eventNames": [ "issue_comment" ], "taskName": "[Area Pod: Adam / David - Issue Triage] Needs Further Triage", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-FileSystem" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Console" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Process" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.IO" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.IO.Compression" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Linq.Parallel" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Memory" } } ] } ] }, { "name": "isAction", "parameters": { "action": "unlabeled" } } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Adam / David - Issue Triage] Mark relabeled issues as Triaged", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "isOrgProject": true } }, { "operator": "or", "operands": [ { "name": "addedToMilestone", "parameters": {} }, { "name": "labelAdded", "parameters": { "label": "needs-author-action" } }, { "name": "labelAdded", "parameters": { "label": "api-ready-for-review" } }, { "name": "isAction", "parameters": { "action": "closed" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Adam / David - Issue Triage] Move to Triaged Column", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Adam / David - Issue Triage", "columnName": "Triaged", "isOrgProject": true } }, { "name": "removeLabel", "parameters": { "label": "untriaged" } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-FileSystem" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Console" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Process" } }, { "name": "hasLabel", "parameters": { "label": "area-System.IO" } }, { "name": "hasLabel", "parameters": { "label": "area-System.IO.Compression" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Linq.Parallel" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Memory" } } ] }, { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Adam / David - PRs", "isOrgProject": true } } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Adam / David - PRs] Add new PR to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Adam / David - PRs", "columnName": "Needs Champion", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Adam / David - PRs", "columnName": "Done", "isOrgProject": true } } ] }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-Extensions-FileSystem" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Console" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Diagnostics.Process" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.IO" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.IO.Compression" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Linq.Parallel" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Memory" } } ] } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Adam / David - PRs] Mark relabeled PRs as Done", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Adam / David - PRs", "columnName": "Done", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Buffers" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Numerics" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Numerics.Tensors" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.Intrinsics" } } ] }, { "operator": "or", "operands": [ { "name": "isAction", "parameters": { "action": "reopened" } }, { "operator": "not", "operands": [ { "name": "isInMilestone", "parameters": {} } ] } ] } ] }, { "operator": "or", "operands": [ { "name": "labelAdded", "parameters": { "label": "area-System.Buffers" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Numerics" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Numerics.Tensors" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Runtime" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Runtime.Intrinsics" } } ] } ] }, { "name": "isOpen", "parameters": {} }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "isOrgProject": true, "columnName": "Triaged" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Michael / Tanner - Issue Triage] Add new issue to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssueCommentResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Buffers" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Numerics" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Numerics.Tensors" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.Intrinsics" } } ] }, { "operator": "not", "operands": [ { "name": "isCloseAndComment", "parameters": {} } ] }, { "operator": "not", "operands": [ { "name": "activitySenderHasPermissions", "parameters": { "permissions": "write" } } ] }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } ] }, "eventType": "issue", "eventNames": [ "issue_comment" ], "taskName": "[Area Pod: Michael / Tanner - Issue Triage] Needs Further Triage", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Buffers" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Numerics" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Numerics.Tensors" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Runtime" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.Intrinsics" } } ] } ] }, { "name": "isAction", "parameters": { "action": "unlabeled" } } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Michael / Tanner - Issue Triage] Mark relabeled issues as Triaged", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "isOrgProject": true } }, { "operator": "or", "operands": [ { "name": "addedToMilestone", "parameters": {} }, { "name": "labelAdded", "parameters": { "label": "needs-author-action" } }, { "name": "labelAdded", "parameters": { "label": "api-ready-for-review" } }, { "name": "isAction", "parameters": { "action": "closed" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Michael / Tanner - Issue Triage] Move to Triaged Column", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - Issue Triage", "columnName": "Triaged", "isOrgProject": true } }, { "name": "removeLabel", "parameters": { "label": "untriaged" } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Buffers" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Numerics" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Numerics.Tensors" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.Intrinsics" } } ] }, { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - PRs", "isOrgProject": true } } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Michael / Tanner - PRs] Add new PR to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - PRs", "columnName": "Needs Champion", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Michael / Tanner - PRs", "columnName": "Done", "isOrgProject": true } } ] }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Buffers" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Numerics" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Numerics.Tensors" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Runtime" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Runtime.Intrinsics" } } ] } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Michael / Tanner - PRs] Mark relabeled PRs as Done", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Michael / Tanner - PRs", "columnName": "Done", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Asn1" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Cbor" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Security" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encoding" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encodings.Web" } } ] }, { "operator": "or", "operands": [ { "name": "isAction", "parameters": { "action": "reopened" } }, { "operator": "not", "operands": [ { "name": "isInMilestone", "parameters": {} } ] } ] } ] }, { "operator": "or", "operands": [ { "name": "labelAdded", "parameters": { "label": "area-System.Formats.Asn1" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Formats.Cbor" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Security" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Text.Encoding" } }, { "name": "labelAdded", "parameters": { "label": "area-System.Text.Encodings.Web" } } ] } ] }, { "name": "isOpen", "parameters": {} }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "isOrgProject": true, "columnName": "Triaged" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Jeremy / Levi - Issue Triage] Add new issue to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssueCommentResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Asn1" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Cbor" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Security" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encoding" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encodings.Web" } } ] }, { "operator": "not", "operands": [ { "name": "isCloseAndComment", "parameters": {} } ] }, { "operator": "not", "operands": [ { "name": "activitySenderHasPermissions", "parameters": { "permissions": "write" } } ] }, { "operator": "or", "operands": [ { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "isOrgProject": true } } ] }, { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } ] }, "eventType": "issue", "eventNames": [ "issue_comment" ], "taskName": "[Area Pod: Jeremy / Levi - Issue Triage] Needs Further Triage", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "columnName": "Needs Triage", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Asn1" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Cbor" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Security" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encoding" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encodings.Web" } } ] } ] }, { "name": "isAction", "parameters": { "action": "unlabeled" } } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Jeremy / Levi - Issue Triage] Mark relabeled issues as Triaged", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "columnName": "Triaged", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "IssuesOnlyResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "isOrgProject": true } }, { "operator": "or", "operands": [ { "name": "addedToMilestone", "parameters": {} }, { "name": "labelAdded", "parameters": { "label": "needs-author-action" } }, { "name": "labelAdded", "parameters": { "label": "api-ready-for-review" } }, { "name": "isAction", "parameters": { "action": "closed" } } ] } ] }, "eventType": "issue", "eventNames": [ "issues", "project_card" ], "taskName": "[Area Pod: Jeremy / Levi - Issue Triage] Move to Triaged Column", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - Issue Triage", "columnName": "Triaged", "isOrgProject": true } }, { "name": "removeLabel", "parameters": { "label": "untriaged" } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "or", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Asn1" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Cbor" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Security" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encoding" } }, { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encodings.Web" } } ] }, { "operator": "not", "operands": [ { "name": "isInProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - PRs", "isOrgProject": true } } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Jeremy / Levi - PRs] Add new PR to Board", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - PRs", "columnName": "Needs Champion", "isOrgProject": true } } ] } }, { "taskType": "trigger", "capabilityId": "IssueResponder", "subCapability": "PullRequestResponder", "version": "1.0", "config": { "conditions": { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "isInProjectColumn", "parameters": { "projectName": "Area Pod: Jeremy / Levi - PRs", "columnName": "Done", "isOrgProject": true } } ] }, { "operator": "and", "operands": [ { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Asn1" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Formats.Cbor" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Security" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encoding" } } ] }, { "operator": "not", "operands": [ { "name": "hasLabel", "parameters": { "label": "area-System.Text.Encodings.Web" } } ] } ] } ] }, "eventType": "pull_request", "eventNames": [ "pull_request", "issues", "project_card" ], "taskName": "[Area Pod: Jeremy / Levi - PRs] Mark relabeled PRs as Done", "actions": [ { "name": "addToProject", "parameters": { "projectName": "Area Pod: Jeremy / Levi - PRs", "columnName": "Done", "isOrgProject": true } } ] } } ]
1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./src/libraries/System.Runtime.Loader/tests/ApplyUpdate/System.Reflection.Metadata.ApplyUpdate.Test.AddStaticLambda/deltascript.json
{ "changes": [ {"document": "AddStaticLambda.cs", "update": "AddStaticLambda_v1.cs"}, ] }
{ "changes": [ {"document": "AddStaticLambda.cs", "update": "AddStaticLambda_v1.cs"}, ] }
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./src/mono/System.Private.CoreLib/README.md
# System.Private.CoreLib for Mono Runtime This folder contains the Mono runtime-specific portion of System.Private.CoreLib.dll. See [/src/libraries/System.Private.CoreLib/src/](/src/libraries/System.Private.CoreLib/src/README.md) for more details.
# System.Private.CoreLib for Mono Runtime This folder contains the Mono runtime-specific portion of System.Private.CoreLib.dll. See [/src/libraries/System.Private.CoreLib/src/](/src/libraries/System.Private.CoreLib/src/README.md) for more details.
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./docs/design/features/hosting-layer-apis.md
# Hosting layer APIs Functionality for advanced hosting scenarios is exposed on the `hostfxr` and `hostpolicy` libraries through C-style APIs. The `char_t` strings in the below API descriptions are defined based on the platform: * Windows - UTF-16 (2-byte `wchar_t`) * Note that `wchar_t` is defined as a [native type](https://docs.microsoft.com/cpp/build/reference/zc-wchar-t-wchar-t-is-native-type), which is the default in Visual Studio. * Unix - UTF-8 (1-byte `char`) ## Host FXR All exported functions and function pointers in the `hostfxr` library use the `__cdecl` calling convention on the x86 platform. ### .NET Core 1.0+ ``` C int hostfxr_main(const int argc, const char_t *argv[]) ``` Run an application. * `argc` / `argv` - command-line arguments This function does not return until the application completes execution. It will shutdown CoreCLR after the application executes. If the application is successfully executed, this value will return the exit code of the application. Otherwise, it will return an error code indicating the failure. ### .NET Core 2.0+ ``` C int32_t hostfxr_resolve_sdk( const char_t *exe_dir, const char_t *working_dir, char_t buffer[], int32_t buffer_size) ``` Obsolete. Use `hostfxr_resolve_sdk2`. ### .NET Core 2.1+ ``` C int hostfxr_main_startupinfo( const int argc, const char_t *argv[], const char_t *host_path, const char_t *dotnet_root, const char_t *app_path) ``` Run an application. * `argc` / `argv` - command-line arguments * `host_path` - path to the host application * `dotnet_root` - path to the .NET Core installation root * `app_path` - path to the application to run This function does not return until the application completes execution. It will shutdown CoreCLR after the application executes. If the application is successfully executed, this value will return the exit code of the application. Otherwise, it will return an error code indicating the failure. ``` C enum hostfxr_resolve_sdk2_flags_t { disallow_prerelease = 0x1, }; enum hostfxr_resolve_sdk2_result_key_t { resolved_sdk_dir = 0, global_json_path = 1, }; typedef void (*hostfxr_resolve_sdk2_result_fn)( hostfxr_resolve_sdk2_result_key_t key, const char_t* value); int32_t hostfxr_resolve_sdk2( const char_t *exe_dir, const char_t *working_dir, int32_t flags, hostfxr_resolve_sdk2_result_fn result) ``` Determine the directory location of the SDK, accounting for global.json and multi-level lookup policy. * `exe_dir` - main directory where SDKs are located in `sdk\[version]` sub-folders. * `working_dir` - directory where the search for `global.json` will start and proceed upwards * `flags` - flags that influence resolution * `disallow_prerelease` - do not allow resolution to return a pre-release SDK version unless a pre-release version was specified via `global.json` * `result` - callback invoked to return resolved values. The callback may be invoked more than once. Strings passed to the callback are valid only for the duration of the call. If resolution succeeds, `result` will be invoked with `resolved_sdk_dir` key and the value will hold the path to the resolved SDK directory. If resolution does not succeed, `result` will be invoked with `resolved_sdk_dir` key and the value will be `nullptr`. If `global.json` is used, `result` will be invoked with `global_json_path` key and the value will hold the path to `global.json`. If there was no `global.json` found, or the contents of global.json did not impact resolution (e.g. no version specified), then `result` will not be invoked with `global_json_path` key. ``` C typedef void (*hostfxr_get_available_sdks_result_fn)( int32_t sdk_count, const char_t *sdk_dirs[]); int32_t hostfxr_get_available_sdks( const char_t *exe_dir, hostfxr_get_available_sdks_result_fn result) ``` Get the list of all available SDKs ordered by ascending version. * `exe_dir` - path to the dotnet executable * `result` - callback invoked to return the list of SDKs by their directory paths. String array and its elements are valid only for the duration of the call. ``` C int32_t hostfxr_get_native_search_directories( const int argc, const char_t *argv[], char_t buffer[], int32_t buffer_size, int32_t *required_buffer_size) ``` Get the native search directories of the runtime based upon the specified app. * `argc` / `argv` - command-line arguments * `buffer` - buffer to populate with the native search directories (including a null terminator). * `buffer_size` - size of `buffer` in `char_t` units * `required_buffer_size` - if `buffer` is too small, this will be populated with the minimum required buffer size (including a null terminator). Otherwise, this will be set to 0. The native search directories will be a list of paths separated by `PATH_SEPARATOR`, which is a semicolon (;) on Windows and a colon (:) otherwise. If `buffer_size` is less than the minimum required buffer size, this function will return `HostApiBufferTooSmall` and `buffer` will be unchanged. ### .NET Core 3.0+ ``` C typedef void(*hostfxr_error_writer_fn)(const char_t *message); hostfxr_error_writer_fn hostfxr_set_error_writer(hostfxr_error_writer_fn error_writer) ``` Set a callback which will be used to report error messages. By default no callback is registered and the errors are written to standard error. * `error_writer` - callback function which will be invoked every time an error is reported. When set to `nullptr`, this function unregisters any previously registered callback and the default behaviour is restored. The return value is the previously registered callback (which is now unregistered) or `nullptr` if there was no previously registered callback. The error writer is registered per-thread. On each thread, only one callback can be registered. Subsequent registrations overwrite the previous ones. If `hostfxr` invokes functions in `hostpolicy` as part of its operation, the error writer will be propagated to `hostpolicy` for the duration of the call. This means that errors from both `hostfxr` and `hostpolicy` will be reported through the same error writer. ``` C int hostfxr_initialize_for_dotnet_command_line( int argc, const char_t *argv[], const hostfxr_initialize_parameters *parameters, hostfxr_handle * host_context_handle ); ``` Initialize the hosting components for running a managed application. * `argc` / `argv` - command-line arguments * `parameters` - optional additional parameters * `host_context_handle` - if initialization is successful, this receives an opaque value which identifies the initialized host context. See [Native hosting](native-hosting.md#initialize-host-context) ``` C int hostfxr_initialize_for_runtime_config( const char_t *runtime_config_path, const hostfxr_initialize_parameters *parameters, hostfxr_handle *host_context_handle ); ``` Initialize the hosting components for a runtime configuration (`.runtimeconfig.json`). * `runtime_config_path` - path to the `.runtimeconfig.json` file to process * `parameters` - optional additional parameters * `host_context_handle` - if initialization is successful, this receives an opaque value which identifies the initialized host context. See [Native hosting](native-hosting.md#initialize-host-context) ``` C int hostfxr_get_runtime_property_value( const hostfxr_handle host_context_handle, const char_t *name, const char_t **value); ``` Get the value of a runtime property specified by its name. * `host_context_handle` - initialized host context. If set to `nullptr` the function will operate on the first host context in the process. * `name` - name of the runtime property to get * `value` - returns a pointer to a buffer with the property value See [Native hosting](native-hosting.md#runtime-properties) ``` C int hostfxr_set_runtime_property_value( const hostfxr_handle host_context_handle, const char_t *name, const char_t *value); ``` Set the value of a property. * `host_context_handle` - initialized host context * `name` - name of the runtime property to set * `value` - value of the property to set. If the property already has a value in the host context, this function will overwrite it. When set to `nullptr` and if the property already has a value then the property is removed. See [Native hosting](native-hosting.md#runtime-properties) ``` C int hostfxr_get_runtime_properties( const hostfxr_handle host_context_handle, size_t * count, const char_t **keys, const char_t **values); ``` Get all runtime properties for the specified host context. * `host_context_handle` - initialized host context. If set to `nullptr` the function will operate on the first host context in the process. * `count` - in/out parameter which must not be `nullptr`. On input it specifies the size of the the `keys` and `values` buffers. On output it contains the number of entries used from `keys` and `values` buffers - the number of properties returned. * `keys` - buffer which acts as an array of pointers to buffers with keys for the runtime properties. * `values` - buffer which acts as an array of pointer to buffers with values for the runtime properties. If `count` is less than the minimum required buffer size or `keys` or `values` is `nullptr`, this function will return `HostApiBufferTooSmall` and `keys` and `values` will be unchanged. See [Native hosting](native-hosting.md#runtime-properties) ``` C int hostfxr_run_app(const hostfxr_handle host_context_handle); ``` Run the application specified by `hostfxr_initialize_for_dotnet_command_line`. * `host_context_handle` - handle to the initialized host context. This function does not return until the application completes execution. It will shutdown CoreCLR after the application executes. If the application is successfully executed, this value will return the exit code of the application. Otherwise, it will return an error code indicating the failure. See [Native hosting](native-hosting.md#runtime-properties) ``` C int hostfxr_get_runtime_delegate(const hostfxr_handle host_context_handle, hostfxr_delegate_type type, void ** delegate); ``` Start the runtime and get a function pointer to specified functionality of the runtime. * `host_context_handle` - initialized host context * `type` - type of runtime functionality requested * `delegate` - on success, this is populated with the native function pointer to the requested runtime functionality See [Native hosting](native-hosting.md#getting-a-delegate-for-runtime-functionality) ``` C int hostfxr_close(const hostfxr_handle host_context_handle); ``` Close a host context. * `host_context_handle` - initialized host context to close. See [Native hosting](native-hosting.md#cleanup) ## Host Policy All exported functions and function pointers in the `hostpolicy` library use the `__cdecl` calling convention on the x86 platform. ### .NET Core 1.0+ ``` C int corehost_load(host_interface_t *init) ``` Initialize `hostpolicy`. This stores information that will be required to do all the processing necessary to start CoreCLR, but it does not actually do any of that processing. * `init` - structure defining how the library should be initialized If already initalized, this function returns success without reinitializing (`init` is ignored). ``` C int corehost_main(const int argc, const char_t* argv[]) ``` Run an application. * `argc` / `argv` - command-line arguments This function does not return until the application completes execution. It will shutdown CoreCLR after the application executes. If the application is successfully executed, this value will return the exit code of the application. Otherwise, it will return an error code indicating the failure. ``` C int corehost_unload() ``` Uninitialize `hostpolicy`. ### .NET Core 2.1+ ``` C int corehost_main_with_output_buffer( const int argc, const char_t *argv[], char_t buffer[], int32_t buffer_size, int32_t *required_buffer_size) ``` Run a host command and return the output. `corehost_load(init)` should have been called with `init->host_command` set. This function operates in the hosting layer and does not actually run CoreCLR. * `argc` / `argv` - command-line arguments * `buffer` - buffer to populate with the output (including a null terminator). * `buffer_size` - size of `buffer` in `char_t` units * `required_buffer_size` - if `buffer` is too small, this will be populated with the minimum required buffer size (including a null terminator). Otherwise, this will be set to 0. If `buffer_size` is less than the minimum required buffer size, this function will return `HostApiBufferTooSmall` and `buffer` will be unchanged. ### .NET Core 3.0+ ``` C typedef void(*corehost_resolve_component_dependencies_result_fn)( const char_t *assembly_paths, const char_t *native_search_paths, const char_t *resource_search_paths); int corehost_resolve_component_dependencies( const char_t *component_main_assembly_path, corehost_resolve_component_dependencies_result_fn result) ``` Resolve dependencies for the specified component. * `component_main_assembly_path` - path to the component * `result` - callback which will receive the results of the component dependency resolution See [Component dependency resolution support in host](host-component-dependencies-resolution.md) ``` C typedef void(*corehost_error_writer_fn)(const char_t *message); corehost_error_writer_fn corehost_set_error_writer(corehost_error_writer_fn error_writer) ``` Set a callback which will be used to report error messages. By default no callback is registered and the errors are written to standard error. * `error_writer` - callback function which will be invoked every time an error is reported. When set to `nullptr`, this function unregisters any previously registered callback and the default behaviour is restored. The return value is the previouly registered callback (which is now unregistered) or `nullptr` if there was no previously registered callback. The error writer is registered per-thread. On each thread, only one callback can be registered. Subsequent registrations overwrite the previous ones. ``` C typedef void* context_handle; struct corehost_context_contract { size_t version; int (*get_property_value)( const char_t *key, const char_t **value); int (*set_property_value)( const char_t *key, const char_t *value); int (*get_properties)( size_t *count, const char_t **keys, const char_t **values); int (*load_runtime)(); int (*run_app)( const int argc, const char_t* argv[]); int (*get_runtime_delegate)( coreclr_delegate_type type, void** delegate); }; ``` Contract for performing operations on an initialized hostpolicy. * `version` - version of the struct. * `get_property_value` - function pointer for getting a property on the host context. * `key` - key of the property to get. * `value` - pointer to a buffer with the retrieved property value. * `set_property_value` - function pointer for setting a property on the host context. * `key` - key of the property to set. * `value` - value of the property to set. If `nullptr`, the property is removed. * `get_properties` - function pointer for getting all properties on the host context. * `count` - size of `keys` and `values`. If the size is too small, it will be populated with the required size. Otherwise, it will be populated with the size used. * `keys` - buffer to populate with the property keys. * `values` - buffer to populate with the property values. * `load_runtime` - function pointer for loading CoreCLR * `run_app` - function pointer for running an application. * `argc` / `argv` - command-line arguments. * `get_runtime_delegate` - function pointer for getting a delegate for CoreCLR functionality * `type` - requested type of runtime functionality * `delegate` - function pointer to the requested runtime functionality ``` C enum intialization_options_t { none = 0x0, wait_for_initialized = 0x1, get_contract = 0x2, }; int corehost_initialize(const corehost_initialize_request_t *init_request, int32_t options, corehost_context_contract *context_contract) ``` Initialize hostpolicy. This calculates everything required to start or attach to CoreCLR (but does not actually do so). * `init_request` - struct containing information about the initialization request. If hostpolicy is not yet initialized, this is expected to be nullptr. If hostpolicy is already initialized, this should not be nullptr and this function will use the struct to check for compatibility with the way in which hostpolicy was previously initialized. * `options` - initialization options * `wait_for_initialized` - wait until initialization through a different request is completed * `get_contract` - get the contract for already initialized hostpolicy * `context_contract` - if initialization is successful, this is populated with the contract for operating on the initialized hostpolicy.
# Hosting layer APIs Functionality for advanced hosting scenarios is exposed on the `hostfxr` and `hostpolicy` libraries through C-style APIs. The `char_t` strings in the below API descriptions are defined based on the platform: * Windows - UTF-16 (2-byte `wchar_t`) * Note that `wchar_t` is defined as a [native type](https://docs.microsoft.com/cpp/build/reference/zc-wchar-t-wchar-t-is-native-type), which is the default in Visual Studio. * Unix - UTF-8 (1-byte `char`) ## Host FXR All exported functions and function pointers in the `hostfxr` library use the `__cdecl` calling convention on the x86 platform. ### .NET Core 1.0+ ``` C int hostfxr_main(const int argc, const char_t *argv[]) ``` Run an application. * `argc` / `argv` - command-line arguments This function does not return until the application completes execution. It will shutdown CoreCLR after the application executes. If the application is successfully executed, this value will return the exit code of the application. Otherwise, it will return an error code indicating the failure. ### .NET Core 2.0+ ``` C int32_t hostfxr_resolve_sdk( const char_t *exe_dir, const char_t *working_dir, char_t buffer[], int32_t buffer_size) ``` Obsolete. Use `hostfxr_resolve_sdk2`. ### .NET Core 2.1+ ``` C int hostfxr_main_startupinfo( const int argc, const char_t *argv[], const char_t *host_path, const char_t *dotnet_root, const char_t *app_path) ``` Run an application. * `argc` / `argv` - command-line arguments * `host_path` - path to the host application * `dotnet_root` - path to the .NET Core installation root * `app_path` - path to the application to run This function does not return until the application completes execution. It will shutdown CoreCLR after the application executes. If the application is successfully executed, this value will return the exit code of the application. Otherwise, it will return an error code indicating the failure. ``` C enum hostfxr_resolve_sdk2_flags_t { disallow_prerelease = 0x1, }; enum hostfxr_resolve_sdk2_result_key_t { resolved_sdk_dir = 0, global_json_path = 1, }; typedef void (*hostfxr_resolve_sdk2_result_fn)( hostfxr_resolve_sdk2_result_key_t key, const char_t* value); int32_t hostfxr_resolve_sdk2( const char_t *exe_dir, const char_t *working_dir, int32_t flags, hostfxr_resolve_sdk2_result_fn result) ``` Determine the directory location of the SDK, accounting for global.json and multi-level lookup policy. * `exe_dir` - main directory where SDKs are located in `sdk\[version]` sub-folders. * `working_dir` - directory where the search for `global.json` will start and proceed upwards * `flags` - flags that influence resolution * `disallow_prerelease` - do not allow resolution to return a pre-release SDK version unless a pre-release version was specified via `global.json` * `result` - callback invoked to return resolved values. The callback may be invoked more than once. Strings passed to the callback are valid only for the duration of the call. If resolution succeeds, `result` will be invoked with `resolved_sdk_dir` key and the value will hold the path to the resolved SDK directory. If resolution does not succeed, `result` will be invoked with `resolved_sdk_dir` key and the value will be `nullptr`. If `global.json` is used, `result` will be invoked with `global_json_path` key and the value will hold the path to `global.json`. If there was no `global.json` found, or the contents of global.json did not impact resolution (e.g. no version specified), then `result` will not be invoked with `global_json_path` key. ``` C typedef void (*hostfxr_get_available_sdks_result_fn)( int32_t sdk_count, const char_t *sdk_dirs[]); int32_t hostfxr_get_available_sdks( const char_t *exe_dir, hostfxr_get_available_sdks_result_fn result) ``` Get the list of all available SDKs ordered by ascending version. * `exe_dir` - path to the dotnet executable * `result` - callback invoked to return the list of SDKs by their directory paths. String array and its elements are valid only for the duration of the call. ``` C int32_t hostfxr_get_native_search_directories( const int argc, const char_t *argv[], char_t buffer[], int32_t buffer_size, int32_t *required_buffer_size) ``` Get the native search directories of the runtime based upon the specified app. * `argc` / `argv` - command-line arguments * `buffer` - buffer to populate with the native search directories (including a null terminator). * `buffer_size` - size of `buffer` in `char_t` units * `required_buffer_size` - if `buffer` is too small, this will be populated with the minimum required buffer size (including a null terminator). Otherwise, this will be set to 0. The native search directories will be a list of paths separated by `PATH_SEPARATOR`, which is a semicolon (;) on Windows and a colon (:) otherwise. If `buffer_size` is less than the minimum required buffer size, this function will return `HostApiBufferTooSmall` and `buffer` will be unchanged. ### .NET Core 3.0+ ``` C typedef void(*hostfxr_error_writer_fn)(const char_t *message); hostfxr_error_writer_fn hostfxr_set_error_writer(hostfxr_error_writer_fn error_writer) ``` Set a callback which will be used to report error messages. By default no callback is registered and the errors are written to standard error. * `error_writer` - callback function which will be invoked every time an error is reported. When set to `nullptr`, this function unregisters any previously registered callback and the default behaviour is restored. The return value is the previously registered callback (which is now unregistered) or `nullptr` if there was no previously registered callback. The error writer is registered per-thread. On each thread, only one callback can be registered. Subsequent registrations overwrite the previous ones. If `hostfxr` invokes functions in `hostpolicy` as part of its operation, the error writer will be propagated to `hostpolicy` for the duration of the call. This means that errors from both `hostfxr` and `hostpolicy` will be reported through the same error writer. ``` C int hostfxr_initialize_for_dotnet_command_line( int argc, const char_t *argv[], const hostfxr_initialize_parameters *parameters, hostfxr_handle * host_context_handle ); ``` Initialize the hosting components for running a managed application. * `argc` / `argv` - command-line arguments * `parameters` - optional additional parameters * `host_context_handle` - if initialization is successful, this receives an opaque value which identifies the initialized host context. See [Native hosting](native-hosting.md#initialize-host-context) ``` C int hostfxr_initialize_for_runtime_config( const char_t *runtime_config_path, const hostfxr_initialize_parameters *parameters, hostfxr_handle *host_context_handle ); ``` Initialize the hosting components for a runtime configuration (`.runtimeconfig.json`). * `runtime_config_path` - path to the `.runtimeconfig.json` file to process * `parameters` - optional additional parameters * `host_context_handle` - if initialization is successful, this receives an opaque value which identifies the initialized host context. See [Native hosting](native-hosting.md#initialize-host-context) ``` C int hostfxr_get_runtime_property_value( const hostfxr_handle host_context_handle, const char_t *name, const char_t **value); ``` Get the value of a runtime property specified by its name. * `host_context_handle` - initialized host context. If set to `nullptr` the function will operate on the first host context in the process. * `name` - name of the runtime property to get * `value` - returns a pointer to a buffer with the property value See [Native hosting](native-hosting.md#runtime-properties) ``` C int hostfxr_set_runtime_property_value( const hostfxr_handle host_context_handle, const char_t *name, const char_t *value); ``` Set the value of a property. * `host_context_handle` - initialized host context * `name` - name of the runtime property to set * `value` - value of the property to set. If the property already has a value in the host context, this function will overwrite it. When set to `nullptr` and if the property already has a value then the property is removed. See [Native hosting](native-hosting.md#runtime-properties) ``` C int hostfxr_get_runtime_properties( const hostfxr_handle host_context_handle, size_t * count, const char_t **keys, const char_t **values); ``` Get all runtime properties for the specified host context. * `host_context_handle` - initialized host context. If set to `nullptr` the function will operate on the first host context in the process. * `count` - in/out parameter which must not be `nullptr`. On input it specifies the size of the the `keys` and `values` buffers. On output it contains the number of entries used from `keys` and `values` buffers - the number of properties returned. * `keys` - buffer which acts as an array of pointers to buffers with keys for the runtime properties. * `values` - buffer which acts as an array of pointer to buffers with values for the runtime properties. If `count` is less than the minimum required buffer size or `keys` or `values` is `nullptr`, this function will return `HostApiBufferTooSmall` and `keys` and `values` will be unchanged. See [Native hosting](native-hosting.md#runtime-properties) ``` C int hostfxr_run_app(const hostfxr_handle host_context_handle); ``` Run the application specified by `hostfxr_initialize_for_dotnet_command_line`. * `host_context_handle` - handle to the initialized host context. This function does not return until the application completes execution. It will shutdown CoreCLR after the application executes. If the application is successfully executed, this value will return the exit code of the application. Otherwise, it will return an error code indicating the failure. See [Native hosting](native-hosting.md#runtime-properties) ``` C int hostfxr_get_runtime_delegate(const hostfxr_handle host_context_handle, hostfxr_delegate_type type, void ** delegate); ``` Start the runtime and get a function pointer to specified functionality of the runtime. * `host_context_handle` - initialized host context * `type` - type of runtime functionality requested * `delegate` - on success, this is populated with the native function pointer to the requested runtime functionality See [Native hosting](native-hosting.md#getting-a-delegate-for-runtime-functionality) ``` C int hostfxr_close(const hostfxr_handle host_context_handle); ``` Close a host context. * `host_context_handle` - initialized host context to close. See [Native hosting](native-hosting.md#cleanup) ## Host Policy All exported functions and function pointers in the `hostpolicy` library use the `__cdecl` calling convention on the x86 platform. ### .NET Core 1.0+ ``` C int corehost_load(host_interface_t *init) ``` Initialize `hostpolicy`. This stores information that will be required to do all the processing necessary to start CoreCLR, but it does not actually do any of that processing. * `init` - structure defining how the library should be initialized If already initalized, this function returns success without reinitializing (`init` is ignored). ``` C int corehost_main(const int argc, const char_t* argv[]) ``` Run an application. * `argc` / `argv` - command-line arguments This function does not return until the application completes execution. It will shutdown CoreCLR after the application executes. If the application is successfully executed, this value will return the exit code of the application. Otherwise, it will return an error code indicating the failure. ``` C int corehost_unload() ``` Uninitialize `hostpolicy`. ### .NET Core 2.1+ ``` C int corehost_main_with_output_buffer( const int argc, const char_t *argv[], char_t buffer[], int32_t buffer_size, int32_t *required_buffer_size) ``` Run a host command and return the output. `corehost_load(init)` should have been called with `init->host_command` set. This function operates in the hosting layer and does not actually run CoreCLR. * `argc` / `argv` - command-line arguments * `buffer` - buffer to populate with the output (including a null terminator). * `buffer_size` - size of `buffer` in `char_t` units * `required_buffer_size` - if `buffer` is too small, this will be populated with the minimum required buffer size (including a null terminator). Otherwise, this will be set to 0. If `buffer_size` is less than the minimum required buffer size, this function will return `HostApiBufferTooSmall` and `buffer` will be unchanged. ### .NET Core 3.0+ ``` C typedef void(*corehost_resolve_component_dependencies_result_fn)( const char_t *assembly_paths, const char_t *native_search_paths, const char_t *resource_search_paths); int corehost_resolve_component_dependencies( const char_t *component_main_assembly_path, corehost_resolve_component_dependencies_result_fn result) ``` Resolve dependencies for the specified component. * `component_main_assembly_path` - path to the component * `result` - callback which will receive the results of the component dependency resolution See [Component dependency resolution support in host](host-component-dependencies-resolution.md) ``` C typedef void(*corehost_error_writer_fn)(const char_t *message); corehost_error_writer_fn corehost_set_error_writer(corehost_error_writer_fn error_writer) ``` Set a callback which will be used to report error messages. By default no callback is registered and the errors are written to standard error. * `error_writer` - callback function which will be invoked every time an error is reported. When set to `nullptr`, this function unregisters any previously registered callback and the default behaviour is restored. The return value is the previouly registered callback (which is now unregistered) or `nullptr` if there was no previously registered callback. The error writer is registered per-thread. On each thread, only one callback can be registered. Subsequent registrations overwrite the previous ones. ``` C typedef void* context_handle; struct corehost_context_contract { size_t version; int (*get_property_value)( const char_t *key, const char_t **value); int (*set_property_value)( const char_t *key, const char_t *value); int (*get_properties)( size_t *count, const char_t **keys, const char_t **values); int (*load_runtime)(); int (*run_app)( const int argc, const char_t* argv[]); int (*get_runtime_delegate)( coreclr_delegate_type type, void** delegate); }; ``` Contract for performing operations on an initialized hostpolicy. * `version` - version of the struct. * `get_property_value` - function pointer for getting a property on the host context. * `key` - key of the property to get. * `value` - pointer to a buffer with the retrieved property value. * `set_property_value` - function pointer for setting a property on the host context. * `key` - key of the property to set. * `value` - value of the property to set. If `nullptr`, the property is removed. * `get_properties` - function pointer for getting all properties on the host context. * `count` - size of `keys` and `values`. If the size is too small, it will be populated with the required size. Otherwise, it will be populated with the size used. * `keys` - buffer to populate with the property keys. * `values` - buffer to populate with the property values. * `load_runtime` - function pointer for loading CoreCLR * `run_app` - function pointer for running an application. * `argc` / `argv` - command-line arguments. * `get_runtime_delegate` - function pointer for getting a delegate for CoreCLR functionality * `type` - requested type of runtime functionality * `delegate` - function pointer to the requested runtime functionality ``` C enum intialization_options_t { none = 0x0, wait_for_initialized = 0x1, get_contract = 0x2, }; int corehost_initialize(const corehost_initialize_request_t *init_request, int32_t options, corehost_context_contract *context_contract) ``` Initialize hostpolicy. This calculates everything required to start or attach to CoreCLR (but does not actually do so). * `init_request` - struct containing information about the initialization request. If hostpolicy is not yet initialized, this is expected to be nullptr. If hostpolicy is already initialized, this should not be nullptr and this function will use the struct to check for compatibility with the way in which hostpolicy was previously initialized. * `options` - initialization options * `wait_for_initialized` - wait until initialization through a different request is completed * `get_contract` - get the contract for already initialized hostpolicy * `context_contract` - if initialization is successful, this is populated with the contract for operating on the initialized hostpolicy.
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./docs/design/coreclr/jit/Optimization of Heap Access in Value Numbering.md
# Optimization of Heap Access in Value Numbering CLR Jit Team, Jan 2013 **Note:** this is a document written a number of years ago outlining a plan for Jit development. There is no guarantee that what is described here has been implemented, or was implemented as described. ## Introduction The heap memory modeling currently embodied by the JIT's value numbering has at least the potential of being quite precise. In fact, it currently throws away none of the available information, maintaining, along each path, the complete set of heap updates performed. Unfortunately, this raises a performance problem. Since each heap update forms a new heap value, in the form of a `VNF_MapStore` VN function applied to the previous heap value, searching through a heap value for relevant updates has the potential of being time-consuming. This note gives a design for solving this problem. ## Background on the problem Recall that an update `o.f = v`, where `f` is a field of some class `C`, is modeled as: ``` H’ = H0[ C$f := H0[C$f][o := v] ] ``` Here `H0` is the heap value before the assignment, `H’` the heap value after. The notation `m[ind := val]` denotes the “functional update” of a map `m` creating a new map that is just like `m`, except at index value `ind`, where it has value `val`. In the VN framework, this will appear as `VNF_MapStore(m, ind, val)`. The notation `m[ind]` is just the value of `m` at `ind`; this will appear in the VN framework as `VNF_MapSelect(m, ind)`. Read `C$f` as a unique identifier for the field – in our system, the `CORINFO_FIELD_HANDLE` suffices. When we create a `VNF_MapSelect` value, we try to simplify it, using the “select-of-store” rules: ``` M[ind := v][ind] = v ind1 != ind2 ==> M[ind1 := v][ind2] = M[ind2] ``` This latter rule will be troublesome: if `M` is itself a big composition of `VNF_MapStore`’s, then we could keep applying this rule, going backwards through the history of stores to the heap, trying to find the last one for the field we’re currently interested in. Going back to the translation of `o.f = v`, note that the value we substitute at `C$f` itself is a `MapSelect` of `H0`. Consider a class with a large number `n` of fields, and a constructor that initializes each of the `n` fields to some value. When we get to the `k`th field `f_k`, we will have a `k`-deep nest of `VNF_MapStore`s, representing all the stores since the start of the method. We’ll want to construct the previous value of the `T$f_k` field map, so we’ll create a `VNF_MapSelect`. This construction will use the second select-of-store rule to search backwards through all the previous `k` stores, trying to find a store into `f_k`. There isn’t one, so all of these searches will end up indexing the initial heap value with `T$f_k`. I’ve obviously just described a quadratic process for such a method. We’d like to avoid this pathology. Before we go on, I’ll note that we always have an “out”: if we give this search a “budget” parameter, we can always give up when the budget is exhausted, given the `VNF_MapSelect` term we’re trying to simplify a new, unique value number – which is always correct, just imprecise. The solution I’ll describe here tries to solve the performance problem without sacrificing precision. Let me also anticipate one possible thought: why do we have a single “heap” variable? Couldn’t I avoid this problem by having a separate state variable for each distinct field map? Indeed I could, but: * We’d have to have SSA variables for each state of each such field map, complicating the SSA/tracked variable story. * Calls are very common – and, in our current model, completely trash the heap. With a single heap variable, from which field maps are acquired by indexing, we can lose all information about the heap at a call simply by giving the heap a new, unique value number about which nothing is known. The same is true for other situations where we need to lose all heap information: stores through unknown pointers, volatile variable accesses, etc. If we had per-field maps, we’d need to give all of them that are mentioned in the method a new, unique value at each such point. ## Solution The heap here has a special property: it is indexed only by constants, where that we can always decide whether or not two indices are equal. In some sense, this is the root of the problem, since it keeps us going backwards when the indices are distinct. (In contrast, consider the representation of a field map `T$f_k`: this is indexed by object reference values, where we usually can’t tell whether two such values are equal or distinct, causing the search performed in creating a `VNF_MapSelect` term whose argument is a field map that’s been updated several times to stop quickly.) The indexed-only-by-constants property allows us to consider a hash-table representation: as we’re doing value numbering within a block, we care about the current value of the heap. If we update the heap at a particular `T$f_k` more than once, we only care about the most recent value that we stored for this index. Thus, the idea is: * We support a flattened representation of a heap state, and alternative to the standard “term” representation. The flattened form would have a base state, which may either be a flattened or term form, and an updates hash table mapping heap indices (in full generality, these are field handles for static and instance fields, and representations of array types) to the corresponding values (direct values for statics, field maps for instance fields, and “array maps” for arrays) for the indices where the heap state has been updated relative to the base state. * When value-numbering a block, we would always have the current heap state both in term form and in flattened form. When we process an operation that modifies the heap, we would form the new term representation for the heap, as we do today, but also update the current heap state. This is “update” in the strong sense: if a given block updates the heap at a field f several times, we change the hash table mapping to the most recent value to which f has been updated. * Since we have the current heap state in this flattened form, we can use it to speed the evaluate of `VNF_MapSelect`’s of the current heap state: we’ll be able to find, in expected constant time, the current value, if the heap has been updated at the selected index, or else that it has not, in which case we have to continue with the base heap state. * The point above indicates that there’s still a search. To make this faster, we’d like the base heap state to also be flattened. We can achieve this easily. We allocate a new flattened representation at the beginning of each basic block we process. When we complete the block, we save the final heap state with the block. For a block `B1`, if it has a successor block `B2` such that `B1` is `B2`’s sole successor, then `B1`’s final heap state will be the “base” state for the current heap state used in value-numbering `B2`. If `B2` has multiple predecessors (and some predecessor modifies the heap) then it will have a phi definition for the heap state. In this case, `B1`’s final heap state will be the value of the phi function argument corresponding to `B1`. In this way, the backwards search done in evaluating a `VNF_MapSelect` of a current heap state will be at most proportional to the number of basic blocks on the path, rather than the number of heap updates performed. * We could take this idea one step further. Assume that `B2` has `B1` as its sole predecessor, and that we’ve value-numbered `B1` and stored its final heap state. As I’ve described it, we would make `B1`’s post-state the base state of the current heap state we use in value-numbering `B2`. We could, instead, copy `B1`’s final state, and use that as the current heap state in `B2`. If `H0` is the base heap state of `B1`’s post-state, then this will also be the base state we use in `B2`. Thus, when we finish `B2`, and save the flattened heap state as `B2`’s post-state, we will have collapsed the search chain. A `VNF_MapSelect` query on `B2`’s post-state will check that hash table, but if the indexed key isn’t found, it won’t look at `B1`’s hash table, since that was copied into `B2`’s initial state. This is a time/space tradeoff. It might be an attractive one: if the total set of fields that are mentioned in the method is relatively small, then there might be considerable commonality between fields modified in `B1` and those modified in `B2`. In that case, the total final size of the hash tables would be roughly the same. The bad case is if the sets of fields modified by `B1` and `B2` are disjoint; in that case, the fields modified by `B1` are represented twice, in the flattened post-states of each block. If we adopt this collapsing as the default strategy, then this means within an extended basic block with root block `B0`, with base heap state `H0`, all the blocks in the EBB will immediately skip back to `H0` on a failing `VNF_MapSelect` query, skipping any interior blocks in the EBB. ## Heap phi definitions There’s a second, perhaps worse, performance problem embedded in the current code. If we do a `VNF_MapSelect(H, ind)` query on a heap state `H`, and `H` is a phi definition at the beginning of block `B`, and all of the predecessors of `B` have already been value-numbered, we don’t just “give up.” Rather, we note that if `H = phi(H0, …, Hk)`, we can form `VNF_MapSelect(H0, ind), …, VNF_MapSelect(Hk, ind)` – if these all simplify to the same value, that is the value of `VNF_MapSelect(H, ind)`. To motivate this strategy, consider the following source fragment: ``` … o1.f … if (P) { o2.g = 17; } else { o3.h = 102; } … o1.f … ``` To make CSE work well, we want the initial and final occurrences of `o1.f` to get the same value number. If `H0` is the heap value before the code fragment, this VN should represent `H0[T1$f][o1]`. Both arms of the conditional update the heap – but at indices `T2$g` and `T3$h` distinct from `T1$f`. But to determine this, and get the right value number, we have to look at both phi arguments at the heap phi definition that occurs at the merge point of the conditional, and query them with `T1$f`. One might fear that is a disastrous exponential process: if we had a series of `N` such conditionals, aren’t there `2^N` paths through this conditional cascade, and wouldn’t we explore all of them? There are exponentially many paths, but we could easily make sure not explore them all. In fact, we only need to do linear work. Assume we’re value numbering `o1.f` after the end of cascade. We work our way back to the first conditional in the sequence, and evaluate the `VNF_MapSelect` on its phi arguments. These both yield `H0[T1$f]`. Recall that the “ValueNumberStore” type maintains a number of hash tables mapping function applications to their VN results. When we attempt to evaluate a function application, we always first check to see whether there is a previously-evaluated result. If not, we record the final result. When we’re using the select-of-store axioms to simplify applications of `VNF_MapSelect`, we do not usually record the “intermediate results”: if the outer query were ``` VNF_MapSelect(VNF_MapStore(VNF_MapStore(H0, T3$h, v3), T2$g, v2), T1$f) ``` we would decide first that `T1$f` and `T2$g` were distinct, and thus recursively evaluate ``` VNF_MapSelect(VNF_MapStore(H0, T3$h, v3), T1$f) ``` This, again would reduce, and we’d get `VNF_MapSelect(H0, T1$f)` as the final result. We’d record this VN as the result for the original function application, but not for the intermediate one above. However, there’s no reason we couldn’t do this, as long as we were selective, to avoid excess space overhead. The phi function case, because of the danger of exponential explosion, is an excellent candidate. In my example, if having determined that doing the `VNF_MapSelect` on all the arguments to the phi function after the merge of the first conditional in the sequence yields the same result, `H0[T1$f][o1]`, we would record this result for the select application of the phi function in the “global” hash table that memoizes VN function applications. We got to the first conditional by exploring first phi arguments for all the post-conditional merge blocks in the conditional cascade. There are many more paths to get to the first conditional, but none of them will explore it further, because of the memoization. In the same way, the second conditional’s heap phi definition will get recorded, and on up the chain. We’ll only do linear work on this. ## Final Pathological case We’ve handled two possible performance pathologies (or at least sketched ways for doing so.) What bad cases remain? If we’ve largely solved cases with large number of distinct fields, by flattening, are there perhaps problems at the next level – perhaps updates to a small number of distinct fields, but at a large number of (potentially) different object reference values? Generally, this isn’t a problem: the quadratic search problem for the heap arose because of the constant-index property, which allowed us to keep determining that store fields were distinct from the select field, and continue searching backwards. For object reference values, we don’t have that property – while we can determine that distinct object reference variables have the same value, we don’t really have many mechanisms for determining that they have distinct values. We might add one, however: we could add a reasoning mechanism that allows us to note that a reference to a newly allocated object is distinct any reference to a previously-allocated object; the result is fresh. In we add such a mechanism, a potential pathology arises: ``` class T { public int f; } void M(T t0) { … t0.f … T t1 = new T(); t1.f = 1; … t0.f … T t2 = new T(); t2.f = 2; … t0.f … … T tk = new T(); tk.f = k; … t0.f … } ``` If we can tell that each `t1, t2, …, tk` is distinct from `t0` (and, in fact, pairwise distinct from one another, though that’s not relevant to this example), then each of the `t0.f` queries will search through all of the stores that have been done so far – and the total work will be quadratic in `k`. Flattening is not an option here (or at least not an easy one), because normally we won’t know that object references are distinct. I think the right response to this (and to other possible performance pathologies that I haven’t figured out yet) is to do what I mentioned at the start: have a maximum “budget” for any particular heap query, and give up and return a new, unique value number if the budget is exhausted. For example, the budget could be formulated in terms of maximum number of recursive `VNF_MapSelect` terms evaluated as part of evaluation of an outermost such term. ## Structs I’ll note in passing that we represent also represent struct values as maps: from struct field handles to the values of the field in the struct. This is quite similar to the heap treatment; in fact, you could look at the static variable portion of the heap as a big struct containing all the statics. Would flattening help here? The pathological case to imagine here is a long sequence of stores to fields of the same struct variable `vs`, except for field `f` – followed by a lookup of `vs.f`, which has to traverse backwards through all the `VNF_MapStore` terms for the struct to get back to the original value. First, note that his case is not quite as pathological as the original “constructor stores to `k` distinct fields” example. For instance fields, each store implicitly involved a lookup of the previous value of the field map. This is not true for the struct case; we just overwrite the previous value of the field, without looking it. (For the same reason, we don’t get the quadratic pathology for a class constructor that stores to `k` distinct static fields: a subsequent query of another static not in the set stored to can take `O(k)`, but the stores themselves are each linear.) Unfortunately, the flattening idea that helped the heap field case is not really applicable to the struct case – or at least not easily. In the heap case, we don’t usually store intermediate states of the heap (though we may in some cases, if they’re possible inputs to a heap phi in a handler block – and we might want to consider whether we want to make copies of the current flattened heap state in that such situations.) In the struct case, however, we do: every modification of a field of a struct variable leads to a new SSA name for the outer variable, and its value is a `VNF_MapStore` into the previous value. We store these values with the SSA definition. Thus, we might have many hash table copies, which would be undesirable. A somewhat vague idea here is that if we knew the “height” of a store nest, we could choose to create a flattened representation when creating a new store whose height would exceed some maximum. This flattened representation would have a base value, and summarize, in a hash table, the stores performed since that base value. For example, if the maximum height were 10, when we were going to create a store term whose height were 10, we’d search through the store sequence, creating the hash table, and the base value would be the map argument of the 10th store. We could even make this hierarchical, ensuring that even a query on an arbitrary store nest only had logarithmic cost. ## Summary, other directions We have a system a value numbering system that saves enough information to allow sophisticated modeling of values of the program, including those in the heap. By saving so much information, we open the possibility of making queries expensive. I’ve sketched here a few strategies for dealing with some of the most obvious pathological examples. I’m pretty sure we will need to address at least the flattening, phi query memoization, and budget upper bound issues, to avoid a future bug trail of “the compiler takes forever on my weird mechanically generated 100MB method.” One other thing: I thought a little bit about merging heap states at merge points. If we had a control flow diamond, with heap state `H0` beforehand, where each arm of the conditional assigns to `o.f`, then, especially given the flattened form, we could determine that input heap states to the heap phi definition at the merge both have `H0` as “common ancestor” state. Then you could look at what fields were modified where. If they were modified at the same fields and object references, then you’d look at the values. If they agree, you could summarize them via a store to H0 of that value at that index. If they disagree, you store a new, unique value: losing the information that “it was one of these two values.” If only one arm stores, you also lose the information. Complications occur when the arms store to the same field at different object references. Then we have to analyze not just the set of field handle indices into the heap, but also the object reference handles into the field maps. The complexities of this caused me to shy away from a full proposal of this idea, but perhaps someone else can make it work.
# Optimization of Heap Access in Value Numbering CLR Jit Team, Jan 2013 **Note:** this is a document written a number of years ago outlining a plan for Jit development. There is no guarantee that what is described here has been implemented, or was implemented as described. ## Introduction The heap memory modeling currently embodied by the JIT's value numbering has at least the potential of being quite precise. In fact, it currently throws away none of the available information, maintaining, along each path, the complete set of heap updates performed. Unfortunately, this raises a performance problem. Since each heap update forms a new heap value, in the form of a `VNF_MapStore` VN function applied to the previous heap value, searching through a heap value for relevant updates has the potential of being time-consuming. This note gives a design for solving this problem. ## Background on the problem Recall that an update `o.f = v`, where `f` is a field of some class `C`, is modeled as: ``` H’ = H0[ C$f := H0[C$f][o := v] ] ``` Here `H0` is the heap value before the assignment, `H’` the heap value after. The notation `m[ind := val]` denotes the “functional update” of a map `m` creating a new map that is just like `m`, except at index value `ind`, where it has value `val`. In the VN framework, this will appear as `VNF_MapStore(m, ind, val)`. The notation `m[ind]` is just the value of `m` at `ind`; this will appear in the VN framework as `VNF_MapSelect(m, ind)`. Read `C$f` as a unique identifier for the field – in our system, the `CORINFO_FIELD_HANDLE` suffices. When we create a `VNF_MapSelect` value, we try to simplify it, using the “select-of-store” rules: ``` M[ind := v][ind] = v ind1 != ind2 ==> M[ind1 := v][ind2] = M[ind2] ``` This latter rule will be troublesome: if `M` is itself a big composition of `VNF_MapStore`’s, then we could keep applying this rule, going backwards through the history of stores to the heap, trying to find the last one for the field we’re currently interested in. Going back to the translation of `o.f = v`, note that the value we substitute at `C$f` itself is a `MapSelect` of `H0`. Consider a class with a large number `n` of fields, and a constructor that initializes each of the `n` fields to some value. When we get to the `k`th field `f_k`, we will have a `k`-deep nest of `VNF_MapStore`s, representing all the stores since the start of the method. We’ll want to construct the previous value of the `T$f_k` field map, so we’ll create a `VNF_MapSelect`. This construction will use the second select-of-store rule to search backwards through all the previous `k` stores, trying to find a store into `f_k`. There isn’t one, so all of these searches will end up indexing the initial heap value with `T$f_k`. I’ve obviously just described a quadratic process for such a method. We’d like to avoid this pathology. Before we go on, I’ll note that we always have an “out”: if we give this search a “budget” parameter, we can always give up when the budget is exhausted, given the `VNF_MapSelect` term we’re trying to simplify a new, unique value number – which is always correct, just imprecise. The solution I’ll describe here tries to solve the performance problem without sacrificing precision. Let me also anticipate one possible thought: why do we have a single “heap” variable? Couldn’t I avoid this problem by having a separate state variable for each distinct field map? Indeed I could, but: * We’d have to have SSA variables for each state of each such field map, complicating the SSA/tracked variable story. * Calls are very common – and, in our current model, completely trash the heap. With a single heap variable, from which field maps are acquired by indexing, we can lose all information about the heap at a call simply by giving the heap a new, unique value number about which nothing is known. The same is true for other situations where we need to lose all heap information: stores through unknown pointers, volatile variable accesses, etc. If we had per-field maps, we’d need to give all of them that are mentioned in the method a new, unique value at each such point. ## Solution The heap here has a special property: it is indexed only by constants, where that we can always decide whether or not two indices are equal. In some sense, this is the root of the problem, since it keeps us going backwards when the indices are distinct. (In contrast, consider the representation of a field map `T$f_k`: this is indexed by object reference values, where we usually can’t tell whether two such values are equal or distinct, causing the search performed in creating a `VNF_MapSelect` term whose argument is a field map that’s been updated several times to stop quickly.) The indexed-only-by-constants property allows us to consider a hash-table representation: as we’re doing value numbering within a block, we care about the current value of the heap. If we update the heap at a particular `T$f_k` more than once, we only care about the most recent value that we stored for this index. Thus, the idea is: * We support a flattened representation of a heap state, and alternative to the standard “term” representation. The flattened form would have a base state, which may either be a flattened or term form, and an updates hash table mapping heap indices (in full generality, these are field handles for static and instance fields, and representations of array types) to the corresponding values (direct values for statics, field maps for instance fields, and “array maps” for arrays) for the indices where the heap state has been updated relative to the base state. * When value-numbering a block, we would always have the current heap state both in term form and in flattened form. When we process an operation that modifies the heap, we would form the new term representation for the heap, as we do today, but also update the current heap state. This is “update” in the strong sense: if a given block updates the heap at a field f several times, we change the hash table mapping to the most recent value to which f has been updated. * Since we have the current heap state in this flattened form, we can use it to speed the evaluate of `VNF_MapSelect`’s of the current heap state: we’ll be able to find, in expected constant time, the current value, if the heap has been updated at the selected index, or else that it has not, in which case we have to continue with the base heap state. * The point above indicates that there’s still a search. To make this faster, we’d like the base heap state to also be flattened. We can achieve this easily. We allocate a new flattened representation at the beginning of each basic block we process. When we complete the block, we save the final heap state with the block. For a block `B1`, if it has a successor block `B2` such that `B1` is `B2`’s sole successor, then `B1`’s final heap state will be the “base” state for the current heap state used in value-numbering `B2`. If `B2` has multiple predecessors (and some predecessor modifies the heap) then it will have a phi definition for the heap state. In this case, `B1`’s final heap state will be the value of the phi function argument corresponding to `B1`. In this way, the backwards search done in evaluating a `VNF_MapSelect` of a current heap state will be at most proportional to the number of basic blocks on the path, rather than the number of heap updates performed. * We could take this idea one step further. Assume that `B2` has `B1` as its sole predecessor, and that we’ve value-numbered `B1` and stored its final heap state. As I’ve described it, we would make `B1`’s post-state the base state of the current heap state we use in value-numbering `B2`. We could, instead, copy `B1`’s final state, and use that as the current heap state in `B2`. If `H0` is the base heap state of `B1`’s post-state, then this will also be the base state we use in `B2`. Thus, when we finish `B2`, and save the flattened heap state as `B2`’s post-state, we will have collapsed the search chain. A `VNF_MapSelect` query on `B2`’s post-state will check that hash table, but if the indexed key isn’t found, it won’t look at `B1`’s hash table, since that was copied into `B2`’s initial state. This is a time/space tradeoff. It might be an attractive one: if the total set of fields that are mentioned in the method is relatively small, then there might be considerable commonality between fields modified in `B1` and those modified in `B2`. In that case, the total final size of the hash tables would be roughly the same. The bad case is if the sets of fields modified by `B1` and `B2` are disjoint; in that case, the fields modified by `B1` are represented twice, in the flattened post-states of each block. If we adopt this collapsing as the default strategy, then this means within an extended basic block with root block `B0`, with base heap state `H0`, all the blocks in the EBB will immediately skip back to `H0` on a failing `VNF_MapSelect` query, skipping any interior blocks in the EBB. ## Heap phi definitions There’s a second, perhaps worse, performance problem embedded in the current code. If we do a `VNF_MapSelect(H, ind)` query on a heap state `H`, and `H` is a phi definition at the beginning of block `B`, and all of the predecessors of `B` have already been value-numbered, we don’t just “give up.” Rather, we note that if `H = phi(H0, …, Hk)`, we can form `VNF_MapSelect(H0, ind), …, VNF_MapSelect(Hk, ind)` – if these all simplify to the same value, that is the value of `VNF_MapSelect(H, ind)`. To motivate this strategy, consider the following source fragment: ``` … o1.f … if (P) { o2.g = 17; } else { o3.h = 102; } … o1.f … ``` To make CSE work well, we want the initial and final occurrences of `o1.f` to get the same value number. If `H0` is the heap value before the code fragment, this VN should represent `H0[T1$f][o1]`. Both arms of the conditional update the heap – but at indices `T2$g` and `T3$h` distinct from `T1$f`. But to determine this, and get the right value number, we have to look at both phi arguments at the heap phi definition that occurs at the merge point of the conditional, and query them with `T1$f`. One might fear that is a disastrous exponential process: if we had a series of `N` such conditionals, aren’t there `2^N` paths through this conditional cascade, and wouldn’t we explore all of them? There are exponentially many paths, but we could easily make sure not explore them all. In fact, we only need to do linear work. Assume we’re value numbering `o1.f` after the end of cascade. We work our way back to the first conditional in the sequence, and evaluate the `VNF_MapSelect` on its phi arguments. These both yield `H0[T1$f]`. Recall that the “ValueNumberStore” type maintains a number of hash tables mapping function applications to their VN results. When we attempt to evaluate a function application, we always first check to see whether there is a previously-evaluated result. If not, we record the final result. When we’re using the select-of-store axioms to simplify applications of `VNF_MapSelect`, we do not usually record the “intermediate results”: if the outer query were ``` VNF_MapSelect(VNF_MapStore(VNF_MapStore(H0, T3$h, v3), T2$g, v2), T1$f) ``` we would decide first that `T1$f` and `T2$g` were distinct, and thus recursively evaluate ``` VNF_MapSelect(VNF_MapStore(H0, T3$h, v3), T1$f) ``` This, again would reduce, and we’d get `VNF_MapSelect(H0, T1$f)` as the final result. We’d record this VN as the result for the original function application, but not for the intermediate one above. However, there’s no reason we couldn’t do this, as long as we were selective, to avoid excess space overhead. The phi function case, because of the danger of exponential explosion, is an excellent candidate. In my example, if having determined that doing the `VNF_MapSelect` on all the arguments to the phi function after the merge of the first conditional in the sequence yields the same result, `H0[T1$f][o1]`, we would record this result for the select application of the phi function in the “global” hash table that memoizes VN function applications. We got to the first conditional by exploring first phi arguments for all the post-conditional merge blocks in the conditional cascade. There are many more paths to get to the first conditional, but none of them will explore it further, because of the memoization. In the same way, the second conditional’s heap phi definition will get recorded, and on up the chain. We’ll only do linear work on this. ## Final Pathological case We’ve handled two possible performance pathologies (or at least sketched ways for doing so.) What bad cases remain? If we’ve largely solved cases with large number of distinct fields, by flattening, are there perhaps problems at the next level – perhaps updates to a small number of distinct fields, but at a large number of (potentially) different object reference values? Generally, this isn’t a problem: the quadratic search problem for the heap arose because of the constant-index property, which allowed us to keep determining that store fields were distinct from the select field, and continue searching backwards. For object reference values, we don’t have that property – while we can determine that distinct object reference variables have the same value, we don’t really have many mechanisms for determining that they have distinct values. We might add one, however: we could add a reasoning mechanism that allows us to note that a reference to a newly allocated object is distinct any reference to a previously-allocated object; the result is fresh. In we add such a mechanism, a potential pathology arises: ``` class T { public int f; } void M(T t0) { … t0.f … T t1 = new T(); t1.f = 1; … t0.f … T t2 = new T(); t2.f = 2; … t0.f … … T tk = new T(); tk.f = k; … t0.f … } ``` If we can tell that each `t1, t2, …, tk` is distinct from `t0` (and, in fact, pairwise distinct from one another, though that’s not relevant to this example), then each of the `t0.f` queries will search through all of the stores that have been done so far – and the total work will be quadratic in `k`. Flattening is not an option here (or at least not an easy one), because normally we won’t know that object references are distinct. I think the right response to this (and to other possible performance pathologies that I haven’t figured out yet) is to do what I mentioned at the start: have a maximum “budget” for any particular heap query, and give up and return a new, unique value number if the budget is exhausted. For example, the budget could be formulated in terms of maximum number of recursive `VNF_MapSelect` terms evaluated as part of evaluation of an outermost such term. ## Structs I’ll note in passing that we represent also represent struct values as maps: from struct field handles to the values of the field in the struct. This is quite similar to the heap treatment; in fact, you could look at the static variable portion of the heap as a big struct containing all the statics. Would flattening help here? The pathological case to imagine here is a long sequence of stores to fields of the same struct variable `vs`, except for field `f` – followed by a lookup of `vs.f`, which has to traverse backwards through all the `VNF_MapStore` terms for the struct to get back to the original value. First, note that his case is not quite as pathological as the original “constructor stores to `k` distinct fields” example. For instance fields, each store implicitly involved a lookup of the previous value of the field map. This is not true for the struct case; we just overwrite the previous value of the field, without looking it. (For the same reason, we don’t get the quadratic pathology for a class constructor that stores to `k` distinct static fields: a subsequent query of another static not in the set stored to can take `O(k)`, but the stores themselves are each linear.) Unfortunately, the flattening idea that helped the heap field case is not really applicable to the struct case – or at least not easily. In the heap case, we don’t usually store intermediate states of the heap (though we may in some cases, if they’re possible inputs to a heap phi in a handler block – and we might want to consider whether we want to make copies of the current flattened heap state in that such situations.) In the struct case, however, we do: every modification of a field of a struct variable leads to a new SSA name for the outer variable, and its value is a `VNF_MapStore` into the previous value. We store these values with the SSA definition. Thus, we might have many hash table copies, which would be undesirable. A somewhat vague idea here is that if we knew the “height” of a store nest, we could choose to create a flattened representation when creating a new store whose height would exceed some maximum. This flattened representation would have a base value, and summarize, in a hash table, the stores performed since that base value. For example, if the maximum height were 10, when we were going to create a store term whose height were 10, we’d search through the store sequence, creating the hash table, and the base value would be the map argument of the 10th store. We could even make this hierarchical, ensuring that even a query on an arbitrary store nest only had logarithmic cost. ## Summary, other directions We have a system a value numbering system that saves enough information to allow sophisticated modeling of values of the program, including those in the heap. By saving so much information, we open the possibility of making queries expensive. I’ve sketched here a few strategies for dealing with some of the most obvious pathological examples. I’m pretty sure we will need to address at least the flattening, phi query memoization, and budget upper bound issues, to avoid a future bug trail of “the compiler takes forever on my weird mechanically generated 100MB method.” One other thing: I thought a little bit about merging heap states at merge points. If we had a control flow diamond, with heap state `H0` beforehand, where each arm of the conditional assigns to `o.f`, then, especially given the flattened form, we could determine that input heap states to the heap phi definition at the merge both have `H0` as “common ancestor” state. Then you could look at what fields were modified where. If they were modified at the same fields and object references, then you’d look at the values. If they agree, you could summarize them via a store to H0 of that value at that index. If they disagree, you store a new, unique value: losing the information that “it was one of these two values.” If only one arm stores, you also lose the information. Complications occur when the arms store to the same field at different object references. Then we have to analyze not just the set of field handle indices into the heap, but also the object reference handles into the field maps. The complexities of this caused me to shy away from a full proposal of this idea, but perhaps someone else can make it work.
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./docs/coding-guidelines/breaking-change-rules.md
Breaking Change Rules ===================== * [Behavioral Changes](#behavioral-changes) * [Property, Field, Parameter and Return Values](#property-field-parameter-and-return-values) * [Exceptions](#exceptions) * [Platform Support](#platform-support) * [Code](#code) * [Source and Binary Compatibility Changes](#source-and-binary-compatibility-changes) * [Assemblies](#assemblies) * [Types](#types) * [Members](#members) * [Signatures](#signatures) * [Attributes](#attributes) ## Behavioral Changes ### Property, Field, Parameter and Return Values &#10003; **Allowed** * Increasing the range of accepted values for a property or parameter if the member _is not_ `virtual` Note that the range can only increase to the extent that it does not impact the static type. e.g. it is OK to remove `if (x > 10) throw new ArgumentOutOfRangeException("x")`, but it is not OK to change the type of `x` from `int` to `long` or `int?`. * Returning a value of a more derived type for a property, field, return or `out` value Note, again, that the static type cannot change. e.g. it is OK to return a `string` instance where an `object` was returned previously, but it is not OK to change the return type from `object` to `string`. &#10007; **Disallowed** * Increasing the range of accepted values for a property or parameter if the member _is_ `virtual` This is breaking because any existing overridden members will now not function correctly for the extended range of values. * Decreasing the range of accepted values for a property or parameter, such as a change in parsing of input and throwing new errors (even if parsing behavior is not specified in the docs) * Increasing the range of returned values for a property, field, return or `out` value * Changing the returned values for a property, field, return or 'out' value, such as the value returned from `ToString` If you had an API which returned a value from 0-10, but actually intended to divide the value by two and forgot (return only 0-5) then changing the return to now give the correct value is a breaking. * Changing the default value for a property, field or parameter (either via an overload or default value) * Changing the value of an enum member * Changing the precision of a numerical return value ### Exceptions &#10003; **Allowed** * Throwing a more derived exception than an existing exception For example, `CultureInfo.GetCultureInfo(String)` used to throw `ArgumentException` in .NET Framework 3.5. In .NET Framework 4.0, this was changed to throw `CultureNotFoundException` which derives from `ArgumentException`, and therefore is an acceptable change. * Throwing a more specific exception than `NotSupportedException`, `NotImplementedException`, `NullReferenceException` or an exception that is considered unrecoverable Unrecoverable exceptions should not be getting caught and will be dealt with on a broad level by a high-level catch-all handler. Therefore, users are not expected to have code that catches these explicit exceptions. The unrecoverable exceptions are: * `StackOverflowException` * `SEHException` * `ExecutionEngineException` * `AccessViolationException` * Throwing a new exception that only applies to a code-path which can only be observed with new parameter values, or state (that couldn't hit by existing code targeting the previous version) * Removing an exception that was being thrown when the API allows more robust behavior or enables new scenarios For example, a Divide method which only worked on positive values, but threw an exception otherwise, can be changed to support all values and the exception is no longer thrown. &#10007; **Disallowed** * Throwing a new exception in any other case not listed above * Removing an exception in any other case not listed above ### Platform Support &#10003; **Allowed** * An operation previously not supported on a specific platform, is now supported &#10007; **Disallowed** * An operation previously supported on a specific platform is no longer supported, or now requires a specific service-pack ### Code &#10003; **Allowed** * A change which is directly intended to increase performance of an operation The ability to modify the performance of an operation is essential in order to ensure we stay competitive, and we continue to give users operational benefits. This can break anything which relies upon the current speed of an operation, sometimes visible in badly built code relying upon asynchronous operations. Note that the performance change should have no affect on other behavior of the API in question, otherwise the change will be breaking. * A change which indirectly, and often adversely, affects performance Assuming the change in question is not categorized as breaking for some other reason, this is acceptable. Often, actions need to be taken which may include extra operation calls, or new functionality. This will almost always affect performance, but may be essential to make the API in question function as expected. * Changing the text of an error message Not only should users not rely on these text messages, but they change anyways based on culture * Calling a brand new event that wasn't previously defined. &#10007; **Disallowed** * Adding the `checked` keyword to a code-block This may cause code in a block to begin to throwing exceptions, an unacceptable change. * Changing the order in which events are fired Developers can reasonably expect events to fire in the same order. * Removing the raising of an event on a given action * Changing a synchronous API to asynchronous (and vice versa) * Firing an existing event when it was never fired before * Changing the number of times given events are called ## Source and Binary Compatibility Changes ### Assemblies &#10003; **Allowed** * Making an assembly portable when the same platforms are still supported &#10007; **Disallowed** * Changing the name of an assembly * Changing the public key of an assembly ### Types &#10003; **Allowed** * Adding the `sealed` or `abstract` keyword to a type when there are _no accessible_ (public or protected) constructors * Increasing the visibility of a type * Introducing a new base class So long as it does not introduce any new abstract members or change the semantics or behavior of existing members, a type can be introduced into a hierarchy between two existing types. For example, between .NET Framework 1.1 and .NET Framework 2.0, we introduced `DbConnection` as a new base class for `SqlConnection` which previously derived from `Component`. * Adding an interface implementation to a type This is acceptable because it will not adversely affect existing clients. Any changes which could be made to the type being changed in this situation, will have to work within the boundaries of acceptable changes defined here, in order for the new implementation to remain acceptable. Extreme caution is urged when adding interfaces that directly affect the ability of the designer or serializer to generate code or data, that cannot be consumed down-level. An example is the `ISerializable` interface. Care should be taken when the interface (or one of the interfaces that this interface requires) has default interface implementations for other interface methods. The default implementation could conflict with other default implementations in a derived class. * Removing an interface implementation from a type when the interface is already implemented lower in the hierarchy * Moving a type from one assembly into another assembly The old assembly must be marked with `TypeForwardedToAttribute` pointing to the new location * Changing a `struct` type to a `readonly struct` type &#10007; **Disallowed** * Adding the `sealed` or `abstract` keyword to a type when there _are accessible_ (public or protected) constructors * Decreasing the visibility of a type * Removing the implementation of an interface on a type It is not breaking when you added the implementation of an interface which derives from the removed interface. For example, you removed `IDisposable`, but implemented `IComponent`, which derives from `IDisposable`. * Removing one or more base classes for a type, including changing `struct` to `class` and vice versa * Changing the namespace or name of a type * Changing a `readonly struct` type to a `struct` type * Changing a `struct` type to a `ref struct` type and vice versa * Changing the underlying type of an enum This is a compile-time and behavioral breaking change as well as a binary breaking change which can make attribute arguments unparsable. ### Members &#10003; **Allowed** * Adding an abstract member to a public type when there are _no accessible_ (`public` or `protected`) constructors, or the type is `sealed` * Moving a method onto a class higher in the hierarchy tree of the type from which it was removed * Increasing the visibility of a member that is not `virtual` * Decreasing the visibility of a `protected` member when there are _no accessible_ (`public` or `protected`) constructors or the type is `sealed` * Changing a member from `abstract` to `virtual` * Introducing or removing an override Make note, that introducing an override might cause previous consumers to skip over the override when calling `base`. * Change from `ref readonly` return to `ref` return (except for virtual methods or interfaces) * Adding an interface method with a default implementation to an interface Note that care must be taken when adding a default implementation that has "update" semantic (e.g. adding `void AddAll(IEnumerable<T> items)` to `ICollection<T>`). If the interface is implemented by a struct, the default implementation is always executed on a boxed `this`: if the struct is not boxed, the runtime boxes it on users behalf. Changes done by the default interface method would be lost in that case. An example where this implicit boxing would happen are constrained calls (`void CallMethod<T, U>(ref T x) where T : struct, ICollection<U> { x.AddAll(...); }` &#10007; **Disallowed** * Adding an abstract method to an interface * Adding a default implementation of an _existing interface method_ (`IA.Foo`) on an _existing_ interface type (`IB`) User code could already be providing a default interface method implementation for `IA.Foo` in another interface (`IU`). If a user type implements both `IU` and `IB`, this would result in the "diamond problem" and runtime/compiler would not be able to disambiguate the target of the interface call. Note that this rule also applies to providing a default implementation for public interface methods on _non-public_ interfaces that are implemented by unsealed public types. * Adding an abstract member to a type when there _are accessible_ (`public` or `protected`) constructors and the type is not `sealed` * Adding a constructor to a class which previously had no constructor, without also adding the default constructor * Adding an overload that precludes an existing overload, and defines different behavior This will break existing clients that were bound to the previous overload. For example, if you have a class that has a single version of a method that accepts a `uint`, an existing consumer will successfully bind to that overload, if simply passing an `int` value. However, if you add an overload that accepts an `int`, recompiling or via late-binding the application will now bind to the new overload. If different behavior results, then this is a breaking change. * Moving an exposed field onto a class higher in the hierarchy tree of the type from which it was removed * Removing or renaming a member, including a getter or setter from a property or enum members * Decreasing the visibility of a `protected` member when there _are accessible_ (`public` or `protected`) constructors and the type is not `sealed` * Adding or removing `abstract` from a member * Removing the `virtual` keyword from a member * Adding `virtual` to a member While this change would often work without breaking too many scenarios because C# compiler tends to emit `callvirt` IL instructions to call non-virtual methods (`callvirt` performs a null check, while a normal `call` won't), we can't rely on it. C# is not the only language we target and the C# compiler increasingly tries to optimize `callvirt` to a normal `call` whenever the target method is non-virtual and the `this` is provably not null (such as a method accessed through the `?.` null propagation operator). Making a method virtual would mean that consumer code would often end up calling it non-virtually. * Change from `ref` return to `ref readonly` return * Change from `ref readonly` return to `ref` return on a virtual method or interface * Adding or removing `static` keyword from a member * Adding a field to a struct that previously had no state Definite assignment rules allow use of uninitialized variables so long as the variable type is a stateless struct. If the struct is made stateful, code could now end up with uninitialized data. This is both potentially a source breaking and binary breaking change. ### Signatures &#10003; **Allowed** * Adding `params` to a parameter * Removing `readonly` from a field, unless the static type of the field is a mutable value type &#10007; **Disallowed** * Adding `readonly` to a field * Adding the `FlagsAttribute` to an enum * Changing the type of a property, field, parameter or return value * Adding, removing or changing the order of parameters * Removing `params` from a parameter * Adding or removing `in`, `out`, or `ref` keywords from a parameter * Renaming a parameter (including case) This is considered breaking for two reasons: * It breaks late-bound scenarios, such as Visual Basic's late-binding feature and C#'s `dynamic` * It breaks source compatibility when developers use [named parameters](http://msdn.microsoft.com/en-us/library/dd264739.aspx). * Changing a parameter modifier from `ref` to `out`, or vice versa ### Attributes &#10003; **Allowed** * Changing the value of an attribute that is _not observable_ &#10007; **Disallowed** * Removing an attribute Although this item can be addressed on a case to case basis, removing an attribute will often be breaking. For example, `NonSerializedAttribute` * Changing values of an attribute that _is observable_
Breaking Change Rules ===================== * [Behavioral Changes](#behavioral-changes) * [Property, Field, Parameter and Return Values](#property-field-parameter-and-return-values) * [Exceptions](#exceptions) * [Platform Support](#platform-support) * [Code](#code) * [Source and Binary Compatibility Changes](#source-and-binary-compatibility-changes) * [Assemblies](#assemblies) * [Types](#types) * [Members](#members) * [Signatures](#signatures) * [Attributes](#attributes) ## Behavioral Changes ### Property, Field, Parameter and Return Values &#10003; **Allowed** * Increasing the range of accepted values for a property or parameter if the member _is not_ `virtual` Note that the range can only increase to the extent that it does not impact the static type. e.g. it is OK to remove `if (x > 10) throw new ArgumentOutOfRangeException("x")`, but it is not OK to change the type of `x` from `int` to `long` or `int?`. * Returning a value of a more derived type for a property, field, return or `out` value Note, again, that the static type cannot change. e.g. it is OK to return a `string` instance where an `object` was returned previously, but it is not OK to change the return type from `object` to `string`. &#10007; **Disallowed** * Increasing the range of accepted values for a property or parameter if the member _is_ `virtual` This is breaking because any existing overridden members will now not function correctly for the extended range of values. * Decreasing the range of accepted values for a property or parameter, such as a change in parsing of input and throwing new errors (even if parsing behavior is not specified in the docs) * Increasing the range of returned values for a property, field, return or `out` value * Changing the returned values for a property, field, return or 'out' value, such as the value returned from `ToString` If you had an API which returned a value from 0-10, but actually intended to divide the value by two and forgot (return only 0-5) then changing the return to now give the correct value is a breaking. * Changing the default value for a property, field or parameter (either via an overload or default value) * Changing the value of an enum member * Changing the precision of a numerical return value ### Exceptions &#10003; **Allowed** * Throwing a more derived exception than an existing exception For example, `CultureInfo.GetCultureInfo(String)` used to throw `ArgumentException` in .NET Framework 3.5. In .NET Framework 4.0, this was changed to throw `CultureNotFoundException` which derives from `ArgumentException`, and therefore is an acceptable change. * Throwing a more specific exception than `NotSupportedException`, `NotImplementedException`, `NullReferenceException` or an exception that is considered unrecoverable Unrecoverable exceptions should not be getting caught and will be dealt with on a broad level by a high-level catch-all handler. Therefore, users are not expected to have code that catches these explicit exceptions. The unrecoverable exceptions are: * `StackOverflowException` * `SEHException` * `ExecutionEngineException` * `AccessViolationException` * Throwing a new exception that only applies to a code-path which can only be observed with new parameter values, or state (that couldn't hit by existing code targeting the previous version) * Removing an exception that was being thrown when the API allows more robust behavior or enables new scenarios For example, a Divide method which only worked on positive values, but threw an exception otherwise, can be changed to support all values and the exception is no longer thrown. &#10007; **Disallowed** * Throwing a new exception in any other case not listed above * Removing an exception in any other case not listed above ### Platform Support &#10003; **Allowed** * An operation previously not supported on a specific platform, is now supported &#10007; **Disallowed** * An operation previously supported on a specific platform is no longer supported, or now requires a specific service-pack ### Code &#10003; **Allowed** * A change which is directly intended to increase performance of an operation The ability to modify the performance of an operation is essential in order to ensure we stay competitive, and we continue to give users operational benefits. This can break anything which relies upon the current speed of an operation, sometimes visible in badly built code relying upon asynchronous operations. Note that the performance change should have no affect on other behavior of the API in question, otherwise the change will be breaking. * A change which indirectly, and often adversely, affects performance Assuming the change in question is not categorized as breaking for some other reason, this is acceptable. Often, actions need to be taken which may include extra operation calls, or new functionality. This will almost always affect performance, but may be essential to make the API in question function as expected. * Changing the text of an error message Not only should users not rely on these text messages, but they change anyways based on culture * Calling a brand new event that wasn't previously defined. &#10007; **Disallowed** * Adding the `checked` keyword to a code-block This may cause code in a block to begin to throwing exceptions, an unacceptable change. * Changing the order in which events are fired Developers can reasonably expect events to fire in the same order. * Removing the raising of an event on a given action * Changing a synchronous API to asynchronous (and vice versa) * Firing an existing event when it was never fired before * Changing the number of times given events are called ## Source and Binary Compatibility Changes ### Assemblies &#10003; **Allowed** * Making an assembly portable when the same platforms are still supported &#10007; **Disallowed** * Changing the name of an assembly * Changing the public key of an assembly ### Types &#10003; **Allowed** * Adding the `sealed` or `abstract` keyword to a type when there are _no accessible_ (public or protected) constructors * Increasing the visibility of a type * Introducing a new base class So long as it does not introduce any new abstract members or change the semantics or behavior of existing members, a type can be introduced into a hierarchy between two existing types. For example, between .NET Framework 1.1 and .NET Framework 2.0, we introduced `DbConnection` as a new base class for `SqlConnection` which previously derived from `Component`. * Adding an interface implementation to a type This is acceptable because it will not adversely affect existing clients. Any changes which could be made to the type being changed in this situation, will have to work within the boundaries of acceptable changes defined here, in order for the new implementation to remain acceptable. Extreme caution is urged when adding interfaces that directly affect the ability of the designer or serializer to generate code or data, that cannot be consumed down-level. An example is the `ISerializable` interface. Care should be taken when the interface (or one of the interfaces that this interface requires) has default interface implementations for other interface methods. The default implementation could conflict with other default implementations in a derived class. * Removing an interface implementation from a type when the interface is already implemented lower in the hierarchy * Moving a type from one assembly into another assembly The old assembly must be marked with `TypeForwardedToAttribute` pointing to the new location * Changing a `struct` type to a `readonly struct` type &#10007; **Disallowed** * Adding the `sealed` or `abstract` keyword to a type when there _are accessible_ (public or protected) constructors * Decreasing the visibility of a type * Removing the implementation of an interface on a type It is not breaking when you added the implementation of an interface which derives from the removed interface. For example, you removed `IDisposable`, but implemented `IComponent`, which derives from `IDisposable`. * Removing one or more base classes for a type, including changing `struct` to `class` and vice versa * Changing the namespace or name of a type * Changing a `readonly struct` type to a `struct` type * Changing a `struct` type to a `ref struct` type and vice versa * Changing the underlying type of an enum This is a compile-time and behavioral breaking change as well as a binary breaking change which can make attribute arguments unparsable. ### Members &#10003; **Allowed** * Adding an abstract member to a public type when there are _no accessible_ (`public` or `protected`) constructors, or the type is `sealed` * Moving a method onto a class higher in the hierarchy tree of the type from which it was removed * Increasing the visibility of a member that is not `virtual` * Decreasing the visibility of a `protected` member when there are _no accessible_ (`public` or `protected`) constructors or the type is `sealed` * Changing a member from `abstract` to `virtual` * Introducing or removing an override Make note, that introducing an override might cause previous consumers to skip over the override when calling `base`. * Change from `ref readonly` return to `ref` return (except for virtual methods or interfaces) * Adding an interface method with a default implementation to an interface Note that care must be taken when adding a default implementation that has "update" semantic (e.g. adding `void AddAll(IEnumerable<T> items)` to `ICollection<T>`). If the interface is implemented by a struct, the default implementation is always executed on a boxed `this`: if the struct is not boxed, the runtime boxes it on users behalf. Changes done by the default interface method would be lost in that case. An example where this implicit boxing would happen are constrained calls (`void CallMethod<T, U>(ref T x) where T : struct, ICollection<U> { x.AddAll(...); }` &#10007; **Disallowed** * Adding an abstract method to an interface * Adding a default implementation of an _existing interface method_ (`IA.Foo`) on an _existing_ interface type (`IB`) User code could already be providing a default interface method implementation for `IA.Foo` in another interface (`IU`). If a user type implements both `IU` and `IB`, this would result in the "diamond problem" and runtime/compiler would not be able to disambiguate the target of the interface call. Note that this rule also applies to providing a default implementation for public interface methods on _non-public_ interfaces that are implemented by unsealed public types. * Adding an abstract member to a type when there _are accessible_ (`public` or `protected`) constructors and the type is not `sealed` * Adding a constructor to a class which previously had no constructor, without also adding the default constructor * Adding an overload that precludes an existing overload, and defines different behavior This will break existing clients that were bound to the previous overload. For example, if you have a class that has a single version of a method that accepts a `uint`, an existing consumer will successfully bind to that overload, if simply passing an `int` value. However, if you add an overload that accepts an `int`, recompiling or via late-binding the application will now bind to the new overload. If different behavior results, then this is a breaking change. * Moving an exposed field onto a class higher in the hierarchy tree of the type from which it was removed * Removing or renaming a member, including a getter or setter from a property or enum members * Decreasing the visibility of a `protected` member when there _are accessible_ (`public` or `protected`) constructors and the type is not `sealed` * Adding or removing `abstract` from a member * Removing the `virtual` keyword from a member * Adding `virtual` to a member While this change would often work without breaking too many scenarios because C# compiler tends to emit `callvirt` IL instructions to call non-virtual methods (`callvirt` performs a null check, while a normal `call` won't), we can't rely on it. C# is not the only language we target and the C# compiler increasingly tries to optimize `callvirt` to a normal `call` whenever the target method is non-virtual and the `this` is provably not null (such as a method accessed through the `?.` null propagation operator). Making a method virtual would mean that consumer code would often end up calling it non-virtually. * Change from `ref` return to `ref readonly` return * Change from `ref readonly` return to `ref` return on a virtual method or interface * Adding or removing `static` keyword from a member * Adding a field to a struct that previously had no state Definite assignment rules allow use of uninitialized variables so long as the variable type is a stateless struct. If the struct is made stateful, code could now end up with uninitialized data. This is both potentially a source breaking and binary breaking change. ### Signatures &#10003; **Allowed** * Adding `params` to a parameter * Removing `readonly` from a field, unless the static type of the field is a mutable value type &#10007; **Disallowed** * Adding `readonly` to a field * Adding the `FlagsAttribute` to an enum * Changing the type of a property, field, parameter or return value * Adding, removing or changing the order of parameters * Removing `params` from a parameter * Adding or removing `in`, `out`, or `ref` keywords from a parameter * Renaming a parameter (including case) This is considered breaking for two reasons: * It breaks late-bound scenarios, such as Visual Basic's late-binding feature and C#'s `dynamic` * It breaks source compatibility when developers use [named parameters](http://msdn.microsoft.com/en-us/library/dd264739.aspx). * Changing a parameter modifier from `ref` to `out`, or vice versa ### Attributes &#10003; **Allowed** * Changing the value of an attribute that is _not observable_ &#10007; **Disallowed** * Removing an attribute Although this item can be addressed on a case to case basis, removing an attribute will often be breaking. For example, `NonSerializedAttribute` * Changing values of an attribute that _is observable_
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./docs/workflow/testing/libraries/testing-wasm.md
# Testing Libraries on WebAssembly ## Prerequisites ### Using JavaScript engines In order to be able to run tests, the following JavaScript engines should be installed: - V8 - JavaScriptCore - SpiderMonkey They can be installed as a part of [jsvu](https://github.com/GoogleChromeLabs/jsvu). Please make sure that a JavaScript engine binary is available via command line, e.g. for V8: ```bash $ v8 V8 version 8.5.62 ``` If you use `jsvu`, first add its location to PATH variable e.g. for V8 ```bash PATH=/Users/<your_user>/.jsvu/:$PATH V8 ``` ### Using Browser Instance It's possible to run tests in a browser instance: #### Chrome - An installation of [ChromeDriver - WebDriver for Chrome](https://chromedriver.chromium.org) is required. Make sure to read [Downloads/Version Selection](https://chromedriver.chromium.org/downloads/version-selection) to setup a working installation of ChromeDriver. - Include the [ChromeDriver - WebDriver for Chrome](https://chromedriver.chromium.org) location in your PATH environment. Default is `/Users/<your_user>/.chromedriver` ```bash PATH=/Users/<your_user>/.chromedriver:$PATH ``` #### Gecko / Firefox - Requires gecko driver [Github repository of Mozilla](https://github.com/mozilla/geckodriver/releases) - Include the [Github repository of Mozilla](https://github.com/mozilla/geckodriver/releases) location in your PATH environment. Default is `/Users/<your_user>/.geckodriver` ```bash PATH=/Users/<your_user>/.geckodriver:$PATH ``` ## Building Libs and Tests for WebAssembly Now we're ready to build everything for WebAssembly (for more details, please read [this document](../../building/libraries/webassembly-instructions.md#building-everything)): ```bash ./build.sh -os Browser -c Release ``` and even run tests one by one for each library: ``` ./build.sh libs.tests -test -os Browser -c Release ``` ### Running individual test suites using JavaScript engine The following shows how to run tests for a specific library ``` ./dotnet.sh build /t:Test src/libraries/System.AppContext/tests /p:TargetOS=Browser /p:TargetArchitecture=wasm /p:Configuration=Release ``` ### Running outer loop tests using JavaScript engine To run all tests, including "outer loop" tests (which are typically slower and in some test suites less reliable, but which are more comprehensive): ``` ./dotnet.sh build /t:Test src/libraries/System.AppContext/tests /p:TargetOS=Browser /p:TargetArchitecture=wasm /p:Configuration=Release /p:Outerloop=true ``` ### Running tests using different JavaScript engines It's possible to set a JavaScript engine explicitly by adding `/p:JSEngine` property: ``` ./dotnet.sh build /t:Test src/libraries/System.AppContext/tests /p:TargetOS=Browser /p:TargetArchitecture=wasm /p:Configuration=Release /p:JSEngine=SpiderMonkey ``` At the moment supported values are: - `V8` - `JavaScriptCore` - `SpiderMonkey` By default, `V8` engine is used. ### Running individual test suites using Browser instance The following shows how to run tests for a specific library - CLI ``` XHARNESS_COMMAND=test-browser ./dotnet.sh build /t:Test src/libraries/System.AppContext/tests /p:TargetOS=Browser /p:TargetArchitecture=wasm /p:Configuration=Release ``` - Makefile target `run-browser-tests-<test>` ``` make -C src/mono/wasm/ run-browser-tests-System.AppContext ``` ### Passing arguments to xharness - `$(WasmXHarnessArgsCli)` - xharness command arguments Example: `WasmXHarnessArgsCli="--set-web-server-http-env=DOTNET_TEST_WEBSOCKETHOST"` -> becomes `dotnet xharness wasm test --set-web-server-http-env=DOTNET_TEST_WEBSOCKETHOST` - `$(WasmXHarnessMonoArgs)` - arguments and variables for mono Example: `WasmXHarnessMonoArgs="--runtime-arg=--trace=E --setenv=MONO_LOG_LEVEL=debug"` - `$(WasmTestAppArgs)` - arguments for the test app itself ### Running outer loop tests using Browser instance To run all tests, including "outer loop" tests (which are typically slower and in some test suites less reliable, but which are more comprehensive): - CLI ``` XHARNESS_COMMAND=test-browser ./dotnet.sh build /t:Test src/libraries/System.AppContext/tests /p:TargetOS=Browser /p:TargetArchitecture=wasm /p:Configuration=Release /p:Outerloop=true ``` - Makefile target `run-browser-tests-<test>` ``` MSBUILD_ARGS=/p:OuterLoop=true make -C src/mono/wasm/ run-browser-tests-System.AppContext ``` ### Running tests using different Browsers It's possible to set a Browser explicitly by adding `--browser=` command line argument to `XHARNESS_COMMAND`: - CLI ``` XHARNESS_COMMAND="test-browser --browser=safari" ./dotnet.sh build /t:Test src/libraries/System.AppContext/tests /p:TargetOS=Browser /p:TargetArchitecture=wasm /p:Configuration=Release ``` - Makefile target `run-browser-tests-<test>` ``` XHARNESS_BROWSER=firefox make -C src/mono/wasm/ run-browser-tests-System.AppContext ``` At the moment supported values are: - `chrome` - `safari` - `firefox` By default, `chrome` browser is used. ## AOT library tests - Building library tests with AOT, and (even) with `EnableAggressiveTrimming` takes 3-9mins on CI, and that adds up for all the assemblies, causing a large build time. To circumvent that on CI, we build the test assemblies on the build machine, but skip the WasmApp build part of it, since that includes the expensive AOT step. - Instead, we take the built test assembly+dependencies, and enough related bits to be able to run the `WasmBuildApp` target, with the original inputs. - To recreate a similar build+test run locally, add `/p:BuildAOTTestsOnHelix=true` to the usual command line. - For example, with `./dotnet.sh build /t:Test src/libraries/System.AppContext/tests /p:TargetOS=Browser /p:TargetArchitecture=wasm /p:Configuration=Release` - AOT: add `/p:EnableAggressiveTrimming=true /p:RunAOTCompilation=true /p:BuildAOTTestsOnHelix=true` - Only trimming (helpful to isolate issues caused by trimming): - add `/p:EnableAggressiveTrimming=true /p:BuildAOTTestsOnHelix=true` ## Debugging ### Getting more information - Line numbers: add `/p:DebuggerSupport=true` to the command line, for `Release` builds. It's enabled by default for `Debug` builds. ## Kicking off outer loop tests from GitHub Interface Add the following to the comment of a PR. ``` /azp run runtime-libraries-mono outerloop ``` ### Test App Design TBD ### Obtaining the logs TBD ### Existing Limitations TBD
# Testing Libraries on WebAssembly ## Prerequisites ### Using JavaScript engines In order to be able to run tests, the following JavaScript engines should be installed: - V8 - JavaScriptCore - SpiderMonkey They can be installed as a part of [jsvu](https://github.com/GoogleChromeLabs/jsvu). Please make sure that a JavaScript engine binary is available via command line, e.g. for V8: ```bash $ v8 V8 version 8.5.62 ``` If you use `jsvu`, first add its location to PATH variable e.g. for V8 ```bash PATH=/Users/<your_user>/.jsvu/:$PATH V8 ``` ### Using Browser Instance It's possible to run tests in a browser instance: #### Chrome - An installation of [ChromeDriver - WebDriver for Chrome](https://chromedriver.chromium.org) is required. Make sure to read [Downloads/Version Selection](https://chromedriver.chromium.org/downloads/version-selection) to setup a working installation of ChromeDriver. - Include the [ChromeDriver - WebDriver for Chrome](https://chromedriver.chromium.org) location in your PATH environment. Default is `/Users/<your_user>/.chromedriver` ```bash PATH=/Users/<your_user>/.chromedriver:$PATH ``` #### Gecko / Firefox - Requires gecko driver [Github repository of Mozilla](https://github.com/mozilla/geckodriver/releases) - Include the [Github repository of Mozilla](https://github.com/mozilla/geckodriver/releases) location in your PATH environment. Default is `/Users/<your_user>/.geckodriver` ```bash PATH=/Users/<your_user>/.geckodriver:$PATH ``` ## Building Libs and Tests for WebAssembly Now we're ready to build everything for WebAssembly (for more details, please read [this document](../../building/libraries/webassembly-instructions.md#building-everything)): ```bash ./build.sh -os Browser -c Release ``` and even run tests one by one for each library: ``` ./build.sh libs.tests -test -os Browser -c Release ``` ### Running individual test suites using JavaScript engine The following shows how to run tests for a specific library ``` ./dotnet.sh build /t:Test src/libraries/System.AppContext/tests /p:TargetOS=Browser /p:TargetArchitecture=wasm /p:Configuration=Release ``` ### Running outer loop tests using JavaScript engine To run all tests, including "outer loop" tests (which are typically slower and in some test suites less reliable, but which are more comprehensive): ``` ./dotnet.sh build /t:Test src/libraries/System.AppContext/tests /p:TargetOS=Browser /p:TargetArchitecture=wasm /p:Configuration=Release /p:Outerloop=true ``` ### Running tests using different JavaScript engines It's possible to set a JavaScript engine explicitly by adding `/p:JSEngine` property: ``` ./dotnet.sh build /t:Test src/libraries/System.AppContext/tests /p:TargetOS=Browser /p:TargetArchitecture=wasm /p:Configuration=Release /p:JSEngine=SpiderMonkey ``` At the moment supported values are: - `V8` - `JavaScriptCore` - `SpiderMonkey` By default, `V8` engine is used. ### Running individual test suites using Browser instance The following shows how to run tests for a specific library - CLI ``` XHARNESS_COMMAND=test-browser ./dotnet.sh build /t:Test src/libraries/System.AppContext/tests /p:TargetOS=Browser /p:TargetArchitecture=wasm /p:Configuration=Release ``` - Makefile target `run-browser-tests-<test>` ``` make -C src/mono/wasm/ run-browser-tests-System.AppContext ``` ### Passing arguments to xharness - `$(WasmXHarnessArgsCli)` - xharness command arguments Example: `WasmXHarnessArgsCli="--set-web-server-http-env=DOTNET_TEST_WEBSOCKETHOST"` -> becomes `dotnet xharness wasm test --set-web-server-http-env=DOTNET_TEST_WEBSOCKETHOST` - `$(WasmXHarnessMonoArgs)` - arguments and variables for mono Example: `WasmXHarnessMonoArgs="--runtime-arg=--trace=E --setenv=MONO_LOG_LEVEL=debug"` - `$(WasmTestAppArgs)` - arguments for the test app itself ### Running outer loop tests using Browser instance To run all tests, including "outer loop" tests (which are typically slower and in some test suites less reliable, but which are more comprehensive): - CLI ``` XHARNESS_COMMAND=test-browser ./dotnet.sh build /t:Test src/libraries/System.AppContext/tests /p:TargetOS=Browser /p:TargetArchitecture=wasm /p:Configuration=Release /p:Outerloop=true ``` - Makefile target `run-browser-tests-<test>` ``` MSBUILD_ARGS=/p:OuterLoop=true make -C src/mono/wasm/ run-browser-tests-System.AppContext ``` ### Running tests using different Browsers It's possible to set a Browser explicitly by adding `--browser=` command line argument to `XHARNESS_COMMAND`: - CLI ``` XHARNESS_COMMAND="test-browser --browser=safari" ./dotnet.sh build /t:Test src/libraries/System.AppContext/tests /p:TargetOS=Browser /p:TargetArchitecture=wasm /p:Configuration=Release ``` - Makefile target `run-browser-tests-<test>` ``` XHARNESS_BROWSER=firefox make -C src/mono/wasm/ run-browser-tests-System.AppContext ``` At the moment supported values are: - `chrome` - `safari` - `firefox` By default, `chrome` browser is used. ## AOT library tests - Building library tests with AOT, and (even) with `EnableAggressiveTrimming` takes 3-9mins on CI, and that adds up for all the assemblies, causing a large build time. To circumvent that on CI, we build the test assemblies on the build machine, but skip the WasmApp build part of it, since that includes the expensive AOT step. - Instead, we take the built test assembly+dependencies, and enough related bits to be able to run the `WasmBuildApp` target, with the original inputs. - To recreate a similar build+test run locally, add `/p:BuildAOTTestsOnHelix=true` to the usual command line. - For example, with `./dotnet.sh build /t:Test src/libraries/System.AppContext/tests /p:TargetOS=Browser /p:TargetArchitecture=wasm /p:Configuration=Release` - AOT: add `/p:EnableAggressiveTrimming=true /p:RunAOTCompilation=true /p:BuildAOTTestsOnHelix=true` - Only trimming (helpful to isolate issues caused by trimming): - add `/p:EnableAggressiveTrimming=true /p:BuildAOTTestsOnHelix=true` ## Debugging ### Getting more information - Line numbers: add `/p:DebuggerSupport=true` to the command line, for `Release` builds. It's enabled by default for `Debug` builds. ## Kicking off outer loop tests from GitHub Interface Add the following to the comment of a PR. ``` /azp run runtime-libraries-mono outerloop ``` ### Test App Design TBD ### Obtaining the logs TBD ### Existing Limitations TBD
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./src/mono/sample/wasm/browser-nextjs/README.md
## Sample for React component in the NextJs app. Shows how to create react component and re-use runtime instance, when the component is instantiated multiple times. ``` dotnet build /p:TargetOS=Browser /p:TargetArchitecture=wasm /p:Configuration=Debug /t:RunSample ```
## Sample for React component in the NextJs app. Shows how to create react component and re-use runtime instance, when the component is instantiated multiple times. ``` dotnet build /p:TargetOS=Browser /p:TargetArchitecture=wasm /p:Configuration=Debug /t:RunSample ```
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./docs/workflow/building/libraries/README.md
# Build ## Quick Start Here is one example of a daily workflow for a developer working mainly on the libraries, in this case using Windows: ```cmd :: From root: git clean -xdf git pull upstream main & git push origin main :: Build Debug libraries on top of Release runtime: build.cmd clr+libs -rc Release :: Performing the above is usually only needed once in a day, or when you pull down significant new changes. :: If you use Visual Studio, you might open System.Text.RegularExpressions.sln here. build.cmd -vs System.Text.RegularExpressions :: Switch to working on a given library (RegularExpressions in this case) cd src\libraries\System.Text.RegularExpressions :: Change to test directory cd tests :: Then inner loop build / test :: (If using Visual Studio, you might run tests inside it instead) pushd ..\src & dotnet build & popd & dotnet build /t:test ``` The instructions for Linux and macOS are essentially the same: ```bash # From root: git clean -xdf git pull upstream main & git push origin main # Build Debug libraries on top of Release runtime: ./build.sh clr+libs -rc Release # Performing the above is usually only needed once in a day, or when you pull down significant new changes. # Switch to working on a given library (RegularExpressions in this case) cd src/libraries/System.Text.RegularExpressions # Change to test directory cd tests # Then inner loop build / test: pushd ../src & dotnet build & popd & dotnet build /t:test ``` The steps above may be all you need to know to make a change. Want more details about what this means? Read on. ## Building everything This document explains how to work on libraries. In order to work on library projects or run library tests it is necessary to have built the runtime to give the libraries something to run on. You should normally build CoreCLR runtime in release configuration and libraries in debug configuration. If you haven't already done so, please read [this document](../../README.md#Configurations) to understand configurations. These example commands will build a release CoreCLR (and CoreLib), debug libraries, and debug installer: For Linux: ```bash ./build.sh -rc Release ``` For Windows: ```cmd ./build.cmd -rc Release ``` Detailed information about building and testing runtimes and the libraries is in the documents linked below. ### More details if you need them The above commands will give you libraries in "debug" configuration (the default) using a runtime in "release" configuration which hopefully you built earlier. The libraries build has two logical components, the native build which produces the "shims" (which provide a stable interface between the OS and managed code) and the managed build which produces the MSIL code and NuGet packages that make up Libraries. The commands above will build both. The build settings (BuildTargetFramework, TargetOS, Configuration, Architecture) are generally defaulted based on where you are building (i.e. which OS or which architecture) but we have a few shortcuts for the individual properties that can be passed to the build scripts: - `-framework|-f` identifies the target framework for the build. Possible values include `net7.0` (currently the latest .NET version) or `net48` (the latest .NETFramework version). (msbuild property `BuildTargetFramework`) - `-os` identifies the OS for the build. It defaults to the OS you are running on but possible values include `windows`, `Unix`, `Linux`, or `OSX`. (msbuild property `TargetOS`) - `-configuration|-c Debug|Release` controls the optimization level the compilers use for the build. It defaults to `Debug`. (msbuild property `Configuration`) - `-arch` identifies the architecture for the build. It defaults to `x64` but possible values include `x64`, `x86`, `arm`, or `arm64`. (msbuild property `TargetArchitecture`) For more details on the build settings see [project-guidelines](../../../coding-guidelines/project-guidelines.md#build-pivots). If you invoke the `build` script without any actions, the default action chain `-restore -build` is executed. By default the `build` script only builds the product libraries and none of the tests. If you want to include tests, you want to add the subset `libs.tests`. If you want to run the tests you want to use the `-test` action instead of the `-build`, e.g. `build.cmd/sh libs.tests -test`. To specify just the libraries, use `libs`. **Examples** - Building in release mode for platform x64 (restore and build are implicit here as no actions are passed in) ```bash ./build.sh libs -c Release -arch x64 ``` - Building the src assemblies and build and run tests (running all tests takes a considerable amount of time!) ```bash ./build.sh libs -test ``` - Clean the entire artifacts folder ```bash ./build.sh -clean ``` For Windows, replace `./build.sh` with `build.cmd`. ### How to building native components only The libraries build contains some native code. This includes shims over libc, openssl, gssapi, and zlib. The build system uses CMake to generate Makefiles using clang. The build also uses git for generating some version information. **Examples** - Building in debug mode for platform x64 ```bash ./src/native/libs/build-native.sh debug x64 ``` - The following example shows how you would do an arm cross-compile build ```bash ./src/native/libs/build-native.sh debug arm cross verbose ``` For Windows, replace `build-native.sh` with `build-native.cmd`. ## Building individual libraries Similar to building the entire repo with `build.cmd` or `build.sh` in the root you can build projects based on our directory structure by passing in the directory. We also support shortcuts for libraries so you can omit the root `src` folder from the path. When given a directory we will build all projects that we find recursively under that directory. Some examples may help here. **Examples** - Build all projects for a given library (e.g.: System.Collections) including running the tests ```bash ./build.sh -projects src/libraries/*/System.Collections.sln ``` - Build just the tests for a library project ```bash ./build.sh -projects src/libraries/System.Collections/tests/*.csproj ``` - All the options listed above like framework and configuration are also supported (note they must be after the directory) ```bash ./build.sh -projects src/libraries/*/System.Collections.sln -f net472 -c Release ``` As `dotnet build` works on both Unix and Windows and calls the restore target implicitly, we will use it throughout this guide. Under the `src` directory is a set of directories, each of which represents a particular assembly in Libraries. See Library Project Guidelines section under [project-guidelines](../../../coding-guidelines/project-guidelines.md) for more details about the structure. For example the `src\libraries\System.Diagnostics.DiagnosticSource` directory holds the source code for the System.Diagnostics.DiagnosticSource.dll assembly. You can build the DLL for System.Diagnostics.DiagnosticSource.dll by going to the `src\libraries\System.Diagnostics.DiagnosticsSource\src` directory and typing `dotnet build`. The DLL ends up in `artifacts\bin\AnyOS.AnyCPU.Debug\System.Diagnostics.DiagnosticSource` as well as `artifacts\bin\runtime\[$(BuildTargetFramework)-$(TargetOS)-$(Configuration)-$(TargetArchitecture)]`. You can build the tests for System.Diagnostics.DiagnosticSource.dll by going to `src\libraries\System.Diagnostics.DiagnosticSource\tests` and typing `dotnet build`. Some libraries might also have a `ref` and/or a `pkg` directory and you can build them in a similar way by typing `dotnet build` in that directory. For libraries that have multiple target frameworks the target frameworks will be listed in the `<TargetFrameworks>` property group. When building the csproj for a BuildTargetFramework the most compatible target framework in the list will be chosen and set for the build. For more information about `TargetFrameworks` see [project-guidelines](../../../coding-guidelines/project-guidelines.md). **Examples** - Build project for Linux ``` dotnet build System.Net.NetworkInformation.csproj /p:TargetOS=Linux ``` - Build Release version of library ``` dotnet build -c Release System.Net.NetworkInformation.csproj ``` ### Iterating on System.Private.CoreLib changes When changing `System.Private.CoreLib` after a full build, in order to test against those changes, you will need an updated `System.Private.CoreLib` in the testhost. In order to achieve that, you can build the `libs.pretest` subset which does testhost setup including copying over `System.Private.CoreLib`. After doing a build of the runtime: ``` build.cmd clr -rc Release ``` You can iterate on `System.Private.CoreLib` by running: ``` build.cmd clr.corelib+clr.nativecorelib+libs.pretest -rc Release ``` When this `System.Private.CoreLib` will be built in Release mode, then it will be crossgen'd and we will update the testhost to the latest version of corelib. You can use the same workflow for mono runtime by using `mono.corelib+libs.pretest` subsets. ### Building for Mono By default the libraries will attempt to build using the CoreCLR version of `System.Private.CoreLib.dll`. In order to build against the Mono version you need to use the `/p:RuntimeFlavor=Mono` argument. ``` .\build.cmd libs /p:RuntimeFlavor=Mono ``` ### Building all for other OSes By default, building from the root will only build the libraries for the OS you are running on. One can build for another OS by specifying `./build.sh libs -os [value]`. Note that you cannot generally build native components for another OS but you can for managed components so if you need to do that you can do it at the individual project level or build all via passing `/p:BuildNative=false`. ### Building in Release or Debug By default, building from the root or within a project will build the libraries in Debug mode. One can build in Debug or Release mode from the root by doing `./build.sh libs -c Release` or `./build.sh libs`. ### Building other Architectures One can build 32- or 64-bit binaries or for any architecture by specifying in the root `./build.sh libs -arch [value]` or in a project `/p:TargetArchitecture=[value]` after the `dotnet build` command. ## Working in Visual Studio If you are working on Windows, and use Visual Studio, you can open individual libraries projects into it. From within Visual Studio you can then build, debug, and run tests. ## Running tests For more details about running tests inside Visual Studio, [go here](../../testing/visualstudio.md). For more about running tests, read the [running tests](../../testing/libraries/testing.md) document. ## Build packages To build a library's package, simply invoke `dotnet pack` on the src project after you successfully built the .NETCoreApp vertical from root: ``` build libs dotnet pack src\libraries\System.Text.Json\src\ ``` Same as for `dotnet build` or `dotnet publish`, you can specify the desired configuration via the `-c` flag: ``` dotnet pack src\libraries\System.Text.Json\src\ -c Release ```
# Build ## Quick Start Here is one example of a daily workflow for a developer working mainly on the libraries, in this case using Windows: ```cmd :: From root: git clean -xdf git pull upstream main & git push origin main :: Build Debug libraries on top of Release runtime: build.cmd clr+libs -rc Release :: Performing the above is usually only needed once in a day, or when you pull down significant new changes. :: If you use Visual Studio, you might open System.Text.RegularExpressions.sln here. build.cmd -vs System.Text.RegularExpressions :: Switch to working on a given library (RegularExpressions in this case) cd src\libraries\System.Text.RegularExpressions :: Change to test directory cd tests :: Then inner loop build / test :: (If using Visual Studio, you might run tests inside it instead) pushd ..\src & dotnet build & popd & dotnet build /t:test ``` The instructions for Linux and macOS are essentially the same: ```bash # From root: git clean -xdf git pull upstream main & git push origin main # Build Debug libraries on top of Release runtime: ./build.sh clr+libs -rc Release # Performing the above is usually only needed once in a day, or when you pull down significant new changes. # Switch to working on a given library (RegularExpressions in this case) cd src/libraries/System.Text.RegularExpressions # Change to test directory cd tests # Then inner loop build / test: pushd ../src & dotnet build & popd & dotnet build /t:test ``` The steps above may be all you need to know to make a change. Want more details about what this means? Read on. ## Building everything This document explains how to work on libraries. In order to work on library projects or run library tests it is necessary to have built the runtime to give the libraries something to run on. You should normally build CoreCLR runtime in release configuration and libraries in debug configuration. If you haven't already done so, please read [this document](../../README.md#Configurations) to understand configurations. These example commands will build a release CoreCLR (and CoreLib), debug libraries, and debug installer: For Linux: ```bash ./build.sh -rc Release ``` For Windows: ```cmd ./build.cmd -rc Release ``` Detailed information about building and testing runtimes and the libraries is in the documents linked below. ### More details if you need them The above commands will give you libraries in "debug" configuration (the default) using a runtime in "release" configuration which hopefully you built earlier. The libraries build has two logical components, the native build which produces the "shims" (which provide a stable interface between the OS and managed code) and the managed build which produces the MSIL code and NuGet packages that make up Libraries. The commands above will build both. The build settings (BuildTargetFramework, TargetOS, Configuration, Architecture) are generally defaulted based on where you are building (i.e. which OS or which architecture) but we have a few shortcuts for the individual properties that can be passed to the build scripts: - `-framework|-f` identifies the target framework for the build. Possible values include `net7.0` (currently the latest .NET version) or `net48` (the latest .NETFramework version). (msbuild property `BuildTargetFramework`) - `-os` identifies the OS for the build. It defaults to the OS you are running on but possible values include `windows`, `Unix`, `Linux`, or `OSX`. (msbuild property `TargetOS`) - `-configuration|-c Debug|Release` controls the optimization level the compilers use for the build. It defaults to `Debug`. (msbuild property `Configuration`) - `-arch` identifies the architecture for the build. It defaults to `x64` but possible values include `x64`, `x86`, `arm`, or `arm64`. (msbuild property `TargetArchitecture`) For more details on the build settings see [project-guidelines](../../../coding-guidelines/project-guidelines.md#build-pivots). If you invoke the `build` script without any actions, the default action chain `-restore -build` is executed. By default the `build` script only builds the product libraries and none of the tests. If you want to include tests, you want to add the subset `libs.tests`. If you want to run the tests you want to use the `-test` action instead of the `-build`, e.g. `build.cmd/sh libs.tests -test`. To specify just the libraries, use `libs`. **Examples** - Building in release mode for platform x64 (restore and build are implicit here as no actions are passed in) ```bash ./build.sh libs -c Release -arch x64 ``` - Building the src assemblies and build and run tests (running all tests takes a considerable amount of time!) ```bash ./build.sh libs -test ``` - Clean the entire artifacts folder ```bash ./build.sh -clean ``` For Windows, replace `./build.sh` with `build.cmd`. ### How to building native components only The libraries build contains some native code. This includes shims over libc, openssl, gssapi, and zlib. The build system uses CMake to generate Makefiles using clang. The build also uses git for generating some version information. **Examples** - Building in debug mode for platform x64 ```bash ./src/native/libs/build-native.sh debug x64 ``` - The following example shows how you would do an arm cross-compile build ```bash ./src/native/libs/build-native.sh debug arm cross verbose ``` For Windows, replace `build-native.sh` with `build-native.cmd`. ## Building individual libraries Similar to building the entire repo with `build.cmd` or `build.sh` in the root you can build projects based on our directory structure by passing in the directory. We also support shortcuts for libraries so you can omit the root `src` folder from the path. When given a directory we will build all projects that we find recursively under that directory. Some examples may help here. **Examples** - Build all projects for a given library (e.g.: System.Collections) including running the tests ```bash ./build.sh -projects src/libraries/*/System.Collections.sln ``` - Build just the tests for a library project ```bash ./build.sh -projects src/libraries/System.Collections/tests/*.csproj ``` - All the options listed above like framework and configuration are also supported (note they must be after the directory) ```bash ./build.sh -projects src/libraries/*/System.Collections.sln -f net472 -c Release ``` As `dotnet build` works on both Unix and Windows and calls the restore target implicitly, we will use it throughout this guide. Under the `src` directory is a set of directories, each of which represents a particular assembly in Libraries. See Library Project Guidelines section under [project-guidelines](../../../coding-guidelines/project-guidelines.md) for more details about the structure. For example the `src\libraries\System.Diagnostics.DiagnosticSource` directory holds the source code for the System.Diagnostics.DiagnosticSource.dll assembly. You can build the DLL for System.Diagnostics.DiagnosticSource.dll by going to the `src\libraries\System.Diagnostics.DiagnosticsSource\src` directory and typing `dotnet build`. The DLL ends up in `artifacts\bin\AnyOS.AnyCPU.Debug\System.Diagnostics.DiagnosticSource` as well as `artifacts\bin\runtime\[$(BuildTargetFramework)-$(TargetOS)-$(Configuration)-$(TargetArchitecture)]`. You can build the tests for System.Diagnostics.DiagnosticSource.dll by going to `src\libraries\System.Diagnostics.DiagnosticSource\tests` and typing `dotnet build`. Some libraries might also have a `ref` and/or a `pkg` directory and you can build them in a similar way by typing `dotnet build` in that directory. For libraries that have multiple target frameworks the target frameworks will be listed in the `<TargetFrameworks>` property group. When building the csproj for a BuildTargetFramework the most compatible target framework in the list will be chosen and set for the build. For more information about `TargetFrameworks` see [project-guidelines](../../../coding-guidelines/project-guidelines.md). **Examples** - Build project for Linux ``` dotnet build System.Net.NetworkInformation.csproj /p:TargetOS=Linux ``` - Build Release version of library ``` dotnet build -c Release System.Net.NetworkInformation.csproj ``` ### Iterating on System.Private.CoreLib changes When changing `System.Private.CoreLib` after a full build, in order to test against those changes, you will need an updated `System.Private.CoreLib` in the testhost. In order to achieve that, you can build the `libs.pretest` subset which does testhost setup including copying over `System.Private.CoreLib`. After doing a build of the runtime: ``` build.cmd clr -rc Release ``` You can iterate on `System.Private.CoreLib` by running: ``` build.cmd clr.corelib+clr.nativecorelib+libs.pretest -rc Release ``` When this `System.Private.CoreLib` will be built in Release mode, then it will be crossgen'd and we will update the testhost to the latest version of corelib. You can use the same workflow for mono runtime by using `mono.corelib+libs.pretest` subsets. ### Building for Mono By default the libraries will attempt to build using the CoreCLR version of `System.Private.CoreLib.dll`. In order to build against the Mono version you need to use the `/p:RuntimeFlavor=Mono` argument. ``` .\build.cmd libs /p:RuntimeFlavor=Mono ``` ### Building all for other OSes By default, building from the root will only build the libraries for the OS you are running on. One can build for another OS by specifying `./build.sh libs -os [value]`. Note that you cannot generally build native components for another OS but you can for managed components so if you need to do that you can do it at the individual project level or build all via passing `/p:BuildNative=false`. ### Building in Release or Debug By default, building from the root or within a project will build the libraries in Debug mode. One can build in Debug or Release mode from the root by doing `./build.sh libs -c Release` or `./build.sh libs`. ### Building other Architectures One can build 32- or 64-bit binaries or for any architecture by specifying in the root `./build.sh libs -arch [value]` or in a project `/p:TargetArchitecture=[value]` after the `dotnet build` command. ## Working in Visual Studio If you are working on Windows, and use Visual Studio, you can open individual libraries projects into it. From within Visual Studio you can then build, debug, and run tests. ## Running tests For more details about running tests inside Visual Studio, [go here](../../testing/visualstudio.md). For more about running tests, read the [running tests](../../testing/libraries/testing.md) document. ## Build packages To build a library's package, simply invoke `dotnet pack` on the src project after you successfully built the .NETCoreApp vertical from root: ``` build libs dotnet pack src\libraries\System.Text.Json\src\ ``` Same as for `dotnet build` or `dotnet publish`, you can specify the desired configuration via the `-c` flag: ``` dotnet pack src\libraries\System.Text.Json\src\ -c Release ```
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./src/libraries/Microsoft.VisualBasic.Core/README.md
# Microsoft.VisualBasic.Core library We are not accepting feature contributions to Microsoft.VisualBasic.Core. The library is effectively archived. The library and supporting language features are mature and no longer evolving, and the risk of code change likely exceeds the benefit. We will consider changes that address significant bugs or regressions, or changes that are necessary to continue shipping the binaries. Other changes will be rejected.
# Microsoft.VisualBasic.Core library We are not accepting feature contributions to Microsoft.VisualBasic.Core. The library is effectively archived. The library and supporting language features are mature and no longer evolving, and the risk of code change likely exceeds the benefit. We will consider changes that address significant bugs or regressions, or changes that are necessary to continue shipping the binaries. Other changes will be rejected.
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./docs/design/coreclr/jit/first-class-structs.md
First Class Structs =================== Objectives ---------- Primary Objectives - Avoid forcing structs to the stack if they are only assigned to/from, or passed to/returned from a call or intrinsic - Including SIMD types as well as other pointer-sized-or-less struct types - Enable enregistration of structs that have no field accesses - Optimize struct types as effectively as primitive types - Value numbering, especially for types that are used in intrinsics (e.g. SIMD) - Register allocation Secondary Objectives * No “swizzling” or lying about struct types – they are always struct types - No confusing use of GT_LCL_FLD to refer to the entire struct as a different type Struct Types in RyuJIT ---------------------- In RyuJIT, the concept of a type is very simplistic (which helps support the high throughput of the JIT). Rather than a symbol table to hold the properties of a type, RyuJIT primarily deals with types as simple values of an enumeration. When more detailed information is required about the structure of a type, we query the type system, across the JIT/EE interface. This is generally done only during the importer (translation from MSIL to the RyuJIT IR), during struct promotion analysis, and when determining how to pass or return struct values. As a result, struct types are generally treated as an opaque type (TYP_STRUCT) of unknown size and structure. In order to treat fully-enregisterable struct types as "first class" types in RyuJIT, we created new types to represent vectors, in order for the JIT to support operations on them: * `TYP_SIMD8`, `TYP_SIMD12`, `TYP_SIMD16` and (where supported by the target) `TYP_SIMD32`. - The are used to implement both the platform-independent (`Vector2`, `Vector3`, `Vector4` and `Vector<T>`) types as well as the types used for platform-specific hardware intrinsics ('`Vector64<T>`, `Vector128<T>` and `Vector256<T>`). - These types are useful not only for enregistration purposes, but also because we can have values of these types that are produced by computational `SIMD` and `HWIntrinsic` nodes. We had previously proposed to create additional types to be used where struct types of the given size are passed and/or returned in registers: * `TYP_STRUCT1`, `TYP_STRUCT2`, `TYP_STRUCT4`, `TYP_STRUCT8` (on 64-bit systems) However, further investigation and implementation has suggested that this may not be necessary. Rather, storage decisions should largely be deferred to the backend (`Lowering` and register allocation). The following transformations need to be supported effectively for all struct types: - Optimizations such as CSE and assertion propagation - Depends on being able to discern when instances of these types are equivalent. - Passing and returning these values to and from methods - Avoiding unnecessarily copying these values between registers or on the stack. - Allowing promoted structs to be passed or returned without forcing them to become ineligible for register allocation. Correct and effective code generation for structs requires that the JIT have ready access to information about the shape and size of the struct. This information is obtained from the VM over the JIT/EE interface. This includes: - Struct size - Number and type of fields, especially if there are GC references With the changes from @mikedn in [#21705 Pull struct type info out of GenTreeObj](https://github.com/dotnet/coreclr/pull/21705) this information is captured in a `ClassLayout` object which captures the size and GC layout of a struct type. The associated `ClassLayoutTable` on the `Compiler` object which supports lookup. This enables associating this this shape information with all struct-typed nodes, without impacting node size. Current Representation of Struct Values --------------------------------------- ### Importer-Only Struct Values These struct-typed nodes are created by the importer, but transformed in morph, and so are not encountered by most phases of the JIT: * `GT_INDEX`: This is transformed to a `GT_IND` * Currently, the IND is marked with `GTF_IND_ARR_INDEX` and the node pointer of the `GT_IND` acts as a key into the array info map. * Proposed: This should be transformed into a `GT_OBJ` when it represents a struct type, and then the class handle would no longer need to be obtained from the array info map. * `GT_FIELD`: This is transformed to a `GT_LCL_VAR` by the `Compiler::fgMarkAddressExposedLocals()` phase if it's a promoted struct field, or to a `GT_LCL_FLD` or GT_IND` by `fgMorphField()`. * Proposed: A non-promoted struct typed field should be transformed into a `GT_OBJ`, so that consistently all struct nodes, even r-values, have `ClassLayout`. * `GT_MKREFANY`: This produces a "known" struct type, which is currently obtained by calling `impGetRefAnyClass()` which is a call over the JIT/EE interface. This node is always eliminated, and its source address used to create a copy. If it is on the rhs of an assignment, it will be eliminated during the importer. If it is a call argument it will be eliminated during morph. * The presence of any of these in a method disables struct promotion. See `case CEE_MKREFANY` in the `Importer`, where it is asserted that these are rare, and therefore not worth the trouble to handle. ### Struct “objects” as lvalues * The lhs of a struct assignment is a block or local node: * `GT_OBJ` nodes represent the “shape” info via a struct handle, along with the GC info (location and type of GC references within the struct). * These are currently used only to represent struct values that contain GC references (although see below). * `GT_BLK` nodes represent struct types with no GC references, or opaque blocks of fixed size. * These have no struct handle, resulting in some pessimization or even incorrect code when the appropriate struct handle can't be determined. * These never represent lvalues of structs that contain GC references. * Proposed: When a class handle is available, these would remain as `GT_OBJ` since after [#21705](https://github.com/dotnet/coreclr/pull/21705) they are no longer large nodes. * `GT_STORE_OBJ` and `GT_STORE_BLK` have the same structure as `GT_OBJ` and `GT_BLK`, respectively * `Data()` is op2 * `GT_DYN_BLK` and `GT_STORE_DYN_BLK` (GenTreeDynBlk extends GenTreeBlk) * Additional child `gtDynamicSize` * Note that these aren't really struct types; they represent dynamically sized blocks of arbitrary data. * For `GT_LCL_FLD` nodes, we don't retain shape information, except indirectly via the `FieldSeqNode`. * For `GT_LCL_VAR` nodes, the`ClassLayout` is obtained from the `LclVarDsc`. ### Struct “objects” as rvalues Structs only appear as rvalues in the following contexts: * On the RHS of an assignment * The lhs provides the “shape” for an assignment. Note, however, that the LHS isn't always available to optimizations, which has led to pessimization, e.g. [#23739 Block the hoisting of TYP_STRUCT rvalues in loop hoisting](https://github.com/dotnet/coreclr/pull/23739) * As a call argument * In this context, it must be one of: `GT_OBJ`, `GT_LCL_VAR`, `GT_LCL_FLD` or `GT_FIELD_LIST`. * As an operand to a hardware or SIMD intrinsic (for `TYP_SIMD*` only) * In this case the struct handle is generally assumed to be unneeded, as it is captured (directly or indirectly) in the `GT_SIMD` or `GT_HWINTRINSIC` node. * It would simplify both the recognition and optimization of these nodes if they carried a `ClassLayout`. After morph, a struct-typed value on the RHS of assignment is one of: * `GT_IND`: in this case the LHS is expected to provide the struct handle * Proposed: `GT_IND` would no longer be used for struct types * `GT_CALL` * `GT_LCL_VAR` * `GT_LCL_FLD` * Note: With `compDoOldStructRetyping()`, a GT_LCL_FLD` with a primitive type of the same size as the struct is used to represent a reference to the full struct when it is passed in a register. This forces the struct to live on the stack, and makes it more difficult to optimize these struct values, which is why this mechanism is being phased out. * `GT_SIMD` * `GT_OBJ` nodes can also be used as rvalues when they are call arguments * Proposed: `GT_OBJ` nodes can be used in any context where a struct rvalue or lvalue might occur, except after morph when the struct is independently promoted. Ideally, we should be able to obtain a valid `CLASS_HANDLE` for any struct-valued node. Once that is the case, we should be able to transform most or all uses of `gtGetStructHandleIfPresent()` to `gtGetStructHandle()`. Struct IR Phase Transitions --------------------------- There are three main phases in the JIT that make changes to the representation of struct nodes and lclVars: * Importer * Vector types are normalized to the appropriate `TYP_SIMD*` type. Other struct nodes have `TYP_STRUCT`. * Struct-valued nodes that are created with a class handle will retain either a `ClassLayout` pointer or an index into the `ClassLayout` cache. * Struct promotion * Fields of promoted structs become separate lclVars (scalar promoted) with primitive types. * This is currently an all-or-nothing choice (either all fields are promoted, or none), and is constrained in the number of fields that can be promoted. * Proposed: Support additional cases. See [Improve Struct Promotion](#Improve-Struct-Promotion) * Global morph * Some promoted structs are forced to stack, and become “dependently promoted”. * Proposed: promoted structs are forced to stack ONLY if address taken. * This includes removing unnecessary pessimizations of block copies. See [Improve and Simplify Block Assignment Morphing](#Block-Assignments). * Call args * If the struct has been promoted it is morphed to `GT_FIELD_LIST` * Currently this is done only if it is passed on the stack, or if it is passed in registers that exactly match the types of its fields. * Proposed: This transformation would be made even if it is passed in non-matching registers. The necessary transformations for correct code generation would be made in `Lowering`. * With `compDoOldStructRetyping()`, if it is passed in a single register, it is morphed into a `GT_LCL_FLD` node of the appropriate primitive type. * This may involve making a copy, if the size cannot be safely loaded. * Proposed: This would remain a `GT_OBJ` and would be appropriately transformed in `Lowering`, e.g. using `GT_BITCAST`. * If is passed in multiple registers * A `GT_FIELD_LIST` is constructed that represents the load of each register using `GT_LCL_FLD`. * Proposed: This would also remain `GT_OBJ` (or `GT_FIELD_LIST` if promoted) and would be transformed to a `GT_FIELD_LIST` with the appropriate load, assemble or extraction code as needed. * Otherwise, if it is passed by reference or on the stack, it is kept as `GT_OBJ` or `GT_LCL_VAR` * Currently, if passed by reference, the value is either forced to the stack or copied. * Proposed: This transformation would also be deferred until `Lowering`, at which time the liveness information can provide `lastUse` information to allow a dead struct to be passed directly by reference instead of being copied. Related: [\#4524 Add optimization to avoid copying a struct if passed by reference and there are no writes to and no reads after passed to a callee](https://github.com/dotnet/runtime/issues/4524) It is proposed to add the following transformations in `Lowering`: * Transform struct values that are passed to or returned from calls by creating one or more of the following: * `GT_FIELD_LIST` of `GT_LCL_FLD` when the struct is non-enregisterable and is passed in multiple registers. * `GT_BITCAST` when a promoted floating point field of a single-field struct is passed in an integer register. * A sequence of nodes to assemble or extract promoted fields * Introduce copies as needed for non-last-use struct values that are passed by reference. Work Items ---------- This is a rough breakdown of the work into somewhat separable tasks. These work items are organized in priority order. Each work item should be able to proceed independently, though the aggregate effect of multiple work items may be greater than the individual work items alone. ### <a name="defer-abi-specific-transformations-to-lowering"></a>Defer ABI-specific transformations to Lowering This includes all copies and IR transformations that are only required to pass or return the arguments as required by the ABI. Other transformations would remain: * Copies required to satisfy ordering constraints. * Transformations (e.g. `GT_FIELD_LIST` creation) required to expose references to promoted struct fields. This would be done in multiple phases: * First, move transformations other than those listed above to `Lowering`, but retain any "pessimizations" (e.g. marking nodes as `GTF_DONT_CSE` or marking lclVars as `lvDoNotEnregister`) * Add support for passing vector types in the SSE registers for x64/ux * This will also involve modifying code in the VM. [#23675 Arm64 Vector ABI](https://github.com/dotnet/coreclr/pull/23675) added similar support for Arm64. The https://github.com/CarolEidt/runtime/tree/X64Vector16ABI branch was intended to add this support for 16 byte vectors for .NET 5, but didn't make it into that release. The https://github.com/CarolEidt/runtime/tree/FixX64VectorABI branch was an earlier attempt to support both 16 and 32 byte vectors, but was abandoned in favor of doing just 16 byte vectors first. * Next, eliminate the "pessimizations". * For cases where `GT_LCL_FLD` is currently used to "retype" the struct, change it to use *either* `GT_LCL_FLD`, if it is already address-taken, or to use a `GT_BITCAST` otherwise. * This work item should address issue [#4323 RyuJIT properly optimizes structs with a single field if the field type is int but not if it is double](https://github.com/dotnet/runtime/issues/4323) (test is `JIT\Regressions\JitBlue\GitHub_1161`), [#7200 Struct getters are generating unneccessary instructions on x64 when struct contains floats](https://github.com/dotnet/runtime/issues/7200) and [#11413 Inefficient codegen for casts between same size types](https://github.com/dotnet/runtime/issues/11413). * Remove the pessimization in `LocalAddressVisitor::PostOrderVisit()` for the `GT_RETURN` case. * Add support in prolog to extract fields, and remove the restriction of not promoting incoming reg structs whose fields do not match the register count or types. Note that SIMD types are already reassembled in the prolog. * Add support in `Lowering` and `CodeGen` to handle call arguments where the fields of a promoted struct must be extracted or reassembled in order to pass the struct in non-matching registers. This probably includes producing the appropriate IR, in order to correctly represent the register requirements. * Add support for extracting the fields for the returned struct value of a call (in registers or on stack), producing the appropriate IR. * Add support for assembling non-matching fields into registers for call args and returns. * For arm64, add support for loading non-promoted or non-local structs with ldp * The removal of each of these pessimizations should result in improved code generation in cases where previously disabled optimizations are now enabled. * Other ABI-related issues: * [#7048](https://github.com/dotnet/runtime/issues/7048) - code generation for x86 promoted struct args. Related issues: * [#4308 JIT: Excessive copies when inlining](https://github.com/dotnet/runtime/issues/4308) (maybe). Test is `JIT\Regressions\JitBlue\GitHub_1133`. * [#12219 Inlined struct copies via params, returns and assignment not elided](https://github.com/dotnet/runtime/issues/12219) ### Fully Enable Struct Optimizations Most of the existing places in the code where structs are handled conservatively are marked with `TODO-1stClassStructs`. This work item involves investigating these and making the necessary improvements (or determining that they are infeasible and removing the `TODO`). Related: * [#4659 JIT - slow generated code on Release for iterating simple array of struct](https://github.com/dotnet/runtime/issues/4659) * [#11000 Strange codegen with struct forwarding implementation to another struct](https://github.com/dotnet/runtime/issues/11000) (maybe) ### Support Full Enregistration of Struct Types This would be enabled first by [Defer ABI-specific transformations to Lowering](#defer-abi-specific-transformations-to-lowering). Then the register allocator would consider them as candidates for enregistration. * First, fully enregister pointer-sized-or-less structs only if there are no field accesses and they are not marked `lvDoNotEnregister`. * Next, fully enregister structs that are passed or returned in multiple registers and have no field accesses. * Next, when there are field accesses, but the struct is more frequently accessed as a full struct (e.g. assignment or passing as the full struct), `Lowering` would expand the field accesses as needed to extract the field from the register(s). * An initial investigation should be undertaken to determine if this is worthwhile. * Related: [#10045 Accessing a field of a Vector4 causes later codegen to be inefficient if inlined](https://github.com/dotnet/runtime/issues/10045) ### Improve Struct Promotion * Support recursive (nested) struct promotion, especially when struct field itself has a single field: * [#7576 Recursive Promotion of structs containing fields of structs with a single pointer-sized field](https://github.com/dotnet/runtime/issues/7576) * [#7441 RyuJIT: Allow promotions of structs with fields of struct containing a single primitive field](https://github.com/dotnet/runtime/issues/7441) * [#6707 RyuJIT x86: allow long-typed struct fields to be recursively promoted](https://github.com/dotnet/runtime/issues/6707) * Support partial struct promotion when some fields are more frequently accessed. * Aggressively promote pointer-sized fields of structs used as args or returns * Allow struct promotion of locals that are passed or returned in a way that doesn't match the field types. * Investigate whether it would be useful to re-type single-field structs, rather than creating new lclVars. This would complicate type analysis when copied, passed or returned, but would avoid unnecessarily expanding the lclVar data structures. * Allow promotion of 32-byte SIMD on 16-byte alignment [\#12623](https://github.com/dotnet/runtime/issues/12623) * Related: * [#6534 Promote (scalar replace) structs with more than 4 fields](https://github.com/dotnet/runtime/issues/6534) * [#7395 Heuristic meant to promote structs with no field access should consider the impact of passing to/from a call ](https://github.com/dotnet/runtime/issues/7395) * [#9916 RyuJIT generates poor code for a helper method which does return Method(value, value)](https://github.com/dotnet/runtime/issues/9916) * [#8227 JIT: add struct promotion stress mode](https://github.com/dotnet/runtime/issues/8227). ### <a name="Block-Assignments"></a>Improve and Simplify Block and Block Assignment Morphing * `fgMorphOneAsgBlockOp` should probably be eliminated, and its functionality either moved to `Lowering` or simply subsumed by the combination of the addition of fixed-size struct types and the full enablement of struct optimizations. Doing so would also involve improving code generation for block copies. See [\#21711 Improve init/copy block codegen](https://github.com/dotnet/coreclr/pull/21711). * This also includes cleanup of the block morphing methods such that block nodes needn't be visited multiple times, such as `fgMorphBlkToInd` (may be simply unneeded), `fgMorphBlkNode` and `fgMorphBlkOperand`. These methods were introduced to preserve old behavior, but should be simplified. * Somewhat related is the handling of struct-typed array elements. Currently, after the `GT_INDEX` is transformed into a `GT_IND`, that node must be retained as the key into the `ArrayInfoMap`. For structs, this is then wrapped in `OBJ(ADDR(...))`. We should be able to change the IND to OBJ and avoid wrapping, and should also be able to remove the class handle from the array info map and instead used the one provided by the `GT_OBJ`. ### Miscellaneous Cleanup These are all marked with `TODO-1stClassStructs` or `TODO-Cleanup` in the last case: * The handling of `DYN_BLK` is unnecessarily complicated to duplicate previous behavior (i.e. to enable previous refactorings to be zero-diff). These nodes are infrequent so the special handling should just be eliminated (e.g. see `GenTree::GetChild()`). * The checking at the end of `gtNewTempAssign()` should be simplified. * When we create a struct assignment, we use `impAssignStruct()`. This code will, in some cases, create or re-create address or block nodes when not necessary. * For Linux X64, the handling of arguments could be simplified. For a single argument (or for the same struct class), there may be multiple calls to `eeGetSystemVAmd64PassStructInRegisterDescriptor()`, and in some cases (e.g. look for the `TODO-Cleanup` in `fgMakeTmpArgNode()`) there are awkward workarounds to avoid additional calls. It might be useful to cache the struct descriptors so we don't have to call across the JIT/EE interface for the same struct class more than once. It would also potentially be useful to save the descriptor for the current method return type on the `Compiler` object for use when handling `RETURN` nodes. Struct-Related Issues in RyuJIT ------------------------------- The following issues illustrate some of the motivation for improving the handling of value types (structs) in RyuJIT (these issues are also cited above, in the applicable sections): * [\#4308 JIT: Excessive copies when inlining](https://github.com/dotnet/runtime/issues/4308) * The scenario given in this issue involves a struct that is larger than 8 bytes, so it is not impacted by the fixed-size types. However, by enabling value numbering and assertion propagation for struct types (which, in turn is made easier by using normal assignments), the excess copies can be eliminated. * Note that these copies are not generated when passing and returning scalar types, and it may be worth considering (in future) whether we can avoiding adding them in the first place. * This case may now be handled; needs verification * [\#4323 RyuJIT properly optimizes structs with a single field if the field type is int but not if it is double](https://github.com/dotnet/runtime/issues/4323) * This issue arises because we never promote a struct with a single double field, due to the fact that such a struct may be passed or returned in a general purpose register. This issue could be addressed independently, but should "fall out" of improved heuristics for when to promote and enregister structs. * Related: [\#7200](https://github.com/dotnet/runtime/issues/7200) * [\#4524 Add optimization to avoid copying a struct if passed by reference and there are no writes to and no reads after passed to a callee](https://github.com/dotnet/runtime/issues/4524). * This issue is related to #1133, except that in this case the desire is to eliminate unneeded copies locally (i.e. not just due to inlining), in the case where the struct may or may not be passed or returned directly. * Unfortunately, there is not currently a scenario or test case for this issue. * [\#10879 Unix: Unnecessary struct copy while passing struct of size <=16](https://github.com/dotnet/runtime/issues/10879) * [\#9839 [RyuJIT] Eliminate unecessary copies when passing structs](https://github.com/dotnet/runtime/issues/9839) * These require changing both the callsite and the callee to avoid copying the parameter onto the stack. * It may be that these have been addressed by [PR #43870](https://github.com/dotnet/runtime/pull/43870). * [\#11992](https://github.com/dotnet/runtime/issues/11992) * This is a case where we introduce a `GT_LCL_FLD` to retype a value that needs to be passed in a register. It may have been addressed by [PR #37745](https://github.com/dotnet/runtime/pull/37745) ## Other Struct-related Issues * [\#10029](https://github.com/dotnet/runtime/issues/10029) * This suffers from pessimization due to poor handling of conversion (`Unsafe.As`) from `Quaternion` to `Vector4`. It's not immediately clear what's the best way to improve this. * [#6858](https://github.com/dotnet/runtime/issues/6858) * Addressing mode expression optimization for struct fields
First Class Structs =================== Objectives ---------- Primary Objectives - Avoid forcing structs to the stack if they are only assigned to/from, or passed to/returned from a call or intrinsic - Including SIMD types as well as other pointer-sized-or-less struct types - Enable enregistration of structs that have no field accesses - Optimize struct types as effectively as primitive types - Value numbering, especially for types that are used in intrinsics (e.g. SIMD) - Register allocation Secondary Objectives * No “swizzling” or lying about struct types – they are always struct types - No confusing use of GT_LCL_FLD to refer to the entire struct as a different type Struct Types in RyuJIT ---------------------- In RyuJIT, the concept of a type is very simplistic (which helps support the high throughput of the JIT). Rather than a symbol table to hold the properties of a type, RyuJIT primarily deals with types as simple values of an enumeration. When more detailed information is required about the structure of a type, we query the type system, across the JIT/EE interface. This is generally done only during the importer (translation from MSIL to the RyuJIT IR), during struct promotion analysis, and when determining how to pass or return struct values. As a result, struct types are generally treated as an opaque type (TYP_STRUCT) of unknown size and structure. In order to treat fully-enregisterable struct types as "first class" types in RyuJIT, we created new types to represent vectors, in order for the JIT to support operations on them: * `TYP_SIMD8`, `TYP_SIMD12`, `TYP_SIMD16` and (where supported by the target) `TYP_SIMD32`. - The are used to implement both the platform-independent (`Vector2`, `Vector3`, `Vector4` and `Vector<T>`) types as well as the types used for platform-specific hardware intrinsics ('`Vector64<T>`, `Vector128<T>` and `Vector256<T>`). - These types are useful not only for enregistration purposes, but also because we can have values of these types that are produced by computational `SIMD` and `HWIntrinsic` nodes. We had previously proposed to create additional types to be used where struct types of the given size are passed and/or returned in registers: * `TYP_STRUCT1`, `TYP_STRUCT2`, `TYP_STRUCT4`, `TYP_STRUCT8` (on 64-bit systems) However, further investigation and implementation has suggested that this may not be necessary. Rather, storage decisions should largely be deferred to the backend (`Lowering` and register allocation). The following transformations need to be supported effectively for all struct types: - Optimizations such as CSE and assertion propagation - Depends on being able to discern when instances of these types are equivalent. - Passing and returning these values to and from methods - Avoiding unnecessarily copying these values between registers or on the stack. - Allowing promoted structs to be passed or returned without forcing them to become ineligible for register allocation. Correct and effective code generation for structs requires that the JIT have ready access to information about the shape and size of the struct. This information is obtained from the VM over the JIT/EE interface. This includes: - Struct size - Number and type of fields, especially if there are GC references With the changes from @mikedn in [#21705 Pull struct type info out of GenTreeObj](https://github.com/dotnet/coreclr/pull/21705) this information is captured in a `ClassLayout` object which captures the size and GC layout of a struct type. The associated `ClassLayoutTable` on the `Compiler` object which supports lookup. This enables associating this this shape information with all struct-typed nodes, without impacting node size. Current Representation of Struct Values --------------------------------------- ### Importer-Only Struct Values These struct-typed nodes are created by the importer, but transformed in morph, and so are not encountered by most phases of the JIT: * `GT_INDEX`: This is transformed to a `GT_IND` * Currently, the IND is marked with `GTF_IND_ARR_INDEX` and the node pointer of the `GT_IND` acts as a key into the array info map. * Proposed: This should be transformed into a `GT_OBJ` when it represents a struct type, and then the class handle would no longer need to be obtained from the array info map. * `GT_FIELD`: This is transformed to a `GT_LCL_VAR` by the `Compiler::fgMarkAddressExposedLocals()` phase if it's a promoted struct field, or to a `GT_LCL_FLD` or GT_IND` by `fgMorphField()`. * Proposed: A non-promoted struct typed field should be transformed into a `GT_OBJ`, so that consistently all struct nodes, even r-values, have `ClassLayout`. * `GT_MKREFANY`: This produces a "known" struct type, which is currently obtained by calling `impGetRefAnyClass()` which is a call over the JIT/EE interface. This node is always eliminated, and its source address used to create a copy. If it is on the rhs of an assignment, it will be eliminated during the importer. If it is a call argument it will be eliminated during morph. * The presence of any of these in a method disables struct promotion. See `case CEE_MKREFANY` in the `Importer`, where it is asserted that these are rare, and therefore not worth the trouble to handle. ### Struct “objects” as lvalues * The lhs of a struct assignment is a block or local node: * `GT_OBJ` nodes represent the “shape” info via a struct handle, along with the GC info (location and type of GC references within the struct). * These are currently used only to represent struct values that contain GC references (although see below). * `GT_BLK` nodes represent struct types with no GC references, or opaque blocks of fixed size. * These have no struct handle, resulting in some pessimization or even incorrect code when the appropriate struct handle can't be determined. * These never represent lvalues of structs that contain GC references. * Proposed: When a class handle is available, these would remain as `GT_OBJ` since after [#21705](https://github.com/dotnet/coreclr/pull/21705) they are no longer large nodes. * `GT_STORE_OBJ` and `GT_STORE_BLK` have the same structure as `GT_OBJ` and `GT_BLK`, respectively * `Data()` is op2 * `GT_DYN_BLK` and `GT_STORE_DYN_BLK` (GenTreeDynBlk extends GenTreeBlk) * Additional child `gtDynamicSize` * Note that these aren't really struct types; they represent dynamically sized blocks of arbitrary data. * For `GT_LCL_FLD` nodes, we don't retain shape information, except indirectly via the `FieldSeqNode`. * For `GT_LCL_VAR` nodes, the`ClassLayout` is obtained from the `LclVarDsc`. ### Struct “objects” as rvalues Structs only appear as rvalues in the following contexts: * On the RHS of an assignment * The lhs provides the “shape” for an assignment. Note, however, that the LHS isn't always available to optimizations, which has led to pessimization, e.g. [#23739 Block the hoisting of TYP_STRUCT rvalues in loop hoisting](https://github.com/dotnet/coreclr/pull/23739) * As a call argument * In this context, it must be one of: `GT_OBJ`, `GT_LCL_VAR`, `GT_LCL_FLD` or `GT_FIELD_LIST`. * As an operand to a hardware or SIMD intrinsic (for `TYP_SIMD*` only) * In this case the struct handle is generally assumed to be unneeded, as it is captured (directly or indirectly) in the `GT_SIMD` or `GT_HWINTRINSIC` node. * It would simplify both the recognition and optimization of these nodes if they carried a `ClassLayout`. After morph, a struct-typed value on the RHS of assignment is one of: * `GT_IND`: in this case the LHS is expected to provide the struct handle * Proposed: `GT_IND` would no longer be used for struct types * `GT_CALL` * `GT_LCL_VAR` * `GT_LCL_FLD` * Note: With `compDoOldStructRetyping()`, a GT_LCL_FLD` with a primitive type of the same size as the struct is used to represent a reference to the full struct when it is passed in a register. This forces the struct to live on the stack, and makes it more difficult to optimize these struct values, which is why this mechanism is being phased out. * `GT_SIMD` * `GT_OBJ` nodes can also be used as rvalues when they are call arguments * Proposed: `GT_OBJ` nodes can be used in any context where a struct rvalue or lvalue might occur, except after morph when the struct is independently promoted. Ideally, we should be able to obtain a valid `CLASS_HANDLE` for any struct-valued node. Once that is the case, we should be able to transform most or all uses of `gtGetStructHandleIfPresent()` to `gtGetStructHandle()`. Struct IR Phase Transitions --------------------------- There are three main phases in the JIT that make changes to the representation of struct nodes and lclVars: * Importer * Vector types are normalized to the appropriate `TYP_SIMD*` type. Other struct nodes have `TYP_STRUCT`. * Struct-valued nodes that are created with a class handle will retain either a `ClassLayout` pointer or an index into the `ClassLayout` cache. * Struct promotion * Fields of promoted structs become separate lclVars (scalar promoted) with primitive types. * This is currently an all-or-nothing choice (either all fields are promoted, or none), and is constrained in the number of fields that can be promoted. * Proposed: Support additional cases. See [Improve Struct Promotion](#Improve-Struct-Promotion) * Global morph * Some promoted structs are forced to stack, and become “dependently promoted”. * Proposed: promoted structs are forced to stack ONLY if address taken. * This includes removing unnecessary pessimizations of block copies. See [Improve and Simplify Block Assignment Morphing](#Block-Assignments). * Call args * If the struct has been promoted it is morphed to `GT_FIELD_LIST` * Currently this is done only if it is passed on the stack, or if it is passed in registers that exactly match the types of its fields. * Proposed: This transformation would be made even if it is passed in non-matching registers. The necessary transformations for correct code generation would be made in `Lowering`. * With `compDoOldStructRetyping()`, if it is passed in a single register, it is morphed into a `GT_LCL_FLD` node of the appropriate primitive type. * This may involve making a copy, if the size cannot be safely loaded. * Proposed: This would remain a `GT_OBJ` and would be appropriately transformed in `Lowering`, e.g. using `GT_BITCAST`. * If is passed in multiple registers * A `GT_FIELD_LIST` is constructed that represents the load of each register using `GT_LCL_FLD`. * Proposed: This would also remain `GT_OBJ` (or `GT_FIELD_LIST` if promoted) and would be transformed to a `GT_FIELD_LIST` with the appropriate load, assemble or extraction code as needed. * Otherwise, if it is passed by reference or on the stack, it is kept as `GT_OBJ` or `GT_LCL_VAR` * Currently, if passed by reference, the value is either forced to the stack or copied. * Proposed: This transformation would also be deferred until `Lowering`, at which time the liveness information can provide `lastUse` information to allow a dead struct to be passed directly by reference instead of being copied. Related: [\#4524 Add optimization to avoid copying a struct if passed by reference and there are no writes to and no reads after passed to a callee](https://github.com/dotnet/runtime/issues/4524) It is proposed to add the following transformations in `Lowering`: * Transform struct values that are passed to or returned from calls by creating one or more of the following: * `GT_FIELD_LIST` of `GT_LCL_FLD` when the struct is non-enregisterable and is passed in multiple registers. * `GT_BITCAST` when a promoted floating point field of a single-field struct is passed in an integer register. * A sequence of nodes to assemble or extract promoted fields * Introduce copies as needed for non-last-use struct values that are passed by reference. Work Items ---------- This is a rough breakdown of the work into somewhat separable tasks. These work items are organized in priority order. Each work item should be able to proceed independently, though the aggregate effect of multiple work items may be greater than the individual work items alone. ### <a name="defer-abi-specific-transformations-to-lowering"></a>Defer ABI-specific transformations to Lowering This includes all copies and IR transformations that are only required to pass or return the arguments as required by the ABI. Other transformations would remain: * Copies required to satisfy ordering constraints. * Transformations (e.g. `GT_FIELD_LIST` creation) required to expose references to promoted struct fields. This would be done in multiple phases: * First, move transformations other than those listed above to `Lowering`, but retain any "pessimizations" (e.g. marking nodes as `GTF_DONT_CSE` or marking lclVars as `lvDoNotEnregister`) * Add support for passing vector types in the SSE registers for x64/ux * This will also involve modifying code in the VM. [#23675 Arm64 Vector ABI](https://github.com/dotnet/coreclr/pull/23675) added similar support for Arm64. The https://github.com/CarolEidt/runtime/tree/X64Vector16ABI branch was intended to add this support for 16 byte vectors for .NET 5, but didn't make it into that release. The https://github.com/CarolEidt/runtime/tree/FixX64VectorABI branch was an earlier attempt to support both 16 and 32 byte vectors, but was abandoned in favor of doing just 16 byte vectors first. * Next, eliminate the "pessimizations". * For cases where `GT_LCL_FLD` is currently used to "retype" the struct, change it to use *either* `GT_LCL_FLD`, if it is already address-taken, or to use a `GT_BITCAST` otherwise. * This work item should address issue [#4323 RyuJIT properly optimizes structs with a single field if the field type is int but not if it is double](https://github.com/dotnet/runtime/issues/4323) (test is `JIT\Regressions\JitBlue\GitHub_1161`), [#7200 Struct getters are generating unneccessary instructions on x64 when struct contains floats](https://github.com/dotnet/runtime/issues/7200) and [#11413 Inefficient codegen for casts between same size types](https://github.com/dotnet/runtime/issues/11413). * Remove the pessimization in `LocalAddressVisitor::PostOrderVisit()` for the `GT_RETURN` case. * Add support in prolog to extract fields, and remove the restriction of not promoting incoming reg structs whose fields do not match the register count or types. Note that SIMD types are already reassembled in the prolog. * Add support in `Lowering` and `CodeGen` to handle call arguments where the fields of a promoted struct must be extracted or reassembled in order to pass the struct in non-matching registers. This probably includes producing the appropriate IR, in order to correctly represent the register requirements. * Add support for extracting the fields for the returned struct value of a call (in registers or on stack), producing the appropriate IR. * Add support for assembling non-matching fields into registers for call args and returns. * For arm64, add support for loading non-promoted or non-local structs with ldp * The removal of each of these pessimizations should result in improved code generation in cases where previously disabled optimizations are now enabled. * Other ABI-related issues: * [#7048](https://github.com/dotnet/runtime/issues/7048) - code generation for x86 promoted struct args. Related issues: * [#4308 JIT: Excessive copies when inlining](https://github.com/dotnet/runtime/issues/4308) (maybe). Test is `JIT\Regressions\JitBlue\GitHub_1133`. * [#12219 Inlined struct copies via params, returns and assignment not elided](https://github.com/dotnet/runtime/issues/12219) ### Fully Enable Struct Optimizations Most of the existing places in the code where structs are handled conservatively are marked with `TODO-1stClassStructs`. This work item involves investigating these and making the necessary improvements (or determining that they are infeasible and removing the `TODO`). Related: * [#4659 JIT - slow generated code on Release for iterating simple array of struct](https://github.com/dotnet/runtime/issues/4659) * [#11000 Strange codegen with struct forwarding implementation to another struct](https://github.com/dotnet/runtime/issues/11000) (maybe) ### Support Full Enregistration of Struct Types This would be enabled first by [Defer ABI-specific transformations to Lowering](#defer-abi-specific-transformations-to-lowering). Then the register allocator would consider them as candidates for enregistration. * First, fully enregister pointer-sized-or-less structs only if there are no field accesses and they are not marked `lvDoNotEnregister`. * Next, fully enregister structs that are passed or returned in multiple registers and have no field accesses. * Next, when there are field accesses, but the struct is more frequently accessed as a full struct (e.g. assignment or passing as the full struct), `Lowering` would expand the field accesses as needed to extract the field from the register(s). * An initial investigation should be undertaken to determine if this is worthwhile. * Related: [#10045 Accessing a field of a Vector4 causes later codegen to be inefficient if inlined](https://github.com/dotnet/runtime/issues/10045) ### Improve Struct Promotion * Support recursive (nested) struct promotion, especially when struct field itself has a single field: * [#7576 Recursive Promotion of structs containing fields of structs with a single pointer-sized field](https://github.com/dotnet/runtime/issues/7576) * [#7441 RyuJIT: Allow promotions of structs with fields of struct containing a single primitive field](https://github.com/dotnet/runtime/issues/7441) * [#6707 RyuJIT x86: allow long-typed struct fields to be recursively promoted](https://github.com/dotnet/runtime/issues/6707) * Support partial struct promotion when some fields are more frequently accessed. * Aggressively promote pointer-sized fields of structs used as args or returns * Allow struct promotion of locals that are passed or returned in a way that doesn't match the field types. * Investigate whether it would be useful to re-type single-field structs, rather than creating new lclVars. This would complicate type analysis when copied, passed or returned, but would avoid unnecessarily expanding the lclVar data structures. * Allow promotion of 32-byte SIMD on 16-byte alignment [\#12623](https://github.com/dotnet/runtime/issues/12623) * Related: * [#6534 Promote (scalar replace) structs with more than 4 fields](https://github.com/dotnet/runtime/issues/6534) * [#7395 Heuristic meant to promote structs with no field access should consider the impact of passing to/from a call ](https://github.com/dotnet/runtime/issues/7395) * [#9916 RyuJIT generates poor code for a helper method which does return Method(value, value)](https://github.com/dotnet/runtime/issues/9916) * [#8227 JIT: add struct promotion stress mode](https://github.com/dotnet/runtime/issues/8227). ### <a name="Block-Assignments"></a>Improve and Simplify Block and Block Assignment Morphing * `fgMorphOneAsgBlockOp` should probably be eliminated, and its functionality either moved to `Lowering` or simply subsumed by the combination of the addition of fixed-size struct types and the full enablement of struct optimizations. Doing so would also involve improving code generation for block copies. See [\#21711 Improve init/copy block codegen](https://github.com/dotnet/coreclr/pull/21711). * This also includes cleanup of the block morphing methods such that block nodes needn't be visited multiple times, such as `fgMorphBlkToInd` (may be simply unneeded), `fgMorphBlkNode` and `fgMorphBlkOperand`. These methods were introduced to preserve old behavior, but should be simplified. * Somewhat related is the handling of struct-typed array elements. Currently, after the `GT_INDEX` is transformed into a `GT_IND`, that node must be retained as the key into the `ArrayInfoMap`. For structs, this is then wrapped in `OBJ(ADDR(...))`. We should be able to change the IND to OBJ and avoid wrapping, and should also be able to remove the class handle from the array info map and instead used the one provided by the `GT_OBJ`. ### Miscellaneous Cleanup These are all marked with `TODO-1stClassStructs` or `TODO-Cleanup` in the last case: * The handling of `DYN_BLK` is unnecessarily complicated to duplicate previous behavior (i.e. to enable previous refactorings to be zero-diff). These nodes are infrequent so the special handling should just be eliminated (e.g. see `GenTree::GetChild()`). * The checking at the end of `gtNewTempAssign()` should be simplified. * When we create a struct assignment, we use `impAssignStruct()`. This code will, in some cases, create or re-create address or block nodes when not necessary. * For Linux X64, the handling of arguments could be simplified. For a single argument (or for the same struct class), there may be multiple calls to `eeGetSystemVAmd64PassStructInRegisterDescriptor()`, and in some cases (e.g. look for the `TODO-Cleanup` in `fgMakeTmpArgNode()`) there are awkward workarounds to avoid additional calls. It might be useful to cache the struct descriptors so we don't have to call across the JIT/EE interface for the same struct class more than once. It would also potentially be useful to save the descriptor for the current method return type on the `Compiler` object for use when handling `RETURN` nodes. Struct-Related Issues in RyuJIT ------------------------------- The following issues illustrate some of the motivation for improving the handling of value types (structs) in RyuJIT (these issues are also cited above, in the applicable sections): * [\#4308 JIT: Excessive copies when inlining](https://github.com/dotnet/runtime/issues/4308) * The scenario given in this issue involves a struct that is larger than 8 bytes, so it is not impacted by the fixed-size types. However, by enabling value numbering and assertion propagation for struct types (which, in turn is made easier by using normal assignments), the excess copies can be eliminated. * Note that these copies are not generated when passing and returning scalar types, and it may be worth considering (in future) whether we can avoiding adding them in the first place. * This case may now be handled; needs verification * [\#4323 RyuJIT properly optimizes structs with a single field if the field type is int but not if it is double](https://github.com/dotnet/runtime/issues/4323) * This issue arises because we never promote a struct with a single double field, due to the fact that such a struct may be passed or returned in a general purpose register. This issue could be addressed independently, but should "fall out" of improved heuristics for when to promote and enregister structs. * Related: [\#7200](https://github.com/dotnet/runtime/issues/7200) * [\#4524 Add optimization to avoid copying a struct if passed by reference and there are no writes to and no reads after passed to a callee](https://github.com/dotnet/runtime/issues/4524). * This issue is related to #1133, except that in this case the desire is to eliminate unneeded copies locally (i.e. not just due to inlining), in the case where the struct may or may not be passed or returned directly. * Unfortunately, there is not currently a scenario or test case for this issue. * [\#10879 Unix: Unnecessary struct copy while passing struct of size <=16](https://github.com/dotnet/runtime/issues/10879) * [\#9839 [RyuJIT] Eliminate unecessary copies when passing structs](https://github.com/dotnet/runtime/issues/9839) * These require changing both the callsite and the callee to avoid copying the parameter onto the stack. * It may be that these have been addressed by [PR #43870](https://github.com/dotnet/runtime/pull/43870). * [\#11992](https://github.com/dotnet/runtime/issues/11992) * This is a case where we introduce a `GT_LCL_FLD` to retype a value that needs to be passed in a register. It may have been addressed by [PR #37745](https://github.com/dotnet/runtime/pull/37745) ## Other Struct-related Issues * [\#10029](https://github.com/dotnet/runtime/issues/10029) * This suffers from pessimization due to poor handling of conversion (`Unsafe.As`) from `Quaternion` to `Vector4`. It's not immediately clear what's the best way to improve this. * [#6858](https://github.com/dotnet/runtime/issues/6858) * Addressing mode expression optimization for struct fields
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./docs/design/coreclr/jit/JitOptimizerPlanningGuide.md
JIT Optimizer Planning Guide ============================ The goal of this document is to capture some thinking about the process used to prioritize and validate optimizer investments. The overriding goal of such investments is to help ensure that the dotnet platform satisfies developers' performance needs. Benchmarking ------------ There are a number of public benchmarks which evaluate different platforms' relative performance, so naturally dotnet's scores on such benchmarks give some indication of how well it satisfies developers' performance needs. The JIT team has used some of these benchmarks, particularly [TechEmpower](https://www.techempower.com/benchmarks/) and [Benchmarks Game](http://benchmarksgame.alioth.debian.org/), for scouting out optimization opportunities and prioritizing optimization improvements. While it is important to track scores on such benchmarks to validate performance changes in the dotnet platform as a whole, when it comes to planning and prioritizing JIT optimization improvements specifically, they aren't sufficient, due to a few well-known issues: - For macro-benchmarks, such as TechEmpower, compiler optimization is often not the dominant factor in performance. The effects of individual optimizer changes are most often in the sub-percent range, well below the noise level of the measurements, which will usually be at least 3% or so even for the most well-behaved macro-benchmarks. - Source-level changes can be made much more rapidly than compiler optimization changes. This means that for anything we're trying to track where the whole team is effecting changes in source, runtime, etc., any particular code sequence we may target with optimization improvements may well be targeted with source changes in the interim, nullifying the measured benefit of the optimization change when it is eventually merged. Source/library/runtime changes are in play for TechEmpower and Benchmarks Game both. Compiler micro-benchmarks (like those in our [test tree](https://github.com/dotnet/runtime/tree/main/src/tests/JIT/Performance/CodeQuality)) don't share these issues, and adding them as optimizations are implemented is critical for validation and regression prevention; however, micro-benchmarks often aren't as representative of real-world code, and therefore not as reflective of developers' performance needs, so aren't well suited for scouting out and prioritizing opportunities. Benefits of JIT Optimization ---------------------------- While source changes can more rapidly and dramatically effect changes to targeted hot code sequences in macro-benchmarks, compiler changes have the advantage that they apply broadly to all compiled code. One of the best reasons to invest in compiler optimization improvements is to capitalize on this. A few specific benefits: - Optimizer changes can effect "peanut-butter" improvements; by making an improvement which is small in any particular instance to a code sequence that is repeated thousands of times across a codebase, they can produce substantial cumulative wins. These should accrue toward the standard metrics (benchmark scores and code size), but identifying the most profitable "peanut-butter" opportunities is difficult. Improving our methodology for identifying such opportunities would be helpful; some ideas are below. - Optimizer changes can unblock coding patterns that performance-sensitive developers want to employ but consider prohibitively expensive. They may have inelegant works-around in their code, such as gotos for loop-exiting returns to work around poor block layout, manually scalarized structs to work around poor struct promotion, manually unrolled loops to work around lack of loop unrolling, limited use of lambdas to work around inefficient access to heap-allocated closures, etc. The more the optimizer can improve such situations, the better, as it both increases developer productivity and increases the usefulness of abstractions provided by the language and libraries. Finding a measurable metric to track this type of improvement poses a challenge, but would be a big help toward prioritizing and validating optimization improvements; again, some ideas are below. Brainstorm ---------- Listed here are several ideas for undertakings we might pursue to improve our ability to identify opportunities and validate/track improvements that mesh with the benefits discussed above. Thinking here is in the early stages, but the hope is that with some thought/discussion some of these will surface as worth investing in. - Is there telemetry we can implement/analyze to identify "peanut-butter" opportunities, or target "coding pattern"s? Probably easier to use this to evaluate/prioritize patterns we're considering targeting than to identify the patterns in the first place. - Can we construct some sort of "peanut-butter profiler"? The idea would roughly be to aggregate samples/counters under particular input constructs rather than aggregate them under callstack. Might it be interesting to group by MSIL opcode, or opcode pair, or opcode triplet... ? - It might behoove us to build up some SPMI traces that could be data-mined for any of these experiments. - We should make it easy to view machine code emitted by the jit, and to collect profiles and correlate them with that machine code. This could benefit any developers doing performance analysis of their own code. The JIT team has discussed this, options include building something on top of the profiler APIs, enabling COMPlus_JitDisasm in release builds, and shipping with or making easily available an alt jit that supports JitDisasm. - Hardware companies maintain optimization/performance guides for their ISAs. Should we maintain one for MSIL and/or C# (and/or F#)? If we hosted such a thing somewhere publicly votable, we could track which anti-patterns people find most frustrating to avoid, and subsequent removal of them. Does such a guide already exist somewhere, that we could use as a starting point? Should we collate GitHub issues or Stack Overflow issues to create such a thing? - Maybe we should expand our labels on GitHub so that there are sub-areas within "optimization"? It could help prioritize by letting us compare the relative sizes of those buckets. - Can we more effectively leverage the legacy JIT codebases for comparative analysis? We've compared micro-benchmark performance against Jit64 and manually compared disassembly of hot code, what else can we do? One concrete idea: run over some large corpus of code (SPMI?), and do a path-length comparison e.g. by looking at each sequence of k MSIL instructions (for some small k), and for each combination of k opcodes collect statistics on the size of generated machine code (maybe using debug line number info to do the correlation?), then look for common sequences which are much longer with RyuJIT. - Maybe hook RyuJIT up to some sort of superoptimizer to identify opportunities? - Microsoft Research has done some experimenting that involved converting RyuJIT IR to LLVM IR; perhaps we could use this to identify common expressions that could be much better optimized. - What's a practical way to establish a metric of "unblocked coding patterns"? - How developers give feedback about patterns/performance could use some thought; the GitHub issue list is open, but does it need to be publicized somehow? We perhaps should have some regular process where we pull issues over from other places where people report/discuss dotnet performance issues, like [Stack Overflow](https://stackoverflow.com/questions/tagged/performance+.net).
JIT Optimizer Planning Guide ============================ The goal of this document is to capture some thinking about the process used to prioritize and validate optimizer investments. The overriding goal of such investments is to help ensure that the dotnet platform satisfies developers' performance needs. Benchmarking ------------ There are a number of public benchmarks which evaluate different platforms' relative performance, so naturally dotnet's scores on such benchmarks give some indication of how well it satisfies developers' performance needs. The JIT team has used some of these benchmarks, particularly [TechEmpower](https://www.techempower.com/benchmarks/) and [Benchmarks Game](http://benchmarksgame.alioth.debian.org/), for scouting out optimization opportunities and prioritizing optimization improvements. While it is important to track scores on such benchmarks to validate performance changes in the dotnet platform as a whole, when it comes to planning and prioritizing JIT optimization improvements specifically, they aren't sufficient, due to a few well-known issues: - For macro-benchmarks, such as TechEmpower, compiler optimization is often not the dominant factor in performance. The effects of individual optimizer changes are most often in the sub-percent range, well below the noise level of the measurements, which will usually be at least 3% or so even for the most well-behaved macro-benchmarks. - Source-level changes can be made much more rapidly than compiler optimization changes. This means that for anything we're trying to track where the whole team is effecting changes in source, runtime, etc., any particular code sequence we may target with optimization improvements may well be targeted with source changes in the interim, nullifying the measured benefit of the optimization change when it is eventually merged. Source/library/runtime changes are in play for TechEmpower and Benchmarks Game both. Compiler micro-benchmarks (like those in our [test tree](https://github.com/dotnet/runtime/tree/main/src/tests/JIT/Performance/CodeQuality)) don't share these issues, and adding them as optimizations are implemented is critical for validation and regression prevention; however, micro-benchmarks often aren't as representative of real-world code, and therefore not as reflective of developers' performance needs, so aren't well suited for scouting out and prioritizing opportunities. Benefits of JIT Optimization ---------------------------- While source changes can more rapidly and dramatically effect changes to targeted hot code sequences in macro-benchmarks, compiler changes have the advantage that they apply broadly to all compiled code. One of the best reasons to invest in compiler optimization improvements is to capitalize on this. A few specific benefits: - Optimizer changes can effect "peanut-butter" improvements; by making an improvement which is small in any particular instance to a code sequence that is repeated thousands of times across a codebase, they can produce substantial cumulative wins. These should accrue toward the standard metrics (benchmark scores and code size), but identifying the most profitable "peanut-butter" opportunities is difficult. Improving our methodology for identifying such opportunities would be helpful; some ideas are below. - Optimizer changes can unblock coding patterns that performance-sensitive developers want to employ but consider prohibitively expensive. They may have inelegant works-around in their code, such as gotos for loop-exiting returns to work around poor block layout, manually scalarized structs to work around poor struct promotion, manually unrolled loops to work around lack of loop unrolling, limited use of lambdas to work around inefficient access to heap-allocated closures, etc. The more the optimizer can improve such situations, the better, as it both increases developer productivity and increases the usefulness of abstractions provided by the language and libraries. Finding a measurable metric to track this type of improvement poses a challenge, but would be a big help toward prioritizing and validating optimization improvements; again, some ideas are below. Brainstorm ---------- Listed here are several ideas for undertakings we might pursue to improve our ability to identify opportunities and validate/track improvements that mesh with the benefits discussed above. Thinking here is in the early stages, but the hope is that with some thought/discussion some of these will surface as worth investing in. - Is there telemetry we can implement/analyze to identify "peanut-butter" opportunities, or target "coding pattern"s? Probably easier to use this to evaluate/prioritize patterns we're considering targeting than to identify the patterns in the first place. - Can we construct some sort of "peanut-butter profiler"? The idea would roughly be to aggregate samples/counters under particular input constructs rather than aggregate them under callstack. Might it be interesting to group by MSIL opcode, or opcode pair, or opcode triplet... ? - It might behoove us to build up some SPMI traces that could be data-mined for any of these experiments. - We should make it easy to view machine code emitted by the jit, and to collect profiles and correlate them with that machine code. This could benefit any developers doing performance analysis of their own code. The JIT team has discussed this, options include building something on top of the profiler APIs, enabling COMPlus_JitDisasm in release builds, and shipping with or making easily available an alt jit that supports JitDisasm. - Hardware companies maintain optimization/performance guides for their ISAs. Should we maintain one for MSIL and/or C# (and/or F#)? If we hosted such a thing somewhere publicly votable, we could track which anti-patterns people find most frustrating to avoid, and subsequent removal of them. Does such a guide already exist somewhere, that we could use as a starting point? Should we collate GitHub issues or Stack Overflow issues to create such a thing? - Maybe we should expand our labels on GitHub so that there are sub-areas within "optimization"? It could help prioritize by letting us compare the relative sizes of those buckets. - Can we more effectively leverage the legacy JIT codebases for comparative analysis? We've compared micro-benchmark performance against Jit64 and manually compared disassembly of hot code, what else can we do? One concrete idea: run over some large corpus of code (SPMI?), and do a path-length comparison e.g. by looking at each sequence of k MSIL instructions (for some small k), and for each combination of k opcodes collect statistics on the size of generated machine code (maybe using debug line number info to do the correlation?), then look for common sequences which are much longer with RyuJIT. - Maybe hook RyuJIT up to some sort of superoptimizer to identify opportunities? - Microsoft Research has done some experimenting that involved converting RyuJIT IR to LLVM IR; perhaps we could use this to identify common expressions that could be much better optimized. - What's a practical way to establish a metric of "unblocked coding patterns"? - How developers give feedback about patterns/performance could use some thought; the GitHub issue list is open, but does it need to be publicized somehow? We perhaps should have some regular process where we pull issues over from other places where people report/discuss dotnet performance issues, like [Stack Overflow](https://stackoverflow.com/questions/tagged/performance+.net).
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./docs/coding-guidelines/breaking-changes.md
# Breaking Changes We take compatibility in .NET Framework and .NET Core extremely seriously. We use the [breaking change process](../project/breaking-change-process.md) to manage and consider potential breaking changes. Although .NET Core can be deployed app local, we are engineering it such that portable libraries can target it and still run on .NET Framework as well. This means that the behavior of .NET Framework can constrain the implementation of any overlapping APIs in .NET Core. Below is a summary of some documentation we have internally about what kinds of things constitute breaking changes, how we categorize them, and how we decide what we're willing to take. Note that these rules only apply to APIs that have shipped in a previous RTM release. New APIs still under development can be modified but we are still cautious not to disrupt the ecosystem unnecessarily when prerelease APIs change. To help triage breaking changes, we classify them in to four buckets: 1. Public Contract 2. Reasonable Grey Area 3. Unlikely Grey Area 4. Clearly Non-Public ## Bucket 1: Public Contract *Clear [violation of public contract][breaking-change].* Examples: * Renaming or removing of a public type, member, or parameter * Changing the value of a public constant or enum member * Sealing a type that wasn't sealed * Making a virtual member abstract * Adding an interface to the set of base types of an interface * Removing a type or interface from the set of base types * Changing the return type of a member * ...or any other [incompatible change][breaking-change] to the shape of an API [breaking-change]: breaking-change-rules.md#source-and-binary-compatibility-changes ## Bucket 2: Reasonable Grey Area *[Change of behavior][behavioral-changes] that customers would have reasonably depended on.* Examples: * Throwing a new/different exception type in an existing common scenario * An exception is no longer thrown * A different behavior is observed after the change for an input * decreasing the range of accepted values within a given parameter * A new instance field is added to a type (impacts serialization) * Change in timing/order of events (even when not specified in docs) * Change in parsing of input and throwing new errors (even if parsing behavior is not specified in the docs) These require judgment: how predictable, obvious, consistent was the behavior? [behavioral-changes]: breaking-change-rules.md#behavioral-changes ## Bucket 3: Unlikely Grey Area *Change of behavior that customers could have depended on, but probably wouldn't.* Examples: * Correcting behavior in a subtle corner case As with changes in bucket 2, these require judgment: what is reasonable and what's not? ## Bucket 4: Clearly Non-Public *Changes to surface area or behavior that is clearly internal or non-breaking in theory, but breaks an app.* Examples: * Changes to internal API that break private reflection It is impossible to evolve a code base without making such changes, so we don't require up-front approval for these, but we will sometimes have to go back and revisit such change if there's too much pain inflicted on the ecosystem through a popular app or library. This bucket is painful for the machine-wide .NET Framework, but we do have much more latitude here in .NET Core. ## What This Means for Contributors * All bucket 1, 2, and 3 breaking changes require talking to the repo owners first: - We generally **don't accept** change proposals that are in bucket #1. - We **might accept** change proposals that are in #2 and #3 after a risk-benefit analysis. See below for more details. - We **usually accept** changes that are in bucket #4 * If you're not sure which bucket applies to a given change, contact us. ### Risk-Benefit Analysis For buckets #2 and #3 we apply a risk-benefit analysis. It doesn't matter if the old behavior is "wrong", we still need to think through the implications. This can result in one of the following outcomes: * **Accepted with compat switch**. Depending on the estimated customer impact, we may decide to add a compat switch that allows consumers to bring back the old behavior if necessary. * **Accepted**. In some minor cases, we may decide to accept the change if the benefit is large and the risk is super low or if the risk is moderate and a compat switch isn't viable. * **Rejected**. If the risk is too high and/or the improvement too minor, we may decide not to accept the change proposal at all. We can help identify alternatives such as introducing a new API and obsoleting the old one.
# Breaking Changes We take compatibility in .NET Framework and .NET Core extremely seriously. We use the [breaking change process](../project/breaking-change-process.md) to manage and consider potential breaking changes. Although .NET Core can be deployed app local, we are engineering it such that portable libraries can target it and still run on .NET Framework as well. This means that the behavior of .NET Framework can constrain the implementation of any overlapping APIs in .NET Core. Below is a summary of some documentation we have internally about what kinds of things constitute breaking changes, how we categorize them, and how we decide what we're willing to take. Note that these rules only apply to APIs that have shipped in a previous RTM release. New APIs still under development can be modified but we are still cautious not to disrupt the ecosystem unnecessarily when prerelease APIs change. To help triage breaking changes, we classify them in to four buckets: 1. Public Contract 2. Reasonable Grey Area 3. Unlikely Grey Area 4. Clearly Non-Public ## Bucket 1: Public Contract *Clear [violation of public contract][breaking-change].* Examples: * Renaming or removing of a public type, member, or parameter * Changing the value of a public constant or enum member * Sealing a type that wasn't sealed * Making a virtual member abstract * Adding an interface to the set of base types of an interface * Removing a type or interface from the set of base types * Changing the return type of a member * ...or any other [incompatible change][breaking-change] to the shape of an API [breaking-change]: breaking-change-rules.md#source-and-binary-compatibility-changes ## Bucket 2: Reasonable Grey Area *[Change of behavior][behavioral-changes] that customers would have reasonably depended on.* Examples: * Throwing a new/different exception type in an existing common scenario * An exception is no longer thrown * A different behavior is observed after the change for an input * decreasing the range of accepted values within a given parameter * A new instance field is added to a type (impacts serialization) * Change in timing/order of events (even when not specified in docs) * Change in parsing of input and throwing new errors (even if parsing behavior is not specified in the docs) These require judgment: how predictable, obvious, consistent was the behavior? [behavioral-changes]: breaking-change-rules.md#behavioral-changes ## Bucket 3: Unlikely Grey Area *Change of behavior that customers could have depended on, but probably wouldn't.* Examples: * Correcting behavior in a subtle corner case As with changes in bucket 2, these require judgment: what is reasonable and what's not? ## Bucket 4: Clearly Non-Public *Changes to surface area or behavior that is clearly internal or non-breaking in theory, but breaks an app.* Examples: * Changes to internal API that break private reflection It is impossible to evolve a code base without making such changes, so we don't require up-front approval for these, but we will sometimes have to go back and revisit such change if there's too much pain inflicted on the ecosystem through a popular app or library. This bucket is painful for the machine-wide .NET Framework, but we do have much more latitude here in .NET Core. ## What This Means for Contributors * All bucket 1, 2, and 3 breaking changes require talking to the repo owners first: - We generally **don't accept** change proposals that are in bucket #1. - We **might accept** change proposals that are in #2 and #3 after a risk-benefit analysis. See below for more details. - We **usually accept** changes that are in bucket #4 * If you're not sure which bucket applies to a given change, contact us. ### Risk-Benefit Analysis For buckets #2 and #3 we apply a risk-benefit analysis. It doesn't matter if the old behavior is "wrong", we still need to think through the implications. This can result in one of the following outcomes: * **Accepted with compat switch**. Depending on the estimated customer impact, we may decide to add a compat switch that allows consumers to bring back the old behavior if necessary. * **Accepted**. In some minor cases, we may decide to accept the change if the benefit is large and the risk is super low or if the risk is moderate and a compat switch isn't viable. * **Rejected**. If the risk is too high and/or the improvement too minor, we may decide not to accept the change proposal at all. We can help identify alternatives such as introducing a new API and obsoleting the old one.
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./docs/project/profiling-api-status.md
# Status of CoreCLR Profiler APIs Below is a table of the version of CoreCLR that profiler support and testing was completed. Profiling may work prior to these versions, but there may be bugs and missing features. | | Windows | Linux | OSX | | ----- | ------- | ----- | --- | | x64 | 2.1 | 2.1 | 3.1 | | x86 | 2.1 | N/A | N/A | | arm32 | 3.1 | 3.1 | N/A | | arm64 | 3.1 | 3.1 | TBA | ## Known issues ### DoStackSnapshot The implementation of this API was making some questionable assumptions about Windows OS API behavior in order to walk callstacks asynchronously. When operating in this async mode we aren't yet confident we can produce reasonable implementations for other platforms. Our understanding is that most users of this API are attempting to do sample based profiling. If so we think it may be easier to offer a runtime provided event stream of sample callstacks to accomplish the same scenario without needing the API, but we also haven't heard any demand for it. Feedback welcome! ### Any issues we missed? Please let us know and we will get it addressed. Thanks!
# Status of CoreCLR Profiler APIs Below is a table of the version of CoreCLR that profiler support and testing was completed. Profiling may work prior to these versions, but there may be bugs and missing features. | | Windows | Linux | OSX | | ----- | ------- | ----- | --- | | x64 | 2.1 | 2.1 | 3.1 | | x86 | 2.1 | N/A | N/A | | arm32 | 3.1 | 3.1 | N/A | | arm64 | 3.1 | 3.1 | TBA | ## Known issues ### DoStackSnapshot The implementation of this API was making some questionable assumptions about Windows OS API behavior in order to walk callstacks asynchronously. When operating in this async mode we aren't yet confident we can produce reasonable implementations for other platforms. Our understanding is that most users of this API are attempting to do sample based profiling. If so we think it may be easier to offer a runtime provided event stream of sample callstacks to accomplish the same scenario without needing the API, but we also haven't heard any demand for it. Feedback welcome! ### Any issues we missed? Please let us know and we will get it addressed. Thanks!
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./docs/workflow/testing/mono/testing.md
# Running test suites using Mono Before running tests, [build Mono](../../building/mono/README.md) using the desired configuration. ## Runtime Tests ### Desktop Mono: To build the runtime tests for Mono JIT or interpreter: 1. Build test host (corerun) - From the `$(REPO_ROOT)`: ``` ./build.sh clr.hosts -c <release|debug> ``` 2. Build the tests (in `$(REPO_ROOT)/src/tests`) ``` cd src/tests ./build.sh mono <release|debug> ``` To build an individual test, test directory, or a whole subdirectory tree, use the `-test:`, `-dir:` or `-tree:` options (without the src/tests prefix) For example: `./build.sh mono release -test:JIT/opt/InstructionCombining/DivToMul.csproj` Run individual test: ``` bash ./artifacts/tests/coreclr/OSX.x64.Release/JIT/opt/InstructionCombining/DivToMul/DivToMul.sh -coreroot=`pwd`/artifacts/tests/coreclr/OSX.x64.Release/Tests/Core_Root ``` Run all built tests: ``` ./run.sh <Debug|Release> ``` To debug a single test with `lldb`: 1. Run the shell script for the test case manually with the `-debug` option: ``` bash ./artifacts/tests/coreclr/OSX.x64.Release/JIT/opt/InstructionCombining/DivToMul/DivToMul.sh -coreroot=`pwd`/artifacts/tests/coreclr/OSX.x64.Release/Tests/Core_Root -debug=/usr/bin/lldb ``` 2. In LLDB add the debug symbols for mono: `add-dsym <CORE_ROOT>/libcoreclr.dylib.dwarf` 3. Run/debug the test ### WebAssembly: Build the runtime tests for WebAssembly ``` $(REPO_ROOT)/src/tests/build.sh -mono os Browser wasm <Release/Debug> ``` The last few lines of the build log should contain something like this: ``` -------------------------------------------------- Example run.sh command src/tests/run.sh --coreOverlayDir=<repo_root>artifacts/tests/coreclr/Browser.wasm.Release/Tests/Core_Root --testNativeBinDir=<repo_root>/artifacts/obj/coreclr/Browser.wasm.Release/tests --testRootDir=<repo_root>/artifacts/tests/coreclr/Browser.wasm.Release --copyNativeTestBin Release -------------------------------------------------- ``` To run all tests, execute that command, adding `wasm` to the end. ### Android: Build the runtime tests for Android x64/ARM64 ``` $(REPO_ROOT)/src/tests/build.sh -mono os Android <x64/arm64> <Release/Debug> ``` Run one test wrapper from repo root ``` export CORE_ROOT=<path_to_folder_Core_Root> ./dotnet.sh <path_to_xunit.console.dll> <path_to_*.XUnitWrapper.dll> ``` ### Additional Documents For more details about internals of the runtime tests, please refer to the [CoreCLR testing documents](../coreclr) ## Libraries tests ### Desktop Mono Build and run library tests against Mono JIT or interpreter ``` $(REPO_ROOT)/dotnet.sh build /t:Test /p:RuntimeFlavor=mono /p:Configuration=<Release/Debug> $(REPO_ROOT)/src/libraries/<library>/tests ``` Alternatively, you could execute the following command from `$(REPO_ROOT)/src/mono` ``` make run-tests-corefx-<library> ``` For example, the following command is for running System.Runtime tests: ``` make run-tests-corefx-System.Runtime ``` ### Mobile targets and WebAssembly Build and run library tests against WebAssembly, Android or iOS. See instructions located in [Library testing document folder](../libraries/) ## Running the functional tests There are the [functional tests](https://github.com/dotnet/runtime/tree/main/src/tests/FunctionalTests/) which aim to test some specific features/configurations/modes on Android, iOS-like platforms (iOS/tvOS + simulators, MacCatalyst), and WebAssembly. A functional test can be run the same way as any library test suite, e.g.: ``` ./dotnet.sh build /t:Test -c Release /p:TargetOS=Android /p:TargetArchitecture=x64 src/tests/FunctionalTests/Android/Device_Emulator/PInvoke/Android.Device_Emulator.PInvoke.Test.csproj ``` Currently the functional tests are expected to return `42` as a success code so please be careful when adding a new one. For more details, see instructions located in [Library testing document folder](../libraries/). # Running the Mono samples There are a few convenient samples located in `$(REPO_ROOT)/src/mono/sample`, which could help you test your program easily with different flavors of Mono or do a sanity check on the build. The samples are set up to work with a specific configuration; please refer to the relevant Makefile for specifics. If you would like to work with a different configuration, you can edit the Makefile. ## Desktop Mono To run the desktop Mono sample, cd to `HelloWorld` and execute: ``` make run ``` Note that the default configuration of this sample is LLVM JIT. ## WebAssembly To run the WebAssembly sample, cd to `wasm`. There are two sub-folders `browser` and `console`. One is set up to run the progam in browser, the other is set up to run the program in console. Enter the desirable sub-folder and execute ``` make build && make run ``` ## Android To run the Android sample, cd to `Android` and execute ``` make run ``` ## iOS To run the iOS sample, cd to `iOS` and execute ``` make run ```
# Running test suites using Mono Before running tests, [build Mono](../../building/mono/README.md) using the desired configuration. ## Runtime Tests ### Desktop Mono: To build the runtime tests for Mono JIT or interpreter: 1. Build test host (corerun) - From the `$(REPO_ROOT)`: ``` ./build.sh clr.hosts -c <release|debug> ``` 2. Build the tests (in `$(REPO_ROOT)/src/tests`) ``` cd src/tests ./build.sh mono <release|debug> ``` To build an individual test, test directory, or a whole subdirectory tree, use the `-test:`, `-dir:` or `-tree:` options (without the src/tests prefix) For example: `./build.sh mono release -test:JIT/opt/InstructionCombining/DivToMul.csproj` Run individual test: ``` bash ./artifacts/tests/coreclr/OSX.x64.Release/JIT/opt/InstructionCombining/DivToMul/DivToMul.sh -coreroot=`pwd`/artifacts/tests/coreclr/OSX.x64.Release/Tests/Core_Root ``` Run all built tests: ``` ./run.sh <Debug|Release> ``` To debug a single test with `lldb`: 1. Run the shell script for the test case manually with the `-debug` option: ``` bash ./artifacts/tests/coreclr/OSX.x64.Release/JIT/opt/InstructionCombining/DivToMul/DivToMul.sh -coreroot=`pwd`/artifacts/tests/coreclr/OSX.x64.Release/Tests/Core_Root -debug=/usr/bin/lldb ``` 2. In LLDB add the debug symbols for mono: `add-dsym <CORE_ROOT>/libcoreclr.dylib.dwarf` 3. Run/debug the test ### WebAssembly: Build the runtime tests for WebAssembly ``` $(REPO_ROOT)/src/tests/build.sh -mono os Browser wasm <Release/Debug> ``` The last few lines of the build log should contain something like this: ``` -------------------------------------------------- Example run.sh command src/tests/run.sh --coreOverlayDir=<repo_root>artifacts/tests/coreclr/Browser.wasm.Release/Tests/Core_Root --testNativeBinDir=<repo_root>/artifacts/obj/coreclr/Browser.wasm.Release/tests --testRootDir=<repo_root>/artifacts/tests/coreclr/Browser.wasm.Release --copyNativeTestBin Release -------------------------------------------------- ``` To run all tests, execute that command, adding `wasm` to the end. ### Android: Build the runtime tests for Android x64/ARM64 ``` $(REPO_ROOT)/src/tests/build.sh -mono os Android <x64/arm64> <Release/Debug> ``` Run one test wrapper from repo root ``` export CORE_ROOT=<path_to_folder_Core_Root> ./dotnet.sh <path_to_xunit.console.dll> <path_to_*.XUnitWrapper.dll> ``` ### Additional Documents For more details about internals of the runtime tests, please refer to the [CoreCLR testing documents](../coreclr) ## Libraries tests ### Desktop Mono Build and run library tests against Mono JIT or interpreter ``` $(REPO_ROOT)/dotnet.sh build /t:Test /p:RuntimeFlavor=mono /p:Configuration=<Release/Debug> $(REPO_ROOT)/src/libraries/<library>/tests ``` Alternatively, you could execute the following command from `$(REPO_ROOT)/src/mono` ``` make run-tests-corefx-<library> ``` For example, the following command is for running System.Runtime tests: ``` make run-tests-corefx-System.Runtime ``` ### Mobile targets and WebAssembly Build and run library tests against WebAssembly, Android or iOS. See instructions located in [Library testing document folder](../libraries/) ## Running the functional tests There are the [functional tests](https://github.com/dotnet/runtime/tree/main/src/tests/FunctionalTests/) which aim to test some specific features/configurations/modes on Android, iOS-like platforms (iOS/tvOS + simulators, MacCatalyst), and WebAssembly. A functional test can be run the same way as any library test suite, e.g.: ``` ./dotnet.sh build /t:Test -c Release /p:TargetOS=Android /p:TargetArchitecture=x64 src/tests/FunctionalTests/Android/Device_Emulator/PInvoke/Android.Device_Emulator.PInvoke.Test.csproj ``` Currently the functional tests are expected to return `42` as a success code so please be careful when adding a new one. For more details, see instructions located in [Library testing document folder](../libraries/). # Running the Mono samples There are a few convenient samples located in `$(REPO_ROOT)/src/mono/sample`, which could help you test your program easily with different flavors of Mono or do a sanity check on the build. The samples are set up to work with a specific configuration; please refer to the relevant Makefile for specifics. If you would like to work with a different configuration, you can edit the Makefile. ## Desktop Mono To run the desktop Mono sample, cd to `HelloWorld` and execute: ``` make run ``` Note that the default configuration of this sample is LLVM JIT. ## WebAssembly To run the WebAssembly sample, cd to `wasm`. There are two sub-folders `browser` and `console`. One is set up to run the progam in browser, the other is set up to run the program in console. Enter the desirable sub-folder and execute ``` make build && make run ``` ## Android To run the Android sample, cd to `Android` and execute ``` make run ``` ## iOS To run the iOS sample, cd to `iOS` and execute ``` make run ```
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Manifest/localize/WorkloadManifest.ru.json
{ "workloads/wasm-tools/description": "Средства сборки WebAssembly .NET" }
{ "workloads/wasm-tools/description": "Средства сборки WebAssembly .NET" }
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./docs/workflow/building/coreclr/linux-instructions.md
Build CoreCLR on Linux ====================== This guide will walk you through building CoreCLR on Linux. First, set up your environment to build using the instructions [here](../../requirements/linux-requirements.md). Choose one of the following options for building. [Build using Docker](#Build-using-Docker) [Build with own environment](#Environment) Build using Docker ================== Building using Docker will require that you choose the correct image for your environment. Note that the OS is strictly speaking not extremely important, for example if you are on Ubuntu 18.04 and build using the Ubuntu 16.04 x64 image there should be no issues. The target architecture is more important, as building arm32 using the x64 image will not work: there will be missing rootfs components required by the build. See [Docker Images](#Docker-Images), below, for more information on choosing an image to build with. Please note that when choosing an image choosing the same image as the host os you are running on you will allow you to run the product/tests outside of the docker container you built in. Once you have chosen an image the build is one command run from the root of the runtime repository: ```sh docker run --rm -v <RUNTIME_REPO_PATH>:/runtime -w /runtime mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-20200508132555-78cbb55 ./build.sh -subset clr -clang9 ``` Dissecting the command: - `--rm`: erase the created container after use. - `-v <RUNTIME_REPO_PATH>:/runtime`: mount the runtime repository under `/runtime`. Replace `<RUNTIME_REPO_PATH>` with the full path to your `runtime` repo clone, e.g., `-v /home/user/runtime:/runtime`. - `-w: /runtime`: set /runtime as working directory for the container. - `mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-20200508132555-78cbb55`: Docker image name. - `./build.sh`: command to be run in the container: run the root build command. - `-subset clr`: build the clr subset (excluding libraries and installers). - `-clang9`: argument to use clang 9 for the build (the only compiler in the build image). If you are attempting to cross build for arm or arm64 then use the crossrootfs location to set the ROOTFS_DIR. The command would add `-e ROOTFS_DIR=<crossrootfs location>`. See [Docker Images](#Docker-Images) for the crossrootfs location. In addition you will need to specify `-cross`. For example: ```sh docker run --rm -v <RUNTIME_REPO_PATH>:/runtime -w /runtime -e ROOTFS_DIR=/crossrootfs/arm64 mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-cross-arm64-20200508132638-b2c2436 ./build.sh -arch arm64 -subset clr -cross -clang9 ``` Note that instructions on building the crossrootfs location can be found at [cross-building.md](cross-building.md). These instructions are suggested only if there are plans to change the rootfs, or the Docker images for arm/arm64 are insufficient for you build. Docker Images ============= This table of images might often become stale as we change our images as our requirements change. The images used for our our official builds can be found in [the platform matrix](../../../../eng/pipelines/common/platform-matrix.yml) of our Azure DevOps builds under the `container` key of the platform you plan to build. | OS | Target Arch | Image location | crossrootfs location | Clang Version | | --------------------------- | --------------- | ---------------------------------------------------------------------------------------------------- | -------------------- | ------------- | | Alpine | x64 | `mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.13-WithNode-20210910135845-c401c85` | - | -clang5.0 | | CentOS 7 (build for RHEL 7) | x64 | `mcr.microsoft.com/dotnet-buildtools/prereqs:centos-7-20210714125435-9b5bbc2` | - | -clang9 | | Ubuntu 16.04 (x64, arm ROOTFS) | arm32 (armhf) | `mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-cross-20210719121212-8a8d3be` | `/crossrootfs/arm` | -clang9 | | Ubuntu 16.04 (x64, arm64 ROOTFS) | arm64 (arm64v8) | `mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-cross-arm64-20210719121212-8a8d3be` | `/crossrootfs/arm64` | -clang9 | | Alpine (x64, arm ROOTFS) | arm | `mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-cross-arm-alpine-20210923140502-78f7860` | `/crossrootfs/arm64` | -clang9 | | Alpine (x64, arm64 ROOTFS) | arm64 (arm64v8) | `mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-cross-arm64-alpine-20210719121212-b2c2436` | `/crossrootfs/arm64` | -clang9 | Environment =========== Git Setup --------- This guide assumes that you've cloned the runtime repository. Set the maximum number of file-handles -------------------------------------- To ensure that your system can allocate enough file-handles for the libraries build run `sysctl fs.file-max`. If it is less than 100000, add `fs.file-max = 100000` to `/etc/sysctl.conf`, and then run `sudo sysctl -p`. Build the Runtime and System.Private.CoreLib ============================================= To build the runtime on Linux, run build.sh to build the CoreCLR subset category of the runtime: ``` ./build.sh -subset clr ``` After the build is completed, there should some files placed in `artifacts/bin/coreclr/Linux.x64.Debug`. The ones we are most interested in are: * `corerun`: The command line host. This program loads and starts the CoreCLR runtime and passes the managed program you want to run to it. * `libcoreclr.so`: The CoreCLR runtime itself. * `System.Private.CoreLib.dll`: The core managed library, containing definitions of `Object` and base functionality. Create the Core_Root =================== The Core_Root folder will contain the built binaries, generated by `build.sh`, as well as the library packages required to run tests. Note that you need to build the libraries subset (`-subset libs`) before this command can be run. ``` ./src/tests/build.sh generatelayoutonly ``` After the build is complete you will find the output in the `artifacts/tests/coreclr/Linux.x64.Debug/Tests/Core_Root` folder. Running a single test =================== After `src/tests/build.sh` is run, `corerun` from the Core_Root folder is ready to be run. This can be done by using the full absolute path to `corerun`, or by setting an environment variable to the Core_Root folder. ```sh export CORE_ROOT=/runtime/artifacts/tests/coreclr/Linux.x64.Debug/Tests/Core_Root $CORE_ROOT/corerun hello_world.dll ```
Build CoreCLR on Linux ====================== This guide will walk you through building CoreCLR on Linux. First, set up your environment to build using the instructions [here](../../requirements/linux-requirements.md). Choose one of the following options for building. [Build using Docker](#Build-using-Docker) [Build with own environment](#Environment) Build using Docker ================== Building using Docker will require that you choose the correct image for your environment. Note that the OS is strictly speaking not extremely important, for example if you are on Ubuntu 18.04 and build using the Ubuntu 16.04 x64 image there should be no issues. The target architecture is more important, as building arm32 using the x64 image will not work: there will be missing rootfs components required by the build. See [Docker Images](#Docker-Images), below, for more information on choosing an image to build with. Please note that when choosing an image choosing the same image as the host os you are running on you will allow you to run the product/tests outside of the docker container you built in. Once you have chosen an image the build is one command run from the root of the runtime repository: ```sh docker run --rm -v <RUNTIME_REPO_PATH>:/runtime -w /runtime mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-20200508132555-78cbb55 ./build.sh -subset clr -clang9 ``` Dissecting the command: - `--rm`: erase the created container after use. - `-v <RUNTIME_REPO_PATH>:/runtime`: mount the runtime repository under `/runtime`. Replace `<RUNTIME_REPO_PATH>` with the full path to your `runtime` repo clone, e.g., `-v /home/user/runtime:/runtime`. - `-w: /runtime`: set /runtime as working directory for the container. - `mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-20200508132555-78cbb55`: Docker image name. - `./build.sh`: command to be run in the container: run the root build command. - `-subset clr`: build the clr subset (excluding libraries and installers). - `-clang9`: argument to use clang 9 for the build (the only compiler in the build image). If you are attempting to cross build for arm or arm64 then use the crossrootfs location to set the ROOTFS_DIR. The command would add `-e ROOTFS_DIR=<crossrootfs location>`. See [Docker Images](#Docker-Images) for the crossrootfs location. In addition you will need to specify `-cross`. For example: ```sh docker run --rm -v <RUNTIME_REPO_PATH>:/runtime -w /runtime -e ROOTFS_DIR=/crossrootfs/arm64 mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-cross-arm64-20200508132638-b2c2436 ./build.sh -arch arm64 -subset clr -cross -clang9 ``` Note that instructions on building the crossrootfs location can be found at [cross-building.md](cross-building.md). These instructions are suggested only if there are plans to change the rootfs, or the Docker images for arm/arm64 are insufficient for you build. Docker Images ============= This table of images might often become stale as we change our images as our requirements change. The images used for our our official builds can be found in [the platform matrix](../../../../eng/pipelines/common/platform-matrix.yml) of our Azure DevOps builds under the `container` key of the platform you plan to build. | OS | Target Arch | Image location | crossrootfs location | Clang Version | | --------------------------- | --------------- | ---------------------------------------------------------------------------------------------------- | -------------------- | ------------- | | Alpine | x64 | `mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.13-WithNode-20210910135845-c401c85` | - | -clang5.0 | | CentOS 7 (build for RHEL 7) | x64 | `mcr.microsoft.com/dotnet-buildtools/prereqs:centos-7-20210714125435-9b5bbc2` | - | -clang9 | | Ubuntu 16.04 (x64, arm ROOTFS) | arm32 (armhf) | `mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-cross-20210719121212-8a8d3be` | `/crossrootfs/arm` | -clang9 | | Ubuntu 16.04 (x64, arm64 ROOTFS) | arm64 (arm64v8) | `mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-cross-arm64-20210719121212-8a8d3be` | `/crossrootfs/arm64` | -clang9 | | Alpine (x64, arm ROOTFS) | arm | `mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-cross-arm-alpine-20210923140502-78f7860` | `/crossrootfs/arm64` | -clang9 | | Alpine (x64, arm64 ROOTFS) | arm64 (arm64v8) | `mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-cross-arm64-alpine-20210719121212-b2c2436` | `/crossrootfs/arm64` | -clang9 | Environment =========== Git Setup --------- This guide assumes that you've cloned the runtime repository. Set the maximum number of file-handles -------------------------------------- To ensure that your system can allocate enough file-handles for the libraries build run `sysctl fs.file-max`. If it is less than 100000, add `fs.file-max = 100000` to `/etc/sysctl.conf`, and then run `sudo sysctl -p`. Build the Runtime and System.Private.CoreLib ============================================= To build the runtime on Linux, run build.sh to build the CoreCLR subset category of the runtime: ``` ./build.sh -subset clr ``` After the build is completed, there should some files placed in `artifacts/bin/coreclr/Linux.x64.Debug`. The ones we are most interested in are: * `corerun`: The command line host. This program loads and starts the CoreCLR runtime and passes the managed program you want to run to it. * `libcoreclr.so`: The CoreCLR runtime itself. * `System.Private.CoreLib.dll`: The core managed library, containing definitions of `Object` and base functionality. Create the Core_Root =================== The Core_Root folder will contain the built binaries, generated by `build.sh`, as well as the library packages required to run tests. Note that you need to build the libraries subset (`-subset libs`) before this command can be run. ``` ./src/tests/build.sh generatelayoutonly ``` After the build is complete you will find the output in the `artifacts/tests/coreclr/Linux.x64.Debug/Tests/Core_Root` folder. Running a single test =================== After `src/tests/build.sh` is run, `corerun` from the Core_Root folder is ready to be run. This can be done by using the full absolute path to `corerun`, or by setting an environment variable to the Core_Root folder. ```sh export CORE_ROOT=/runtime/artifacts/tests/coreclr/Linux.x64.Debug/Tests/Core_Root $CORE_ROOT/corerun hello_world.dll ```
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./docs/design/features/standalone-gc-loading.md
# Standalone GC Loader Design Author: Sean Gillespie (@swgillespie) - 2017 This document aims to provide a specification for how a standalone GC is to be loaded and what is to happen in the case of version mismatches. ## Definitions Before diving in to the specification, it's useful to precisely define some terms that will be used often in this document. * The **Execution Engine**, or **EE** - The component of the CLR responsible for *executing* programs. This is an intentionally vague definition. The GC does not care how (or even *if*) programs are compiled or executed, so it is up to the EE to invoke the GC whenever an executing program does something that requires the GC's attention. The EE is notable because the implementation of an execution engine varies widely between runtimes; the CoreRT EE is primarily in managed code (C#), while CoreCLR (and the .NET Framework)'s EE is primarily in C++. * The **GC**, or **Garbage Collector** - The component of the CLR responsible for allocating managed objects and reclaiming unused memory. It is written in C++ and the code is shared by multiple runtimes. (That is, CoreCLR/CoreRT may have different execution engines, but they share the *same* GC code.) * The **DAC**, or **Data Access Component** - A subset of the execution engine that is compiled in such a way that it can be run *out of process*, when debugging .NET code using a debugger. The DAC is used by higher-level components such as SOS (Son of Strike, a windbg/lldb debugger extension for debugging managed code) and the DBI (a COM interface). The full details about the DAC are covered in [this document](https://github.com/dotnet/runtime/blob/main/docs/design/coreclr/botr/dac-notes.md). ## Rationale and Goals of a Standalone GC A GC that is "standalone" is one that is able to be built as a dynamic shared library and loaded dynamically at startup. This definition is useful because it provides a number of benefits to the codebase: * A standalone GC that can be loaded dynamically at runtime can also be *substituted* easily by loading any GC-containing dynamic shared library specified by a user. This is especially interesting for prototyping and testing GC changes since it would be possible to make changes to the GC without having to re-compile the runtime. * A standalone GC that can be *built* as a dynamic shared library imposes a strong requirement that the interfaces that the GC uses to interact with other runtime components be complete and correct. A standalone GC will not link successfully if it refers to symbols defined within the EE. This makes the GC codebase significantly easier to share between different execution engine implementations; as long as the GC implements its side of the interface and the EE implements its side of the interface, we can expect that changes within the GC itself will be more portable to other runtime implementations. Worth noting is that the JIT (both RyuJIT and the legacy JIT(s) before it) can be built standalone and have realized these same benefits. The existence of an interface and an implementation loadable from shared libraries has enabled RyuJIT in particular to be used as the code generator for both the CoreRT compiler and crossgen, while still being flexible enough to be tested using tools that implement very non-standard execution engines such as [SuperPMI](https://github.com/dotnet/runtime/blob/main/src/coreclr/tools/superpmi/readme.md). The below loading protocol is inspired directly by the JIT loader and many aspects of the GC loader are identical to what the JIT does when loading dynamic shared libraries. ## Loading a Standalone GC Given that it is possible to create a GC that resides in a dynamic shared library, it is important that the runtime have a protocol for locating and loading such GCs. The JIT is capable of being loaded in this manner and, because of this, a significant amount of prior art exists for loading components for shared libraries from the file system. This specification is based heavily on the ways that a standalone JIT can be loaded. Fundamentally, the algorithm for loading a standalone GC consists of these steps: 0. Identify whether or not we should be using a standalone GC at all. 1. Identify *where* the standalone GC will be loaded from. 3. Load the dynamic shared library and ask it to identify itself (name and version). 4. Check that the version numbers are compatible. 5. If so, initialize the GC and continue on with EE startup. If not, reject the dynamic shared library and raise an appropriate user-visible error. The algorithm for initializing the DAC against a target process using a standalone GC consists of these steps: 1. Identify whether or not the target process is using a standalone GC at all. If not, no further checks are necessary. 2. If so, inspect the version number of the standalone GC in the target process and determine whether or not the DAC is compatible with that version. If not, present a notification of some kind that the debugging experience will be degraded. 3. Continue onwards. Each one of these steps will be explained in detail below. ### Identifying candidate shared libraries The question of whether or not the EE should attempt to locate and load a standalone GC is answered by the EE's configuration system (`EEConfig`). EEConfig has the ability to query configuration information from environment variables. Using this subsystem, users can specify a specific environment variable to indicate that they are interested in loading a standalone GC. There is one environment variable that governs the behavior of the standalone GC loader: `COMPlus_GCName`. It should be set to be a path to a dynamic shared library containing the GC that the EE intends to load. Its presence informs the EE that, first, a standalone GC is to be loaded and, second, precisely where the EE should load it from. The EE will call `LoadLibrary` using the path given by `COMPlus_GCName`. If this succeeds, the EE will move to the next step in the loading process. ### Verifying the version of a candidate GC Once the EE has successfully loaded a candidate GC dynamic shared library, it must then check that the candidate GC is version-compatible with the version of the EE that is doing the loading. It does this in three phases. First, the candidate GC must expose a function with the given name and signature: ```c++ struct VersionInfo { uint32_t MajorVersion; uint32_t MinorVersion; uint32_t BuildVersion; const char* Name; }; extern "C" void GC_VersionInfo( /* Out */ VersionInfo* ); ``` The EE will call `GetProcAddress` on the library, looking for `GC_VersionInfo`. It is a fatal error if this symbol is not found. Next, the EE will call this function and receive back a `VersionInfo` structure. Each EE capable of loading standalone GCs has a major version number and minor version number that is obtained from the version of `gcinterface.h` that the EE built against. It will compare these numbers against the numbers it receives from `GC_VersionInfo` in this way: * If the EE's MajorVersion is not equal to the MajorVersion obtained from the candidate GC, reject. Major version changes occur when there are breaking changes in the EE/GC interface and it is not possible to interoperate with incompatible interfaces. A change is considered breaking if it alters the semantics of an existing method or if it deletes or renames existing methods so that VTable layouts are not compatible. * If the EE's MinorVersion is greater than the MinorVersion obtained from the candidate GC, accept (Forward compatability). The EE must take care not to call any new APIs that are not present in the version of the candidate GC. * Otherwise, accept (Backward compatibility). It is perfectly safe to use a GC whose MinorVersion exceeds the EE's MinorVersion. The build version and name are not considered and are provided only for display/debug purposes. If this succeeds, the EE will transition to the next step in the loading sequence. ### Initializing the GC Once the EE has verified that the version of the candidate GC is valid, it then proceeds to initialize the GC. It does so by loading (via `GetProcAddress`) and executing a function with this signature: ```c++ extern "C" HRESULT GC_Initialize( /* In */ IGCToCLR*, /* Out */ IGCHeap**. /* Out */ IGCHandleManager**, /* Out */ GcDacVars* ); ``` The EE will provide its implementation of `IGCToCLR` to the GC and the GC will provide its implementations of `IGCHeap`, `IGCHandleManager`, and `GcDacVars` to the EE. From here, if `GC_Initialize` returns a successful HRESULT, the GC is considered initialized and the remainder of EE startup continues. If `GC_Initialize` returns an error HRESULT, the initialization has failed. ### Initializing the DAC The existence of a standalone GC is a debuggee process has implications for how the DAC is loaded and initializes itself. The DAC has access to implementation details of the GC that are not normally exposed as part of the `GC/EE` interfaces, and as such it is versioned separately. When the DAC is being initialized and it loads the `GcDacVars` structure from the debuggee process's memory, it must check the major and minor versions of the DAC, which are itself DAC variables exposed by a standalone GC. It then decides whether or not the loaded GC is compatible with the DAC that is currently executing. It does this in the same manner that the EE does: * If the major versions of the DAC and loaded GC do not agree, reject. * If the minor version of the DAC is greater than the minor version of the GC, accept but take care not to invoke any new code paths not present in the target GC. * If the minor version of the DAC is less than or equal to the minor version of the GC, accept. If a DAC rejects a loaded GC, it will return `E_FAIL` from DAC APIs that would otherwise need to interact with the GC. ## Outstanding Questions How can we provide the most useful error message when a standalone GC fails to load? In the past it has been difficult to determine what preciscely has gone wrong with `coreclr_initialize` returns a HRESULT and no indication of what occured. Same question for the DAC - Is `E_FAIL` the best we can do? If we could define our own error for DAC/GC version mismatches, that would be nice; however, that is technically a breaking change in the DAC.
# Standalone GC Loader Design Author: Sean Gillespie (@swgillespie) - 2017 This document aims to provide a specification for how a standalone GC is to be loaded and what is to happen in the case of version mismatches. ## Definitions Before diving in to the specification, it's useful to precisely define some terms that will be used often in this document. * The **Execution Engine**, or **EE** - The component of the CLR responsible for *executing* programs. This is an intentionally vague definition. The GC does not care how (or even *if*) programs are compiled or executed, so it is up to the EE to invoke the GC whenever an executing program does something that requires the GC's attention. The EE is notable because the implementation of an execution engine varies widely between runtimes; the CoreRT EE is primarily in managed code (C#), while CoreCLR (and the .NET Framework)'s EE is primarily in C++. * The **GC**, or **Garbage Collector** - The component of the CLR responsible for allocating managed objects and reclaiming unused memory. It is written in C++ and the code is shared by multiple runtimes. (That is, CoreCLR/CoreRT may have different execution engines, but they share the *same* GC code.) * The **DAC**, or **Data Access Component** - A subset of the execution engine that is compiled in such a way that it can be run *out of process*, when debugging .NET code using a debugger. The DAC is used by higher-level components such as SOS (Son of Strike, a windbg/lldb debugger extension for debugging managed code) and the DBI (a COM interface). The full details about the DAC are covered in [this document](https://github.com/dotnet/runtime/blob/main/docs/design/coreclr/botr/dac-notes.md). ## Rationale and Goals of a Standalone GC A GC that is "standalone" is one that is able to be built as a dynamic shared library and loaded dynamically at startup. This definition is useful because it provides a number of benefits to the codebase: * A standalone GC that can be loaded dynamically at runtime can also be *substituted* easily by loading any GC-containing dynamic shared library specified by a user. This is especially interesting for prototyping and testing GC changes since it would be possible to make changes to the GC without having to re-compile the runtime. * A standalone GC that can be *built* as a dynamic shared library imposes a strong requirement that the interfaces that the GC uses to interact with other runtime components be complete and correct. A standalone GC will not link successfully if it refers to symbols defined within the EE. This makes the GC codebase significantly easier to share between different execution engine implementations; as long as the GC implements its side of the interface and the EE implements its side of the interface, we can expect that changes within the GC itself will be more portable to other runtime implementations. Worth noting is that the JIT (both RyuJIT and the legacy JIT(s) before it) can be built standalone and have realized these same benefits. The existence of an interface and an implementation loadable from shared libraries has enabled RyuJIT in particular to be used as the code generator for both the CoreRT compiler and crossgen, while still being flexible enough to be tested using tools that implement very non-standard execution engines such as [SuperPMI](https://github.com/dotnet/runtime/blob/main/src/coreclr/tools/superpmi/readme.md). The below loading protocol is inspired directly by the JIT loader and many aspects of the GC loader are identical to what the JIT does when loading dynamic shared libraries. ## Loading a Standalone GC Given that it is possible to create a GC that resides in a dynamic shared library, it is important that the runtime have a protocol for locating and loading such GCs. The JIT is capable of being loaded in this manner and, because of this, a significant amount of prior art exists for loading components for shared libraries from the file system. This specification is based heavily on the ways that a standalone JIT can be loaded. Fundamentally, the algorithm for loading a standalone GC consists of these steps: 0. Identify whether or not we should be using a standalone GC at all. 1. Identify *where* the standalone GC will be loaded from. 3. Load the dynamic shared library and ask it to identify itself (name and version). 4. Check that the version numbers are compatible. 5. If so, initialize the GC and continue on with EE startup. If not, reject the dynamic shared library and raise an appropriate user-visible error. The algorithm for initializing the DAC against a target process using a standalone GC consists of these steps: 1. Identify whether or not the target process is using a standalone GC at all. If not, no further checks are necessary. 2. If so, inspect the version number of the standalone GC in the target process and determine whether or not the DAC is compatible with that version. If not, present a notification of some kind that the debugging experience will be degraded. 3. Continue onwards. Each one of these steps will be explained in detail below. ### Identifying candidate shared libraries The question of whether or not the EE should attempt to locate and load a standalone GC is answered by the EE's configuration system (`EEConfig`). EEConfig has the ability to query configuration information from environment variables. Using this subsystem, users can specify a specific environment variable to indicate that they are interested in loading a standalone GC. There is one environment variable that governs the behavior of the standalone GC loader: `COMPlus_GCName`. It should be set to be a path to a dynamic shared library containing the GC that the EE intends to load. Its presence informs the EE that, first, a standalone GC is to be loaded and, second, precisely where the EE should load it from. The EE will call `LoadLibrary` using the path given by `COMPlus_GCName`. If this succeeds, the EE will move to the next step in the loading process. ### Verifying the version of a candidate GC Once the EE has successfully loaded a candidate GC dynamic shared library, it must then check that the candidate GC is version-compatible with the version of the EE that is doing the loading. It does this in three phases. First, the candidate GC must expose a function with the given name and signature: ```c++ struct VersionInfo { uint32_t MajorVersion; uint32_t MinorVersion; uint32_t BuildVersion; const char* Name; }; extern "C" void GC_VersionInfo( /* Out */ VersionInfo* ); ``` The EE will call `GetProcAddress` on the library, looking for `GC_VersionInfo`. It is a fatal error if this symbol is not found. Next, the EE will call this function and receive back a `VersionInfo` structure. Each EE capable of loading standalone GCs has a major version number and minor version number that is obtained from the version of `gcinterface.h` that the EE built against. It will compare these numbers against the numbers it receives from `GC_VersionInfo` in this way: * If the EE's MajorVersion is not equal to the MajorVersion obtained from the candidate GC, reject. Major version changes occur when there are breaking changes in the EE/GC interface and it is not possible to interoperate with incompatible interfaces. A change is considered breaking if it alters the semantics of an existing method or if it deletes or renames existing methods so that VTable layouts are not compatible. * If the EE's MinorVersion is greater than the MinorVersion obtained from the candidate GC, accept (Forward compatability). The EE must take care not to call any new APIs that are not present in the version of the candidate GC. * Otherwise, accept (Backward compatibility). It is perfectly safe to use a GC whose MinorVersion exceeds the EE's MinorVersion. The build version and name are not considered and are provided only for display/debug purposes. If this succeeds, the EE will transition to the next step in the loading sequence. ### Initializing the GC Once the EE has verified that the version of the candidate GC is valid, it then proceeds to initialize the GC. It does so by loading (via `GetProcAddress`) and executing a function with this signature: ```c++ extern "C" HRESULT GC_Initialize( /* In */ IGCToCLR*, /* Out */ IGCHeap**. /* Out */ IGCHandleManager**, /* Out */ GcDacVars* ); ``` The EE will provide its implementation of `IGCToCLR` to the GC and the GC will provide its implementations of `IGCHeap`, `IGCHandleManager`, and `GcDacVars` to the EE. From here, if `GC_Initialize` returns a successful HRESULT, the GC is considered initialized and the remainder of EE startup continues. If `GC_Initialize` returns an error HRESULT, the initialization has failed. ### Initializing the DAC The existence of a standalone GC is a debuggee process has implications for how the DAC is loaded and initializes itself. The DAC has access to implementation details of the GC that are not normally exposed as part of the `GC/EE` interfaces, and as such it is versioned separately. When the DAC is being initialized and it loads the `GcDacVars` structure from the debuggee process's memory, it must check the major and minor versions of the DAC, which are itself DAC variables exposed by a standalone GC. It then decides whether or not the loaded GC is compatible with the DAC that is currently executing. It does this in the same manner that the EE does: * If the major versions of the DAC and loaded GC do not agree, reject. * If the minor version of the DAC is greater than the minor version of the GC, accept but take care not to invoke any new code paths not present in the target GC. * If the minor version of the DAC is less than or equal to the minor version of the GC, accept. If a DAC rejects a loaded GC, it will return `E_FAIL` from DAC APIs that would otherwise need to interact with the GC. ## Outstanding Questions How can we provide the most useful error message when a standalone GC fails to load? In the past it has been difficult to determine what preciscely has gone wrong with `coreclr_initialize` returns a HRESULT and no indication of what occured. Same question for the DAC - Is `E_FAIL` the best we can do? If we could define our own error for DAC/GC version mismatches, that would be nice; however, that is technically a breaking change in the DAC.
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./src/mono/sample/wasm/browser-webpack/README.md
## Sample for packaging dotnet.js via WebPack ``` dotnet build /p:TargetOS=Browser /p:TargetArchitecture=wasm /p:Configuration=Debug /t:RunSample ```
## Sample for packaging dotnet.js via WebPack ``` dotnet build /p:TargetOS=Browser /p:TargetArchitecture=wasm /p:Configuration=Debug /t:RunSample ```
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./docs/design/coreclr/jit/ryujit-tutorial.md
# RyuJIT Tutorial ## .NET Dynamic Code Execution ### .NET Runtime - An implementation of the Common Language Infrastructure [ECMA 335] - Supports multiple languages, including C#, F# and VB - RyuJIT is the "next generation" just in time compiler for .NET - Sources are at https://github.com/dotnet/runtime/tree/main/src/coreclr/jit #### Notes For context, the .NET runtime has been around since about the turn of the millennium. It is a virtual machine that supports the execution of a number of languages, primarily C#, Visual Basic, and F#. It has been standardized through Ecma and then ISO. There have been a number of implementations of the CLI, the dominant one being installed with the Windows operating system. That implementation has served as the basis for a standalone implementation that is now available in open source. RyuJIT is the re-architected JIT for .NET. ### Why "RyuJIT"? - Ryujin is a Japanese Sea Dragon We wanted something with "JIT" in the name, and the idea of a dragon came to mind because of the Dragon book that we all know and love. So – we just adapted the name of the Japanese sea dragon, Ryujin. ### JIT History - Code base pre-dates .NET - Designed to support x86 only - Evolved, enhanced and extended over time & still evolving - Primary RyuJIT changes - Front-end: value numbering, SSA - Back-end: linear scan register allocation, lowering #### Notes The original JIT was developed for a precursor to .NET, around the turn of the millennium. It was developed quickly, and was designed for x86 only. It has evolved over time, and is still evolving. The front-end has been extended to support SSA and value numbering, while the original register allocation and code generation phases have been fully replaced. ### Primary design considerations - High compatibility bar with previous JITs - Support and enable good runtime performance - Ensure good throughput via largely linear-order optimizations and transformations, along with limits for those that are inherently super-linear. - Enable a range of targets and scenarios. #### Notes First and foremost, the evolution of RyuJIT is constrained by the requirement to maintain compatibility with previous JITs. This is especially important for a just in time compiler that has such a huge installed base. We need to ensure that the behavior of existing programs will be preserved across updates. Sometimes this even means adding "quirks" to ensure that even invalid programs continue to behave the same way. Beyond that, the objective is to get the best possible performance with a minimum of compile time. Both the design of the RyuJIT IR, as well as constraints on the scope of optimizations, are aimed at keeping as close to a linear compile time as possible. Finally, while the original JIT was quite x86-oriented, we now have a broader set of platforms to support, as well as an ever-widening variety of application scenarios. ### Execution Environment & External Interface - RyuJIT provides just-in-time compilation for the .NET runtime (aka EE or VM or CLR) - Supports "tiering", where code can be compiled with most optimizations turned off (Tier 0), and the VM can later request the same method be recompiled with optimizations turned on (Tier 1). - ICorJitCompiler – this is the interface that the JIT compiler implements, and includes compileMethod (corjit.h) - ICorJitInfo – this is the interface that the EE implements to provide type & method info - Inherits from ICorDynamicInfo (corinfo.h) #### Notes In this talk and elsewhere, you will see the .NET runtime often refered to as the VM, for virtual machine, the EE, for execution engine, or the CLR, for common language runtime. They are largely used interchangeably, though some might argue the terms have subtle differences. .NET is somewhat unique in that it currently has a single-tier JIT – no interpreter, and no re-optimizing JIT. While an interpreter exists, and experimentation has been done on re-jitting, the current model remains single-tier. The JIT and the VM each implement an interface that abstracts the dependencies they share. The VM invokes methods on the ICorJitCompiler interface to compile methods, and the JIT calls back on the ICorJitInfo interface to get information about types and methods. ### RyuJIT High-Level Overview ![RyuJIT IR Overview](images/ryujit-high-level-overview.png) #### Notes This is the 10,000 foot view of RyuJIT. It takes in MSIL (aka CIL) in the form of byte codes, and the Importer phase transforms these to the intermediate representation used in the JIT. The IR operations are called "GenTrees", as in "trees for code generation". This format is preserved across the bulk of the JIT, with some changes in form and invariants along the way. Eventually, the code generator produces a low-level intermediate called InstrDescs, which simply capture the instruction encodings while the final mappings are done to produce the actual native code and associated tables. ### RyuJIT Phases ![RyuJIT Phases](images/ryujit-phase-diagram.png) #### Notes This is the more detailed view, and shows all of the significant phases of RyuJIT. The ones in green are responsible for creating and normalizing the IR and associated data structures. The phases in orange are the optimization phases, and the phases in purple are the lower-level, back-end phases. ### Initial Phases of RyuJIT ![RyuJIT Initial Phases](images/ryujit-initial-phases.png) - Importer: - initialize the local variable table and scan the MSIL to form BasicBlocks - Create the IR from the MSIL - May create GT_COMMA to enforce order, or GT_QMARK for conditional expressions - Inlining: Consider each call site, using state machine to estimate cost - Morph - Struct promotion: scalar replacement of fields - Mark address-exposed locals - Morph blocks – localized simple optimizations and normalization - Eliminate Qmarks – turn into control flow #### Notes The initial phases of RyuJIT set up the IR in preparation for the optimization phases. This includes importing the IL, that is, producing GenTrees IR from the incoming MSIL, inlining methods when considered profitable, normalizing the representation, analyzing the flowgraph, specifying the execution order and identifying the important local variables for optimization. ### Optimization Phases of RyuJIT ![RyuJIT Optimization Phases](images/ryujit-optimization-phases.png) - SSA and Value Numbering Optimizations - Dataflow analysis, SSA construction and Value numbering - Loop Invariant Code Hoisting – outer to inner - Copy Propagation – dominator-based path traversal, replacing variables with same VN (preserves CSSA) - Common Subexpression Elimination (CSE): identify computations with same VN, evaluate to a new temporary variable, and reuse - Assertion Propagation: uses value numbers to propagate properties such as non-nullness and in-bounds indices, and make transformations accordingly. - Eliminate array index range checks based on value numbers and assertions #### Notes The optimization phases of RyuJIT are based on liveness analysis, SSA and value numbering. These are used to perform loop invariant code hoisting, copy propagation, common subexpression elimination, assertion propagation, and range check elimination. SSA is used to uniquely identify the values of lclVars, while value numbering is used to identify trees that compute the same value for a given execution. ### Back-end Phases of RyuJIT ![RyuJIT Backend Phases](images/ryujit-backend-phases.png) - Rationalization: eliminate "parental context" in trees - Not really strictly "back-end" but required by back-end) - Lowering: fully expose control flow and register requirements - Register allocation: Linear scan with splitting - Code Generation: - Traverse blocks in layout order, generating code (InstrDescs) - Generate prolog & epilog, as well as GC, EH and scope tables #### Notes While the phases up to this point are largely target-independent, the back-end is responsible for performing the transformations necessary to produce native code. The Rationalization pass is intended to be a transitional phase that takes the existing IR, and turns it into a form that is easier to analyze and reason about. Over time, we expect that this IR form will be used across the JIT. The next phase, Lowering, is responsible for fully exposing the control flow and register requirements. This allows the register allocation to be performed on a rather more abstract IR than usually used for that purpose. It then annotates the IR with the register numbers, and the code generator walks the IR in linear execution order to produce the instructions. These are kept in a low-level format called InstrDescs which simply allow the emitter to fixup relative addresses and produce native code and tables. ## RyuJIT IR ### Throughput-Oriented IR - Trees instead of tuples - HIR Form: - Evaluation order implicit - LIR Form: - Evaluation order explicit via gtNext, gtPrev links - JIT must preserve side-effect ordering - Implicit single-def, single-use dataflow - Limit on the number of "tracked" variables - SSA, liveness - Single (though modal) IR, with limited phase-oriented IR transformations - Historically oriented toward a small working set ### RyuJIT IR ![RyuJIT IR Overview](images/ryujit-ir-overview.png) #### Notes The RyuJIT IR can be described at a high level as follows: - The `Compiler` object is the primary data structure of the JIT. Each method is represented as a doubly-linked list of `BasicBlock` objects. The Compiler object points to the head of this list with the `fgFirstBB` link, as well as having additional pointers to the end of the list, and other distinguished locations. - `BasicBlock` nodes contain a list of doubly-linked statements with no internal control flow - The `BasicBlock` also contains the dataflow information, when available. - `GenTree` nodes represent the operations and statement of the method being compiled. - It includes the type of the node, as well as value number, assertions, and register assignments when available. - `LclVarDsc` represents a local variable, argument or JIT-created temp. It has a `gtLclNum` which is the identifier usually associated with the variable in the JIT and its dumps. The `LclVarDsc` contains the type, use count, weighted use count, frame or register assignment etc. These are often referred to simply as "lclVars". They can be tracked (`lvTracked`), in which case they participate in dataflow analysis, and have a different index (`lvVarIndex`) to allow for the use of dense bit vectors. Only non-address-taken lclVars participate in liveness analysis, though aliased variables can participate in value numbering. ### GenTrees - A `BasicBlock` is a list of statements (`Statement`) - It has a pointer to the root expression for the statement - Statement nodes share the same base type as expression nodes, though they are really distinct IR objects - Each `Statement` node points to its root expression tree - Each node points to its operands (children), and contains: - Oper (the operator for the expression, e.g. GT_ASG, GT_ADD, …) - Type (the evaluation type, e.g. GT_INT, GT_REF, GT_STRUCT) - They are not always strictly expressions - Comma nodes are inserted to allow creation of (multi-use) temps while preserving ordering constraints #### Notes The GenTree is the primary data structure of the JIT. It is used to represent the expressions for each statement. Some distinguishing features of this IR are that, while an operation has links to its operands, they do not have a link to their parent expression. Furthermore, during the initial phases of the JIT, the nodes are only ordered implicitly by the canonical traversal order of trees. The initial construction of the IR ensures that any ordering dependencies are obeyed by the canonical traversal order, and any subsequent optimizations must ensure that any visible ordering constraints are obeyed. ### GenTrees Sample ``` ▌ Statement (top level) (IL 0x01D │ ┌──▌ const int 1 │ ┌──▌ & int │ │ └──▌ lclVar int V08 │ ┌──▌ + int │ │ └──▌ lclVar int V06 └──▌ = int └──▌ lclVar int V06 ``` From the example we'll look at later: count = count + (bits & 1) #### Notes This is the dump of an expression tree for a single statement. It takes a little while to get used to reading the expression tree dumps, which are printed with the children indented from the parent, and, for binary operators, with the first operand below the parent and the second operand above, at least in the front-end. This statement is extracted from the PopCount example we're going to walk through later. V06 is the local variable with lclNum 6, which is the "count" variable in the source. V08 is the "bits" variable. One thing to notice about this is that the context of the lclVar nodes is not clear without examining their parent. That is, two of the lclVar nodes here are uses, while the bottom one is a definition (it is the left-hand-side of the assignment above it). ### GenTrees Evolution - The IR is being evolved to improve the ability to analyze and reason about it - Ensure that expression tree edges reflect data flow from child to parent - Eliminate GT_ASG: data flows from rhs to lhs "over" the parent (need parent context to determine whether a node is a use or a def) - Eliminate GT_ADDR: Need parent context to analyze child - Eliminate GT_COMMA: strictly an ordering constraint for op1 relative to op2 and parent - Over time we expect to Rationalize the IR during or immediately after the IR is imported from the MSIL byte codes. #### Notes The GenTrees IR is being evolved to address the context issue mentioned in the last slide. We would like to ensure that all data flows are from child to parent. Examples where this is currently violated are in the assignment, or GT_ASG node, where the data flows from the right hand side of the assignment "over" the parent assignment, to the value being defined on the left hand side. Similarly, the child of a GT_ADDR node may appear to be a use or a definition of the value, when instead its address is being taken. Finally, the comma node is inserted in the tree purely as an ordering constraint to enable a non-flow computation or store of a temporary variable, to be inserted in the midst of the evaluation of an expression. The Rationalizer phase, which transforms these constructs to a more rational form, is currently run just prior to the back-end, but over time we expect to move it much earlier. ### GenTrees: Two modes - In tree-order mode (front-end) - Aka HIR - IR nodes are linked only from parent to child initially - After loop transformations, and before the main optimization phases, the IR nodes are sequenced in execution order with `gtNext` and `gtPrev` links. - After this point the execution order must be maintained, and must be consistent with a canonical tree walk order. - In linear-order mode (back-end) - Aka LIR - Execution order links (`gtPrev` and `gtNext`) are the definitive specification of execution order (no longer derivable from a tree walk) - Each `BasicBlock` contains a single linked list of nodes - `Statement` nodes are eliminated - `GT_IL_OFFSET`nodes convey source (IL) mapping info #### Notes There are a number of modalities in the RyuJIT IR, but one of the more significant is that when the IR is first imported, the nodes are linked only from parent to child. Later in the JIT, the execution order is made explicit by the addition of gtPrev and gtNext links on each node. This eases analysis of the IR, but also makes updates a bit more cumbersome. ### IR Example: Array References ##### After Import ``` ┌──▌ lclVar V03 ──▌ [] └──▌ lclVar V00 ``` ##### Front-end - Computation Exposed for Opt ``` ┌──▌ indir │ │ ┌──▌ const 16 │ └──▌ + │ │ ┌──▌ const 2 │ │ ┌──▌ << │ │ │ └──▌ lclVar V03 │ └──▌ + │ └──▌ lclVar V00 ──▌ comma └──▌ arrBndsChk ├──▌ arrLen │ └──▌ lclVar V00 └──▌ lclVar V03 ``` ##### Backend - Execution order - Target-dependent addressing modes ``` ┌──▌ lclVar V00 ┌──▌ lea(b+8) ┌──▌ indir ├──▌ lclVar V03 ──▌ arrBndsChk ┌──▌ lclVar V00 ├──▌ lclVar V03 ┌──▌ lea(b+(i*4)+16) ──▌ indir ``` #### Notes This example shows the evaluation of the IR from the importer, through the front-end and finally the backend. Initially, an array reference is imported as a GT_INDEX node, represented here by the double brackets, with the array object (V00) and the index (V03) as its children. In order to optimize this, we want to be able to expose the full addressing expression, as well as the bounds check. Note that the bounds check is inserted below a comma node. This allows this transformation to be made "in place". Also, note that the execution order is generally "left to right" where the "left" node of a binary operator is actually shown below it in tree order. On the right hand side, you can see that the addressing expression has been transformed to a "load effective address", and the array bounds check has been split. In the backend, although the tree links are still shown, we dump the graphs in execution order, as that is the primary view of the IR in the backend. ### Dataflow - There are two first-class entities in the JIT: - Local variables - These include some compiler-generated temps - These can have multiple definitions and uses - Tree nodes - Each node has a type, and if it is not a top-level node (i.e. the root of the statement tree), it defines a value - The value has exactly one use, by the parent node - The JIT also does some tracking of heap values via value numbering #### Notes The JIT only tracks the value of two kinds of entities: Local variables – including user-defined arguments and locals, as well as JIT-generated temps. These can have multiple definitions and uses. Tree nodes – these are always single-def, single-use The JIT also does some tracking of heap values. ### Dataflow Information - For throughput, the JIT limits the number of lclVars for which it computes liveness - These are the only lclVars that will be candidates for register allocation - These are also the lclVars for which GC ranges will be reported - Note that we have a precise GC model #### Notes The JIT limits the number of lclVars for which it computes liveness. The limit is currently 512 for most targets, which is sufficient to include all of the lclVars for most methods. These are the only lclVars that will participate in optimization or register allocation. A lclVar whose address has been taken will never be tracked. They are also the lclVars for which GC ranges will be reported. Although the CLR has a precise GC model, the JIT can either report ranges over which a location (i.e. a register or stack location) contains a GC variable, or report a location as a GC value for the full method scope, and then ensure that its value either represents a valid heap location or null. ### Liveness Analysis - The live-in and live-out sets are captured in the bbLiveIn and bbLiveOut fields of the BasicBlock. - The GTF_VAR_DEF flag is set on a lclVar GenTree node that is a definition. - The GTF_VAR_USEASG flag is set (in addition to the GTF_VAR_DEF flag) on partial definitions of a local variable (i.e. `GT_LCL_FLD` nodes that do not define the entire variable). - GTF_VAR_DEATH is set to indicate the last uses. - The bitvector implementation is abstracted and can be changed to a variable sized set. #### Notes The liveness analysis is a simple, traditional liveness analysis. Once complete, the bbLiveIn and bbLiveOut sets are available on each BasicBlock, and the data flow bits are set on each GenTree node that represents a lclVar reference, to indicate whether it is a use, a def, or an update, and whether it is a last use. The size of the bitVector is the number of tracked variables, and can be changed with different JIT build options, though not currently dynamically. ### SSA - Static single assignment (SSA) form is constructed in a traditional manner. - The SSA names are recorded on the lclVar references. - Each lclVar has a table of its SSA names with their defining tree and BasicBlock - The JIT currently requires that the IR be maintained in conventional SSA form, as there is no "out of SSA" translation - i.e. the operands of a phi node may not interefere #### Notes The SSA implementation constructs pruned SSA, using the liveness information. It doesn't change the lclNum of the lclVar nodes, but simply annotates the node with the SSA name. That is, an SSA name can be considered to be the pair formed by the lclNum and the SSA name. The JIT has no "out of SSA" translation, so all optimizations must preserve conventional SSA form – that is they may not move references to an SSA name across a PHI node that references it. ### Value Numbering - Value numbering utilizes SSA for lclVar values, but also performs value numbering of expression trees. - Two nodes with the same value number compute the same value - Used for CSE and for array bounds check elimination - It takes advantage of type safety by not invalidating the value number for field references with a heap write, unless the write is to the same field. - This is done by tagging indirections with a chain of FieldSeqNodes that describe the field being referenced at each level, such that the final expression has the chain of fields being accessed. - The IR nodes are annotated with the value numbers (shown as $<vn> in the dump), which are indexes into a type-specific value number store. - Value numbering traverses the trees, performing symbolic evaluation of many operations. #### Notes The RyuJIT value numbering implementation is somewhat unusual in that it takes advantage of the type safety of .NET by not invalidating the value number for heap-based field references by an arbitrary heap write, unless the write is to the same field. While this doesn't give the full fidelity of alias-based analysis, it is quite effective. This is done by tagging indirections with a chain of descriptors for the fields referenced at each level of indirection below the current node. In this way, each node has the full chain of fields that it references. Value numbering performs symbolic evaluation of many operations, and can therefore tag equivalent expressions with the same value number. This is used by all of the front-end optimizations. ## RyuJIT Initial Phases ### Inlining - The inliner is the first phase after the importer - It examines the signature and IL for the candidate methods, extracting characteristics that it uses to estimate viability and profitability - It then imports the IL for the candidate, producing IR - This is inserted at the call site, if successful - This phase has been undergoing significant refactoring and enhancement: - See [inlining plans](inlining-plans.md) #### Notes The inliner re-invokes the importer for each method that is considered a suitable candidate. Along the way, it may determine that the method cannot, or should not, be inlined, at which case it abandons the constructed IR, and leaves the callsite as-is. Otherwise, it inserts the newly created IR at the callsite, adds the local variables of the called method to the callee, and fixes up the arguments and returns. This phases has recently been significantly refactored, and enhancements are in progress. There is a design document online that describes the overall plan. ### Morph - This phase is responsible for preparing the IR for optimization and code generation: - Struct promotion (scalar replacement) breaks down value types into their constituent fields if conditions are met - The IR is traversed to determine which lclVars have their address taken - Note that this requires a contextual walk, as it is the parent of a lclVar that determines whether it is a use, def or address - Morph Blocks normalizes the graph - Expanding and transforming array and field references, block copies and assignments, and doing simple optimizations - It is a complicating issue that Morph does both transformations necessary for correctness, as well as optimizing transformations ### Flowgraph analysis - Sets the predecessors of each block - Must be kept valid after this phase. - Computes reachability and dominators - These may be invalidated by changes to the flowgraph. - Sets edge and block weights - Using profile information if available; otherwise heuristically set - Identifies and normalizes loops - Transforms while loops to "do while" - Performs loop cloning and unrolling - Loops may be invalidated, but must be marked as such. ### LclVar Sorting and Tree Ordering - lvaMarkLocalVars() - Set reference counts, sort and select for tracking - Execution order within a statement is set by fgSetBlockOrder() - Canonical postorder traversal of the nodes - Execution order is made concrete by adding gtNext/gtPrev links - Must also correspond with canonical order: "Left to right" except for binary operators with GTF_REVERSE_OPS flag - If op1 has no side-effects, a simple cost analysis is done to determine when to reverse the order of binary operands - A GTF_REVERSE_OPS flag on an assignment indicates that the rhs (op2) should be evaluated before the target address (if any) on the lhs (op1) is evaluated. ### Tree Order - Initially, expression nodes are linked only via parent-child links (uni-directional) - The consuming node (parent) has pointers to the nodes that produce its input operands (children) - Execution order is implicit - Operands are evaluated in order - Unless the GTF_REVERSE_OPS flag is set ### RyuJIT IR - Before ordering - The earlier IR diagram shows the IR with only the parent/child links - After ordering (`fgSetBlockOrder()`): - The execution order *within a statement* is specified by the `gtNext` and `gtPrev` links ![RyuJIT IR Overview](images/ryujit-ir-ordered.png) #### Notes This is the same diagram as before, but with additional links to indicate execution order. The statements have a link to the first node in the list, and each node has a link to its previous and next node in the linear order. ### Linear IR (LIR) - After Ordering, IR expression nodes have both parent-child links as well as execution order links (gtPrev and gtNext) - The execution order no longer represents a canonical traversal of the parent -> child links - In LIR, statements are replaced with GT_IL_OFFSET nodes to allow mapping back to the incoming IL - All the nodes for a `BasicBlock` are in a single linked-list ![RyuJIT LIR](images/ryujit-lir.png) ## RyuJIT Front-End ### Loop Recognition and Transformation - Identifies simple loops - Performs loop cloning and unrolling ### Early Propagation - Propagation of array lengths and type information - Done after loop recognition but before loop hoisting ### Loop Optimizations - Traverses loops outer-to-inner, hoisting expressions that - Have not been marked GTF_DONT_CSE - Have no side-effects - Don't raise exceptions, OR occur before any side-effects - Have a valid value number and are invariant: - Constants - LclVars defined outside the loop - Nodes whose children are invariant ### Copy Propagation - Walks each block in the graph in dominator-first order - When it encounters a variable with the same VN as a previously live variable, it is replaced with that variable ### CSE & Assertion Propagation - Common Subexpression Elimination - Redundant expressions are identified by value number - If deemed profitable, they are evaluated to a new "temp" lclVar and then reused - Assertion Propagation - Propagate properties such as constant values and non-nullness ### Range Check Optimization - Traverse the IR looking for range checks, determining the check range - Constant or value number - Compute the range of the index value being checked: - Iterate over the def chains for the index - Mark recursive phis as dependent - Merge assertions from incoming values - This incorporates loop bound information - Check for overflow - Check that the chain is monotonic - Determine initial value for dependent phis - Eliminate checks where the range of the index is within the check range ## RyuJIT Back-End ### Rationalization - All GT_COMMA nodes are eliminated - All GT_ASG nodes become GT_STORE variants (e.g. GT_STORE_LCL_VAR) - All GT_ADDR nodes are eliminated (e.g. with GT_LCL_VAR_ADDR) ### IR Rationalization: Assignment and Address-of #### Assignment ##### Front-end IR ``` ┌──▌ lclVar V03 ──▌ = └──▌ lclVar V00 ``` ##### Rationalized IR ``` ┌──▌ lclVar V03 ──▌ st.lclVar V00 ``` #### Address-of ##### Front-end IR ``` ┌──▌ const 0 ├──▌ lclVarAddr V00 ├──▌ const 16 ──▌ initBlk ``` ##### Rationalized IR ``` ┌──▌ const 0 │ ┌──▌ lclVar V00 ├──▌ addr ├──▌ const 16 ──▌ initBlk ``` ### IR Rationalization: Commas #### Front-end IR ``` ▌ Statement (IL 0x093...0x09D) │ ┌──▌ lclVar long V09 │ ┌──▌ indir long │ │ ┌──▌ lclFld float V10 [+0] │ │ ┌──▌ addr byref │ │ ├──▌ lclVar long V101 │ │ ┌──▌ = long │ │ ├──▌ lclVar long V101 │ ├──▌ comma long └──▌ = long ``` ##### Rationalized IR ``` ▌ Statement (IL 0x093...0x09D) │ ┌──▌ lclVar long V09 │ │ { ▌ stmtExpr (embedded) │ │ { │ ┌──▌ &lclFld V10 [+0] │ │ { └──▌ st.lclVar long V101 │ ├──▌ lclVar long V101 └──▌ storeIndir long ``` #### Notes This needs to be updated, as we no longer have embedded statements. ### Lowering - GenTree nodes are split or transformed - Make any necessary flowgraph changes - Switch statements - Block copies - Expose all register requirements - Number of registers used, defined, and required for "internal use" - Identify nodes that are "contained" - This includes constants and addressing modes - Code generation for these nodes is deferred to the parent node ### Linear Scan Register Allocator - Builds Intervals - Each represents a lclVar or expression - Constructs an ordered list of RefPositions - Ordered according to a weighted predecessor-first traversal of blocks - These are associated either with an Interval or a physical register - Traverses the RefPositions to allocate registers - Supports split intervals for lclVars, i.e. they can move between different registers and/or a stack location - Calculates the maximum number of spill temps required - Writes back the register assignments, and resolves register locations at block boundaries, inserting moves and splitting blocks as needed ### Code Generation - Determines frame layout - Traverses the blocks in layout order - Generates code for each node in execution order - InstrDescs - Updates the state of registers and variables, used to - Associate GC information with the generated code - Create debug scope info - Generates the prolog and epilog code ### Supporting Components - Instruction encoding: InstrDescs - Encodings are captured in various encoding tables instrs{tgt}.h (e.g. instrsxarch.h) - GC info: reports live GC references two ways - Untracked stack locations: initialized to null in prolog - Tracked lclVars: live ranges in registers or on stack - Debugger info - Mapping of MSIL offsets to native code offsets - Tracked on GenTree nodes, captured during Codegen, then written out at end (genIPmapping*) - Mapping of user locals to location (register or stack) – siVarLoc captures location, VarScopeDsc captures range - Exception handling: EHblkDsc for each exception handling region - Can be nested - Complicated! - Inhibits optimization of values that flow across EH edges ### Retargeting - Platforms: - x86-64 - Fully functional on Windows, Linux and OSX - x86 (32-bit) - Fully function on Windows - Linux support is underway - Arm64/Windows is nearly complete - Arm32 is using an older source base for the backend (look for #ifdef LEGACY_BACKEND), but the retargeting of RyuJIT is nearing completion for both Linux and Windows - Major porting considerations: - Encodings: instrsXXX.h, emitXXX.cpp and targetXXX.cpp - Translation: lowerXXX.cpp, codeGenXXX.cpp, simdcodegenXXX.cpp, and unwindXXX.cpp - ABI (including calling convention): primarily Importer, Morph, Lowering and Codegen ### Instruction Encoding - The instrDesc is the data structure used for encoding - It is initialized with the opcode bits, and has fields for immediates and register numbers. - instrDescs are collected into groups - A label may only occur at the beginning of a group - The emitter is called to: - Create new instructions (instrDescs), during CodeGen - Emit the bits from the instrDescs after CodeGen is complete - Update Gcinfo (live GC vars & safe points) ### Sample Feature - Add support for popcnt "intrinsic" to x86-64 RyuJIT: - C# code: ``` public static int PopCount(ulong bitVectorArg) { int count = 0; const int bitWidth = sizeof(ulong) * 8; ulong bitVector = bitVectorArg; for (int i = 0; i < bitWidth; i++) { count += ((int)bitVector & 1); bitVector >>= 1; } return count; } ``` - Encoding: F3 REX.W 0F B8 /r POPCNT r64, r/m64 #### Notes The sample I'm going to walk through implements support for pop count (counting the number of '1' bits in a 64-bit value). We're going to start by assuming that we have a method with a known signature that implements PopCount. Here's the implementation we're going to use. It simply takes the input value, and keeps anding with one, and then shifting right. We're first going to simply recognize the name and signature, and replace the method call with a simple PopCnt IR node. Then, we're going to add code to pattern match the loop. Note that this is not necessarily the approach one would take, because the loop is quite an inefficient implementation - but the alternative (sequence of ands, ors and multiplies) creates a complex tree that would be problematic to recognize for our simple example. ### Sample Code - I've implemented this sample and checked it into my fork of the coreclr sources: https://github.com/caroleidt/coreclr/tree/PopCntSample - There are two commits - The first one does a simple name match of the PopCount method - The second one does a pattern match of the loop ### Getting Dumps ``` set COMPlus_JitDump=Main set COMPlus_JitDumpAscii=0 set COMPlus_JitDumpFg=Main set COMPlus_JitDumpFgDot=1 set COMPlus_JitDumpFgFile=Main set COMPlus_JitDumpFgPhase=OPT-CHK ``` {BinaryDir}\CoreRun.exe PopCount.exe 1122334455667788 > jitdump.out.0 ![RyuJIT Flowgraph](images/ryujit-flowgraph.png) #### Notes The first thing we're going to do is to take a look at the IR for the sample. We have a simple Main method that reads in an unsigned long value, and calls the PopCount method. We set a bunch of environment variables to get some useful dumps. The first says that we're want the dump for the method named "Main". We are also going to set the Ascii option to zero, to get a slightly better tree dump. We also want to dump the flowgraph in dot format, to a file named Main.dot, and we want to do it after the range check optimization phase, since that's where we're eventually going to put our pattern matching code. The graph to the right is the result of running the dot file through graphviz. ### PopCnt Sample Overview I added/changed some foundational stuff: - gentree.h - GenTree::IsOne() (this is now available as `GenTree::IsIntegralConst(1)`) - compiler.h, optimizer.cpp: - optIsSimpleLoop(int loopNum) - bool optIsTestEvalIntoTemp(GenTreePtr test, GenTreePtr* newTest); ( was optIsLoopTestEvalIntoTemp) - unsigned optIsLclVarUpdateTree(GenTreePtr tree, GenTreePtr* otherTree, genTreeOps *updateOper); Getting Ready - Set COMPlus_JitDump=Main - Set COMPlus_AltJit=* - Run and capture jitdump1.out - Examine the IR for the loop just prior to optCloneLoops Recognize "Intrinsic" (SampleStep1 shelveset) - View/compare shelveset changes: - gtlist.h: Add a new node, GT_POPCNT. It's unary. - instrsxarch.h: encoding - codegenxarch.cpp: generate instruction - importer.cpp: name recognition - set COMPlus_JitDump - Run & capture jitdump2.out, search for CountBits, then look at disassembly Add Pattern Recognition (SampleStep2 shelveset): - ifdef out the name recognition - Go back to jitdump1.out and look at IR just prior to optCloneLoops - Let's assume we're going to eventually add more than one instrinsic that implements a loop, so we'll add a method that looks for simple loops we can turn into intrinsics. - Unshelve SampleStep2: - Add optFindLoopIntrinsics() to compCompile after optOptimizeLoops() - compiler.h, compiler.cpp - Run & capture jitdump3.out, search for optCloneLoops ### Reference - The RyuJIT overview document is available [here](ryujit-overview.md) ## Backup ### COMPlus Variables - COMPlus_JitDump={method-list} – lots of info about what the JIT is doing - COMPlus_JitDisasm={method-list} – disassembly listing of each method - COMPlus_JitDiffableDasm – avoid printing pointer values that can change from one invocation to the next, so that the disassembly can be more easily diffed. - COMPlus_JITGCDump={method-list} – this dumps the GC information. - COMPlus_JitUnwindDump={method-list} – dumps the unwind tables. - COMPlus_JitEHDump={method-list} – dumps the exception handling tables. - COMPlus_JitTimeLogFile – a log file for timing information (dbg or chk builds) - COMPlus_JitTimeLogCsv – a log file for timing information in csv form (all builds) - {method-list} can be a space-separated list of method names or * for all methods ### IR Dump: Front-end Here is an example dump in tree order (shown with COMPlus_JitDumpAscii=0) ``` STMT00000 (IL ???... ???) [000067] -AC-G------- ▌ call help void HELPER.CORINFO_HELP_ARRADDR_ST [000047] ------------ arg0 ├──▌ lclVar ref V03 loc2 [000048] ------------ arg1 ├──▌ const int 0 [000063] -A---------- arg2 └──▌ box ref [000061] ------------ │ ┌──▌ lclVar ref V04 tmp0 [000062] -A---------- └──▌ comma ref [000049] ------------ │ ┌──▌ lclVar long V01 loc0 [000060] -A---------- └──▌ = long [000059] -------N---- └──▌ indir long [000057] ------------ │ ┌──▌ const long 8 [000058] ------------ └──▌ + byref [000056] ------------ └──▌ lclVar ref V04 tmp0 ``` ### IR Dump: Back-end - Here is the same statement just prior to code generation. Note that the nodes are printed in execution order, and the comma node has been eliminated. ``` ***** BB06, stmt 21 (top level) ( 49, 31) [000068] ------------ ▌ stmtExpr void (top level) (IL ???... ???) N199 ( 1, 1) [000047] ------------ │ ┌──▌ lclVar ref V03 loc2 u:3 rdi REG rdi RV $540 N201 ( 5, 4) [000281] DA--------L- arg0 SETUP │ ┌──▌ st.lclVar ref V11 tmp7 d:3 rcx (last use) REG rcx RV N203 ( 0, 0) [000288] ----------L- arg1 SETUP │ ├──▌ argPlace int REG NA $40 ( 8, 7) [000396] ------------ │ │ { ▌ stmtExpr void (embedded) (IL ???... ???) N205 ( 1, 1) [000056] ------------ │ │ { │ ┌──▌ lclVar ref V04 tmp0 u:3 rax REG rax RV $1cf N207 ( 2, 2) [000421] ------------ │ │ { │ ┌──▌ lea(b+8) byref REG NA N209 ( 3, 2) [000049] ----G------- │ │ { │ ├──▌ lclVar long (AX) V01 loc0 REG rcx $348 N211 ( 8, 7) [000397] ----G------- │ │ { └──▌ storeIndir long REG NA N213 ( 1, 1) [000061] ------------ │ │ ┌──▌ lclVar ref V04 tmp0 u:3 rax (last use) REG rax RV $1cf N215 ( 19, 15) [000285] DA--GO----L- arg2 SETUP │ ├──▌ st.lclVar ref V12 tmp8 d:3 r8 REG r8 RV N223 ( 1, 1) [000282] ------------ │ │ ┌──▌ lclVar ref V03 loc2 u:3 rdi REG rdi RV $540 N225 ( 1, 1) [000418] ------------ arg0 in rcx │ ├──▌ putarg_reg ref REG rcx N227 ( 3, 2) [000286] ------------ │ │ ┌──▌ lclVar ref V12 tmp8 u:3 r8 (last use) REG r8 RV $2d3 N229 ( 3, 2) [000419] ------------ arg2 in r8 │ ├──▌ putarg_reg ref REG r8 N231 ( 1, 1) [000048] ------------ │ │ ┌──▌ const int 0 REG rdx $40 N233 ( 1, 1) [000420] ------------ arg1 in rdx │ ├──▌ putarg_reg int REG rdx N241 ( 49, 31) [000067] -ACXGO------ └──▌ call help void HELPER.CORINFO_HELP_ARRADDR_ST $1d1 ``` #### Notes This needs to be updated, as we no longer have statements in back-end. ### Phase Transitions - Flowgraph analysis - BasicBlock links, reachability, dominators, edge weights, loop identification - IR Sorting and Ordering - LclVar reference counts, evaluation order - Rationalization - Eliminate context sensitive nodes - Lowering - Expose all register requirements and control flow
# RyuJIT Tutorial ## .NET Dynamic Code Execution ### .NET Runtime - An implementation of the Common Language Infrastructure [ECMA 335] - Supports multiple languages, including C#, F# and VB - RyuJIT is the "next generation" just in time compiler for .NET - Sources are at https://github.com/dotnet/runtime/tree/main/src/coreclr/jit #### Notes For context, the .NET runtime has been around since about the turn of the millennium. It is a virtual machine that supports the execution of a number of languages, primarily C#, Visual Basic, and F#. It has been standardized through Ecma and then ISO. There have been a number of implementations of the CLI, the dominant one being installed with the Windows operating system. That implementation has served as the basis for a standalone implementation that is now available in open source. RyuJIT is the re-architected JIT for .NET. ### Why "RyuJIT"? - Ryujin is a Japanese Sea Dragon We wanted something with "JIT" in the name, and the idea of a dragon came to mind because of the Dragon book that we all know and love. So – we just adapted the name of the Japanese sea dragon, Ryujin. ### JIT History - Code base pre-dates .NET - Designed to support x86 only - Evolved, enhanced and extended over time & still evolving - Primary RyuJIT changes - Front-end: value numbering, SSA - Back-end: linear scan register allocation, lowering #### Notes The original JIT was developed for a precursor to .NET, around the turn of the millennium. It was developed quickly, and was designed for x86 only. It has evolved over time, and is still evolving. The front-end has been extended to support SSA and value numbering, while the original register allocation and code generation phases have been fully replaced. ### Primary design considerations - High compatibility bar with previous JITs - Support and enable good runtime performance - Ensure good throughput via largely linear-order optimizations and transformations, along with limits for those that are inherently super-linear. - Enable a range of targets and scenarios. #### Notes First and foremost, the evolution of RyuJIT is constrained by the requirement to maintain compatibility with previous JITs. This is especially important for a just in time compiler that has such a huge installed base. We need to ensure that the behavior of existing programs will be preserved across updates. Sometimes this even means adding "quirks" to ensure that even invalid programs continue to behave the same way. Beyond that, the objective is to get the best possible performance with a minimum of compile time. Both the design of the RyuJIT IR, as well as constraints on the scope of optimizations, are aimed at keeping as close to a linear compile time as possible. Finally, while the original JIT was quite x86-oriented, we now have a broader set of platforms to support, as well as an ever-widening variety of application scenarios. ### Execution Environment & External Interface - RyuJIT provides just-in-time compilation for the .NET runtime (aka EE or VM or CLR) - Supports "tiering", where code can be compiled with most optimizations turned off (Tier 0), and the VM can later request the same method be recompiled with optimizations turned on (Tier 1). - ICorJitCompiler – this is the interface that the JIT compiler implements, and includes compileMethod (corjit.h) - ICorJitInfo – this is the interface that the EE implements to provide type & method info - Inherits from ICorDynamicInfo (corinfo.h) #### Notes In this talk and elsewhere, you will see the .NET runtime often refered to as the VM, for virtual machine, the EE, for execution engine, or the CLR, for common language runtime. They are largely used interchangeably, though some might argue the terms have subtle differences. .NET is somewhat unique in that it currently has a single-tier JIT – no interpreter, and no re-optimizing JIT. While an interpreter exists, and experimentation has been done on re-jitting, the current model remains single-tier. The JIT and the VM each implement an interface that abstracts the dependencies they share. The VM invokes methods on the ICorJitCompiler interface to compile methods, and the JIT calls back on the ICorJitInfo interface to get information about types and methods. ### RyuJIT High-Level Overview ![RyuJIT IR Overview](images/ryujit-high-level-overview.png) #### Notes This is the 10,000 foot view of RyuJIT. It takes in MSIL (aka CIL) in the form of byte codes, and the Importer phase transforms these to the intermediate representation used in the JIT. The IR operations are called "GenTrees", as in "trees for code generation". This format is preserved across the bulk of the JIT, with some changes in form and invariants along the way. Eventually, the code generator produces a low-level intermediate called InstrDescs, which simply capture the instruction encodings while the final mappings are done to produce the actual native code and associated tables. ### RyuJIT Phases ![RyuJIT Phases](images/ryujit-phase-diagram.png) #### Notes This is the more detailed view, and shows all of the significant phases of RyuJIT. The ones in green are responsible for creating and normalizing the IR and associated data structures. The phases in orange are the optimization phases, and the phases in purple are the lower-level, back-end phases. ### Initial Phases of RyuJIT ![RyuJIT Initial Phases](images/ryujit-initial-phases.png) - Importer: - initialize the local variable table and scan the MSIL to form BasicBlocks - Create the IR from the MSIL - May create GT_COMMA to enforce order, or GT_QMARK for conditional expressions - Inlining: Consider each call site, using state machine to estimate cost - Morph - Struct promotion: scalar replacement of fields - Mark address-exposed locals - Morph blocks – localized simple optimizations and normalization - Eliminate Qmarks – turn into control flow #### Notes The initial phases of RyuJIT set up the IR in preparation for the optimization phases. This includes importing the IL, that is, producing GenTrees IR from the incoming MSIL, inlining methods when considered profitable, normalizing the representation, analyzing the flowgraph, specifying the execution order and identifying the important local variables for optimization. ### Optimization Phases of RyuJIT ![RyuJIT Optimization Phases](images/ryujit-optimization-phases.png) - SSA and Value Numbering Optimizations - Dataflow analysis, SSA construction and Value numbering - Loop Invariant Code Hoisting – outer to inner - Copy Propagation – dominator-based path traversal, replacing variables with same VN (preserves CSSA) - Common Subexpression Elimination (CSE): identify computations with same VN, evaluate to a new temporary variable, and reuse - Assertion Propagation: uses value numbers to propagate properties such as non-nullness and in-bounds indices, and make transformations accordingly. - Eliminate array index range checks based on value numbers and assertions #### Notes The optimization phases of RyuJIT are based on liveness analysis, SSA and value numbering. These are used to perform loop invariant code hoisting, copy propagation, common subexpression elimination, assertion propagation, and range check elimination. SSA is used to uniquely identify the values of lclVars, while value numbering is used to identify trees that compute the same value for a given execution. ### Back-end Phases of RyuJIT ![RyuJIT Backend Phases](images/ryujit-backend-phases.png) - Rationalization: eliminate "parental context" in trees - Not really strictly "back-end" but required by back-end) - Lowering: fully expose control flow and register requirements - Register allocation: Linear scan with splitting - Code Generation: - Traverse blocks in layout order, generating code (InstrDescs) - Generate prolog & epilog, as well as GC, EH and scope tables #### Notes While the phases up to this point are largely target-independent, the back-end is responsible for performing the transformations necessary to produce native code. The Rationalization pass is intended to be a transitional phase that takes the existing IR, and turns it into a form that is easier to analyze and reason about. Over time, we expect that this IR form will be used across the JIT. The next phase, Lowering, is responsible for fully exposing the control flow and register requirements. This allows the register allocation to be performed on a rather more abstract IR than usually used for that purpose. It then annotates the IR with the register numbers, and the code generator walks the IR in linear execution order to produce the instructions. These are kept in a low-level format called InstrDescs which simply allow the emitter to fixup relative addresses and produce native code and tables. ## RyuJIT IR ### Throughput-Oriented IR - Trees instead of tuples - HIR Form: - Evaluation order implicit - LIR Form: - Evaluation order explicit via gtNext, gtPrev links - JIT must preserve side-effect ordering - Implicit single-def, single-use dataflow - Limit on the number of "tracked" variables - SSA, liveness - Single (though modal) IR, with limited phase-oriented IR transformations - Historically oriented toward a small working set ### RyuJIT IR ![RyuJIT IR Overview](images/ryujit-ir-overview.png) #### Notes The RyuJIT IR can be described at a high level as follows: - The `Compiler` object is the primary data structure of the JIT. Each method is represented as a doubly-linked list of `BasicBlock` objects. The Compiler object points to the head of this list with the `fgFirstBB` link, as well as having additional pointers to the end of the list, and other distinguished locations. - `BasicBlock` nodes contain a list of doubly-linked statements with no internal control flow - The `BasicBlock` also contains the dataflow information, when available. - `GenTree` nodes represent the operations and statement of the method being compiled. - It includes the type of the node, as well as value number, assertions, and register assignments when available. - `LclVarDsc` represents a local variable, argument or JIT-created temp. It has a `gtLclNum` which is the identifier usually associated with the variable in the JIT and its dumps. The `LclVarDsc` contains the type, use count, weighted use count, frame or register assignment etc. These are often referred to simply as "lclVars". They can be tracked (`lvTracked`), in which case they participate in dataflow analysis, and have a different index (`lvVarIndex`) to allow for the use of dense bit vectors. Only non-address-taken lclVars participate in liveness analysis, though aliased variables can participate in value numbering. ### GenTrees - A `BasicBlock` is a list of statements (`Statement`) - It has a pointer to the root expression for the statement - Statement nodes share the same base type as expression nodes, though they are really distinct IR objects - Each `Statement` node points to its root expression tree - Each node points to its operands (children), and contains: - Oper (the operator for the expression, e.g. GT_ASG, GT_ADD, …) - Type (the evaluation type, e.g. GT_INT, GT_REF, GT_STRUCT) - They are not always strictly expressions - Comma nodes are inserted to allow creation of (multi-use) temps while preserving ordering constraints #### Notes The GenTree is the primary data structure of the JIT. It is used to represent the expressions for each statement. Some distinguishing features of this IR are that, while an operation has links to its operands, they do not have a link to their parent expression. Furthermore, during the initial phases of the JIT, the nodes are only ordered implicitly by the canonical traversal order of trees. The initial construction of the IR ensures that any ordering dependencies are obeyed by the canonical traversal order, and any subsequent optimizations must ensure that any visible ordering constraints are obeyed. ### GenTrees Sample ``` ▌ Statement (top level) (IL 0x01D │ ┌──▌ const int 1 │ ┌──▌ & int │ │ └──▌ lclVar int V08 │ ┌──▌ + int │ │ └──▌ lclVar int V06 └──▌ = int └──▌ lclVar int V06 ``` From the example we'll look at later: count = count + (bits & 1) #### Notes This is the dump of an expression tree for a single statement. It takes a little while to get used to reading the expression tree dumps, which are printed with the children indented from the parent, and, for binary operators, with the first operand below the parent and the second operand above, at least in the front-end. This statement is extracted from the PopCount example we're going to walk through later. V06 is the local variable with lclNum 6, which is the "count" variable in the source. V08 is the "bits" variable. One thing to notice about this is that the context of the lclVar nodes is not clear without examining their parent. That is, two of the lclVar nodes here are uses, while the bottom one is a definition (it is the left-hand-side of the assignment above it). ### GenTrees Evolution - The IR is being evolved to improve the ability to analyze and reason about it - Ensure that expression tree edges reflect data flow from child to parent - Eliminate GT_ASG: data flows from rhs to lhs "over" the parent (need parent context to determine whether a node is a use or a def) - Eliminate GT_ADDR: Need parent context to analyze child - Eliminate GT_COMMA: strictly an ordering constraint for op1 relative to op2 and parent - Over time we expect to Rationalize the IR during or immediately after the IR is imported from the MSIL byte codes. #### Notes The GenTrees IR is being evolved to address the context issue mentioned in the last slide. We would like to ensure that all data flows are from child to parent. Examples where this is currently violated are in the assignment, or GT_ASG node, where the data flows from the right hand side of the assignment "over" the parent assignment, to the value being defined on the left hand side. Similarly, the child of a GT_ADDR node may appear to be a use or a definition of the value, when instead its address is being taken. Finally, the comma node is inserted in the tree purely as an ordering constraint to enable a non-flow computation or store of a temporary variable, to be inserted in the midst of the evaluation of an expression. The Rationalizer phase, which transforms these constructs to a more rational form, is currently run just prior to the back-end, but over time we expect to move it much earlier. ### GenTrees: Two modes - In tree-order mode (front-end) - Aka HIR - IR nodes are linked only from parent to child initially - After loop transformations, and before the main optimization phases, the IR nodes are sequenced in execution order with `gtNext` and `gtPrev` links. - After this point the execution order must be maintained, and must be consistent with a canonical tree walk order. - In linear-order mode (back-end) - Aka LIR - Execution order links (`gtPrev` and `gtNext`) are the definitive specification of execution order (no longer derivable from a tree walk) - Each `BasicBlock` contains a single linked list of nodes - `Statement` nodes are eliminated - `GT_IL_OFFSET`nodes convey source (IL) mapping info #### Notes There are a number of modalities in the RyuJIT IR, but one of the more significant is that when the IR is first imported, the nodes are linked only from parent to child. Later in the JIT, the execution order is made explicit by the addition of gtPrev and gtNext links on each node. This eases analysis of the IR, but also makes updates a bit more cumbersome. ### IR Example: Array References ##### After Import ``` ┌──▌ lclVar V03 ──▌ [] └──▌ lclVar V00 ``` ##### Front-end - Computation Exposed for Opt ``` ┌──▌ indir │ │ ┌──▌ const 16 │ └──▌ + │ │ ┌──▌ const 2 │ │ ┌──▌ << │ │ │ └──▌ lclVar V03 │ └──▌ + │ └──▌ lclVar V00 ──▌ comma └──▌ arrBndsChk ├──▌ arrLen │ └──▌ lclVar V00 └──▌ lclVar V03 ``` ##### Backend - Execution order - Target-dependent addressing modes ``` ┌──▌ lclVar V00 ┌──▌ lea(b+8) ┌──▌ indir ├──▌ lclVar V03 ──▌ arrBndsChk ┌──▌ lclVar V00 ├──▌ lclVar V03 ┌──▌ lea(b+(i*4)+16) ──▌ indir ``` #### Notes This example shows the evaluation of the IR from the importer, through the front-end and finally the backend. Initially, an array reference is imported as a GT_INDEX node, represented here by the double brackets, with the array object (V00) and the index (V03) as its children. In order to optimize this, we want to be able to expose the full addressing expression, as well as the bounds check. Note that the bounds check is inserted below a comma node. This allows this transformation to be made "in place". Also, note that the execution order is generally "left to right" where the "left" node of a binary operator is actually shown below it in tree order. On the right hand side, you can see that the addressing expression has been transformed to a "load effective address", and the array bounds check has been split. In the backend, although the tree links are still shown, we dump the graphs in execution order, as that is the primary view of the IR in the backend. ### Dataflow - There are two first-class entities in the JIT: - Local variables - These include some compiler-generated temps - These can have multiple definitions and uses - Tree nodes - Each node has a type, and if it is not a top-level node (i.e. the root of the statement tree), it defines a value - The value has exactly one use, by the parent node - The JIT also does some tracking of heap values via value numbering #### Notes The JIT only tracks the value of two kinds of entities: Local variables – including user-defined arguments and locals, as well as JIT-generated temps. These can have multiple definitions and uses. Tree nodes – these are always single-def, single-use The JIT also does some tracking of heap values. ### Dataflow Information - For throughput, the JIT limits the number of lclVars for which it computes liveness - These are the only lclVars that will be candidates for register allocation - These are also the lclVars for which GC ranges will be reported - Note that we have a precise GC model #### Notes The JIT limits the number of lclVars for which it computes liveness. The limit is currently 512 for most targets, which is sufficient to include all of the lclVars for most methods. These are the only lclVars that will participate in optimization or register allocation. A lclVar whose address has been taken will never be tracked. They are also the lclVars for which GC ranges will be reported. Although the CLR has a precise GC model, the JIT can either report ranges over which a location (i.e. a register or stack location) contains a GC variable, or report a location as a GC value for the full method scope, and then ensure that its value either represents a valid heap location or null. ### Liveness Analysis - The live-in and live-out sets are captured in the bbLiveIn and bbLiveOut fields of the BasicBlock. - The GTF_VAR_DEF flag is set on a lclVar GenTree node that is a definition. - The GTF_VAR_USEASG flag is set (in addition to the GTF_VAR_DEF flag) on partial definitions of a local variable (i.e. `GT_LCL_FLD` nodes that do not define the entire variable). - GTF_VAR_DEATH is set to indicate the last uses. - The bitvector implementation is abstracted and can be changed to a variable sized set. #### Notes The liveness analysis is a simple, traditional liveness analysis. Once complete, the bbLiveIn and bbLiveOut sets are available on each BasicBlock, and the data flow bits are set on each GenTree node that represents a lclVar reference, to indicate whether it is a use, a def, or an update, and whether it is a last use. The size of the bitVector is the number of tracked variables, and can be changed with different JIT build options, though not currently dynamically. ### SSA - Static single assignment (SSA) form is constructed in a traditional manner. - The SSA names are recorded on the lclVar references. - Each lclVar has a table of its SSA names with their defining tree and BasicBlock - The JIT currently requires that the IR be maintained in conventional SSA form, as there is no "out of SSA" translation - i.e. the operands of a phi node may not interefere #### Notes The SSA implementation constructs pruned SSA, using the liveness information. It doesn't change the lclNum of the lclVar nodes, but simply annotates the node with the SSA name. That is, an SSA name can be considered to be the pair formed by the lclNum and the SSA name. The JIT has no "out of SSA" translation, so all optimizations must preserve conventional SSA form – that is they may not move references to an SSA name across a PHI node that references it. ### Value Numbering - Value numbering utilizes SSA for lclVar values, but also performs value numbering of expression trees. - Two nodes with the same value number compute the same value - Used for CSE and for array bounds check elimination - It takes advantage of type safety by not invalidating the value number for field references with a heap write, unless the write is to the same field. - This is done by tagging indirections with a chain of FieldSeqNodes that describe the field being referenced at each level, such that the final expression has the chain of fields being accessed. - The IR nodes are annotated with the value numbers (shown as $<vn> in the dump), which are indexes into a type-specific value number store. - Value numbering traverses the trees, performing symbolic evaluation of many operations. #### Notes The RyuJIT value numbering implementation is somewhat unusual in that it takes advantage of the type safety of .NET by not invalidating the value number for heap-based field references by an arbitrary heap write, unless the write is to the same field. While this doesn't give the full fidelity of alias-based analysis, it is quite effective. This is done by tagging indirections with a chain of descriptors for the fields referenced at each level of indirection below the current node. In this way, each node has the full chain of fields that it references. Value numbering performs symbolic evaluation of many operations, and can therefore tag equivalent expressions with the same value number. This is used by all of the front-end optimizations. ## RyuJIT Initial Phases ### Inlining - The inliner is the first phase after the importer - It examines the signature and IL for the candidate methods, extracting characteristics that it uses to estimate viability and profitability - It then imports the IL for the candidate, producing IR - This is inserted at the call site, if successful - This phase has been undergoing significant refactoring and enhancement: - See [inlining plans](inlining-plans.md) #### Notes The inliner re-invokes the importer for each method that is considered a suitable candidate. Along the way, it may determine that the method cannot, or should not, be inlined, at which case it abandons the constructed IR, and leaves the callsite as-is. Otherwise, it inserts the newly created IR at the callsite, adds the local variables of the called method to the callee, and fixes up the arguments and returns. This phases has recently been significantly refactored, and enhancements are in progress. There is a design document online that describes the overall plan. ### Morph - This phase is responsible for preparing the IR for optimization and code generation: - Struct promotion (scalar replacement) breaks down value types into their constituent fields if conditions are met - The IR is traversed to determine which lclVars have their address taken - Note that this requires a contextual walk, as it is the parent of a lclVar that determines whether it is a use, def or address - Morph Blocks normalizes the graph - Expanding and transforming array and field references, block copies and assignments, and doing simple optimizations - It is a complicating issue that Morph does both transformations necessary for correctness, as well as optimizing transformations ### Flowgraph analysis - Sets the predecessors of each block - Must be kept valid after this phase. - Computes reachability and dominators - These may be invalidated by changes to the flowgraph. - Sets edge and block weights - Using profile information if available; otherwise heuristically set - Identifies and normalizes loops - Transforms while loops to "do while" - Performs loop cloning and unrolling - Loops may be invalidated, but must be marked as such. ### LclVar Sorting and Tree Ordering - lvaMarkLocalVars() - Set reference counts, sort and select for tracking - Execution order within a statement is set by fgSetBlockOrder() - Canonical postorder traversal of the nodes - Execution order is made concrete by adding gtNext/gtPrev links - Must also correspond with canonical order: "Left to right" except for binary operators with GTF_REVERSE_OPS flag - If op1 has no side-effects, a simple cost analysis is done to determine when to reverse the order of binary operands - A GTF_REVERSE_OPS flag on an assignment indicates that the rhs (op2) should be evaluated before the target address (if any) on the lhs (op1) is evaluated. ### Tree Order - Initially, expression nodes are linked only via parent-child links (uni-directional) - The consuming node (parent) has pointers to the nodes that produce its input operands (children) - Execution order is implicit - Operands are evaluated in order - Unless the GTF_REVERSE_OPS flag is set ### RyuJIT IR - Before ordering - The earlier IR diagram shows the IR with only the parent/child links - After ordering (`fgSetBlockOrder()`): - The execution order *within a statement* is specified by the `gtNext` and `gtPrev` links ![RyuJIT IR Overview](images/ryujit-ir-ordered.png) #### Notes This is the same diagram as before, but with additional links to indicate execution order. The statements have a link to the first node in the list, and each node has a link to its previous and next node in the linear order. ### Linear IR (LIR) - After Ordering, IR expression nodes have both parent-child links as well as execution order links (gtPrev and gtNext) - The execution order no longer represents a canonical traversal of the parent -> child links - In LIR, statements are replaced with GT_IL_OFFSET nodes to allow mapping back to the incoming IL - All the nodes for a `BasicBlock` are in a single linked-list ![RyuJIT LIR](images/ryujit-lir.png) ## RyuJIT Front-End ### Loop Recognition and Transformation - Identifies simple loops - Performs loop cloning and unrolling ### Early Propagation - Propagation of array lengths and type information - Done after loop recognition but before loop hoisting ### Loop Optimizations - Traverses loops outer-to-inner, hoisting expressions that - Have not been marked GTF_DONT_CSE - Have no side-effects - Don't raise exceptions, OR occur before any side-effects - Have a valid value number and are invariant: - Constants - LclVars defined outside the loop - Nodes whose children are invariant ### Copy Propagation - Walks each block in the graph in dominator-first order - When it encounters a variable with the same VN as a previously live variable, it is replaced with that variable ### CSE & Assertion Propagation - Common Subexpression Elimination - Redundant expressions are identified by value number - If deemed profitable, they are evaluated to a new "temp" lclVar and then reused - Assertion Propagation - Propagate properties such as constant values and non-nullness ### Range Check Optimization - Traverse the IR looking for range checks, determining the check range - Constant or value number - Compute the range of the index value being checked: - Iterate over the def chains for the index - Mark recursive phis as dependent - Merge assertions from incoming values - This incorporates loop bound information - Check for overflow - Check that the chain is monotonic - Determine initial value for dependent phis - Eliminate checks where the range of the index is within the check range ## RyuJIT Back-End ### Rationalization - All GT_COMMA nodes are eliminated - All GT_ASG nodes become GT_STORE variants (e.g. GT_STORE_LCL_VAR) - All GT_ADDR nodes are eliminated (e.g. with GT_LCL_VAR_ADDR) ### IR Rationalization: Assignment and Address-of #### Assignment ##### Front-end IR ``` ┌──▌ lclVar V03 ──▌ = └──▌ lclVar V00 ``` ##### Rationalized IR ``` ┌──▌ lclVar V03 ──▌ st.lclVar V00 ``` #### Address-of ##### Front-end IR ``` ┌──▌ const 0 ├──▌ lclVarAddr V00 ├──▌ const 16 ──▌ initBlk ``` ##### Rationalized IR ``` ┌──▌ const 0 │ ┌──▌ lclVar V00 ├──▌ addr ├──▌ const 16 ──▌ initBlk ``` ### IR Rationalization: Commas #### Front-end IR ``` ▌ Statement (IL 0x093...0x09D) │ ┌──▌ lclVar long V09 │ ┌──▌ indir long │ │ ┌──▌ lclFld float V10 [+0] │ │ ┌──▌ addr byref │ │ ├──▌ lclVar long V101 │ │ ┌──▌ = long │ │ ├──▌ lclVar long V101 │ ├──▌ comma long └──▌ = long ``` ##### Rationalized IR ``` ▌ Statement (IL 0x093...0x09D) │ ┌──▌ lclVar long V09 │ │ { ▌ stmtExpr (embedded) │ │ { │ ┌──▌ &lclFld V10 [+0] │ │ { └──▌ st.lclVar long V101 │ ├──▌ lclVar long V101 └──▌ storeIndir long ``` #### Notes This needs to be updated, as we no longer have embedded statements. ### Lowering - GenTree nodes are split or transformed - Make any necessary flowgraph changes - Switch statements - Block copies - Expose all register requirements - Number of registers used, defined, and required for "internal use" - Identify nodes that are "contained" - This includes constants and addressing modes - Code generation for these nodes is deferred to the parent node ### Linear Scan Register Allocator - Builds Intervals - Each represents a lclVar or expression - Constructs an ordered list of RefPositions - Ordered according to a weighted predecessor-first traversal of blocks - These are associated either with an Interval or a physical register - Traverses the RefPositions to allocate registers - Supports split intervals for lclVars, i.e. they can move between different registers and/or a stack location - Calculates the maximum number of spill temps required - Writes back the register assignments, and resolves register locations at block boundaries, inserting moves and splitting blocks as needed ### Code Generation - Determines frame layout - Traverses the blocks in layout order - Generates code for each node in execution order - InstrDescs - Updates the state of registers and variables, used to - Associate GC information with the generated code - Create debug scope info - Generates the prolog and epilog code ### Supporting Components - Instruction encoding: InstrDescs - Encodings are captured in various encoding tables instrs{tgt}.h (e.g. instrsxarch.h) - GC info: reports live GC references two ways - Untracked stack locations: initialized to null in prolog - Tracked lclVars: live ranges in registers or on stack - Debugger info - Mapping of MSIL offsets to native code offsets - Tracked on GenTree nodes, captured during Codegen, then written out at end (genIPmapping*) - Mapping of user locals to location (register or stack) – siVarLoc captures location, VarScopeDsc captures range - Exception handling: EHblkDsc for each exception handling region - Can be nested - Complicated! - Inhibits optimization of values that flow across EH edges ### Retargeting - Platforms: - x86-64 - Fully functional on Windows, Linux and OSX - x86 (32-bit) - Fully function on Windows - Linux support is underway - Arm64/Windows is nearly complete - Arm32 is using an older source base for the backend (look for #ifdef LEGACY_BACKEND), but the retargeting of RyuJIT is nearing completion for both Linux and Windows - Major porting considerations: - Encodings: instrsXXX.h, emitXXX.cpp and targetXXX.cpp - Translation: lowerXXX.cpp, codeGenXXX.cpp, simdcodegenXXX.cpp, and unwindXXX.cpp - ABI (including calling convention): primarily Importer, Morph, Lowering and Codegen ### Instruction Encoding - The instrDesc is the data structure used for encoding - It is initialized with the opcode bits, and has fields for immediates and register numbers. - instrDescs are collected into groups - A label may only occur at the beginning of a group - The emitter is called to: - Create new instructions (instrDescs), during CodeGen - Emit the bits from the instrDescs after CodeGen is complete - Update Gcinfo (live GC vars & safe points) ### Sample Feature - Add support for popcnt "intrinsic" to x86-64 RyuJIT: - C# code: ``` public static int PopCount(ulong bitVectorArg) { int count = 0; const int bitWidth = sizeof(ulong) * 8; ulong bitVector = bitVectorArg; for (int i = 0; i < bitWidth; i++) { count += ((int)bitVector & 1); bitVector >>= 1; } return count; } ``` - Encoding: F3 REX.W 0F B8 /r POPCNT r64, r/m64 #### Notes The sample I'm going to walk through implements support for pop count (counting the number of '1' bits in a 64-bit value). We're going to start by assuming that we have a method with a known signature that implements PopCount. Here's the implementation we're going to use. It simply takes the input value, and keeps anding with one, and then shifting right. We're first going to simply recognize the name and signature, and replace the method call with a simple PopCnt IR node. Then, we're going to add code to pattern match the loop. Note that this is not necessarily the approach one would take, because the loop is quite an inefficient implementation - but the alternative (sequence of ands, ors and multiplies) creates a complex tree that would be problematic to recognize for our simple example. ### Sample Code - I've implemented this sample and checked it into my fork of the coreclr sources: https://github.com/caroleidt/coreclr/tree/PopCntSample - There are two commits - The first one does a simple name match of the PopCount method - The second one does a pattern match of the loop ### Getting Dumps ``` set COMPlus_JitDump=Main set COMPlus_JitDumpAscii=0 set COMPlus_JitDumpFg=Main set COMPlus_JitDumpFgDot=1 set COMPlus_JitDumpFgFile=Main set COMPlus_JitDumpFgPhase=OPT-CHK ``` {BinaryDir}\CoreRun.exe PopCount.exe 1122334455667788 > jitdump.out.0 ![RyuJIT Flowgraph](images/ryujit-flowgraph.png) #### Notes The first thing we're going to do is to take a look at the IR for the sample. We have a simple Main method that reads in an unsigned long value, and calls the PopCount method. We set a bunch of environment variables to get some useful dumps. The first says that we're want the dump for the method named "Main". We are also going to set the Ascii option to zero, to get a slightly better tree dump. We also want to dump the flowgraph in dot format, to a file named Main.dot, and we want to do it after the range check optimization phase, since that's where we're eventually going to put our pattern matching code. The graph to the right is the result of running the dot file through graphviz. ### PopCnt Sample Overview I added/changed some foundational stuff: - gentree.h - GenTree::IsOne() (this is now available as `GenTree::IsIntegralConst(1)`) - compiler.h, optimizer.cpp: - optIsSimpleLoop(int loopNum) - bool optIsTestEvalIntoTemp(GenTreePtr test, GenTreePtr* newTest); ( was optIsLoopTestEvalIntoTemp) - unsigned optIsLclVarUpdateTree(GenTreePtr tree, GenTreePtr* otherTree, genTreeOps *updateOper); Getting Ready - Set COMPlus_JitDump=Main - Set COMPlus_AltJit=* - Run and capture jitdump1.out - Examine the IR for the loop just prior to optCloneLoops Recognize "Intrinsic" (SampleStep1 shelveset) - View/compare shelveset changes: - gtlist.h: Add a new node, GT_POPCNT. It's unary. - instrsxarch.h: encoding - codegenxarch.cpp: generate instruction - importer.cpp: name recognition - set COMPlus_JitDump - Run & capture jitdump2.out, search for CountBits, then look at disassembly Add Pattern Recognition (SampleStep2 shelveset): - ifdef out the name recognition - Go back to jitdump1.out and look at IR just prior to optCloneLoops - Let's assume we're going to eventually add more than one instrinsic that implements a loop, so we'll add a method that looks for simple loops we can turn into intrinsics. - Unshelve SampleStep2: - Add optFindLoopIntrinsics() to compCompile after optOptimizeLoops() - compiler.h, compiler.cpp - Run & capture jitdump3.out, search for optCloneLoops ### Reference - The RyuJIT overview document is available [here](ryujit-overview.md) ## Backup ### COMPlus Variables - COMPlus_JitDump={method-list} – lots of info about what the JIT is doing - COMPlus_JitDisasm={method-list} – disassembly listing of each method - COMPlus_JitDiffableDasm – avoid printing pointer values that can change from one invocation to the next, so that the disassembly can be more easily diffed. - COMPlus_JITGCDump={method-list} – this dumps the GC information. - COMPlus_JitUnwindDump={method-list} – dumps the unwind tables. - COMPlus_JitEHDump={method-list} – dumps the exception handling tables. - COMPlus_JitTimeLogFile – a log file for timing information (dbg or chk builds) - COMPlus_JitTimeLogCsv – a log file for timing information in csv form (all builds) - {method-list} can be a space-separated list of method names or * for all methods ### IR Dump: Front-end Here is an example dump in tree order (shown with COMPlus_JitDumpAscii=0) ``` STMT00000 (IL ???... ???) [000067] -AC-G------- ▌ call help void HELPER.CORINFO_HELP_ARRADDR_ST [000047] ------------ arg0 ├──▌ lclVar ref V03 loc2 [000048] ------------ arg1 ├──▌ const int 0 [000063] -A---------- arg2 └──▌ box ref [000061] ------------ │ ┌──▌ lclVar ref V04 tmp0 [000062] -A---------- └──▌ comma ref [000049] ------------ │ ┌──▌ lclVar long V01 loc0 [000060] -A---------- └──▌ = long [000059] -------N---- └──▌ indir long [000057] ------------ │ ┌──▌ const long 8 [000058] ------------ └──▌ + byref [000056] ------------ └──▌ lclVar ref V04 tmp0 ``` ### IR Dump: Back-end - Here is the same statement just prior to code generation. Note that the nodes are printed in execution order, and the comma node has been eliminated. ``` ***** BB06, stmt 21 (top level) ( 49, 31) [000068] ------------ ▌ stmtExpr void (top level) (IL ???... ???) N199 ( 1, 1) [000047] ------------ │ ┌──▌ lclVar ref V03 loc2 u:3 rdi REG rdi RV $540 N201 ( 5, 4) [000281] DA--------L- arg0 SETUP │ ┌──▌ st.lclVar ref V11 tmp7 d:3 rcx (last use) REG rcx RV N203 ( 0, 0) [000288] ----------L- arg1 SETUP │ ├──▌ argPlace int REG NA $40 ( 8, 7) [000396] ------------ │ │ { ▌ stmtExpr void (embedded) (IL ???... ???) N205 ( 1, 1) [000056] ------------ │ │ { │ ┌──▌ lclVar ref V04 tmp0 u:3 rax REG rax RV $1cf N207 ( 2, 2) [000421] ------------ │ │ { │ ┌──▌ lea(b+8) byref REG NA N209 ( 3, 2) [000049] ----G------- │ │ { │ ├──▌ lclVar long (AX) V01 loc0 REG rcx $348 N211 ( 8, 7) [000397] ----G------- │ │ { └──▌ storeIndir long REG NA N213 ( 1, 1) [000061] ------------ │ │ ┌──▌ lclVar ref V04 tmp0 u:3 rax (last use) REG rax RV $1cf N215 ( 19, 15) [000285] DA--GO----L- arg2 SETUP │ ├──▌ st.lclVar ref V12 tmp8 d:3 r8 REG r8 RV N223 ( 1, 1) [000282] ------------ │ │ ┌──▌ lclVar ref V03 loc2 u:3 rdi REG rdi RV $540 N225 ( 1, 1) [000418] ------------ arg0 in rcx │ ├──▌ putarg_reg ref REG rcx N227 ( 3, 2) [000286] ------------ │ │ ┌──▌ lclVar ref V12 tmp8 u:3 r8 (last use) REG r8 RV $2d3 N229 ( 3, 2) [000419] ------------ arg2 in r8 │ ├──▌ putarg_reg ref REG r8 N231 ( 1, 1) [000048] ------------ │ │ ┌──▌ const int 0 REG rdx $40 N233 ( 1, 1) [000420] ------------ arg1 in rdx │ ├──▌ putarg_reg int REG rdx N241 ( 49, 31) [000067] -ACXGO------ └──▌ call help void HELPER.CORINFO_HELP_ARRADDR_ST $1d1 ``` #### Notes This needs to be updated, as we no longer have statements in back-end. ### Phase Transitions - Flowgraph analysis - BasicBlock links, reachability, dominators, edge weights, loop identification - IR Sorting and Ordering - LclVar reference counts, evaluation order - Rationalization - Eliminate context sensitive nodes - Lowering - Expose all register requirements and control flow
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./src/installer/pkg/README.md
THIRD-PARTY-NOTICES.TXT in this directory contains TPNs from all repos that contribute to installer packages that install files under dotnet directory. This file is included in .NET Host installer package and installed to dotnet directory. It should be updated, manually or automatically to include new TPNs for each release. THIRD-PARTY-NOTICES.TXT in the root of this repo contains TPNs for this repo only.
THIRD-PARTY-NOTICES.TXT in this directory contains TPNs from all repos that contribute to installer packages that install files under dotnet directory. This file is included in .NET Host installer package and installed to dotnet directory. It should be updated, manually or automatically to include new TPNs for each release. THIRD-PARTY-NOTICES.TXT in the root of this repo contains TPNs for this repo only.
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./.github/workflows/markdownlint-problem-matcher.json
{ "problemMatcher": [ { "owner": "markdownlint", "pattern": [ { "regexp": "^([^:]*):(\\d+):?(\\d+)?\\s([\\w-\\/]*)\\s(.*)$", "file": 1, "line": 2, "column": 3, "code": 4, "message": 5 } ] } ] }
{ "problemMatcher": [ { "owner": "markdownlint", "pattern": [ { "regexp": "^([^:]*):(\\d+):?(\\d+)?\\s([\\w-\\/]*)\\s(.*)$", "file": 1, "line": 2, "column": 3, "code": 4, "message": 5 } ] } ] }
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Manifest/localize/WorkloadManifest.zh-Hant.json
{ "workloads/wasm-tools/description": ".NET WebAssembly 組建工具" }
{ "workloads/wasm-tools/description": ".NET WebAssembly 組建工具" }
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./src/mono/mono/tests/metadata-verifier/resources-tests.md
resources-master-directory { #This assembly has a regular resource and a linked resource #LAMEIMPL MS doesn't validate those. assembly assembly-with-resource.exe #the resource directory table is 16 bytes long invalid offset pe-optional-header + 116 set-uint 0 invalid offset pe-optional-header + 116 set-uint 15 #the resources directory table has too many entries that it overflows the directory size invalid offset translate.rva.ind ( pe-optional-header + 112 ) + 12 set-ushort 0x9999 #the resources directory table has too many entries that it overflows the directory size invalid offset translate.rva.ind ( pe-optional-header + 112 ) + 14 set-ushort 0x9999 #I won't check anything more than that for now as this is only used by out asp.net stack. }
resources-master-directory { #This assembly has a regular resource and a linked resource #LAMEIMPL MS doesn't validate those. assembly assembly-with-resource.exe #the resource directory table is 16 bytes long invalid offset pe-optional-header + 116 set-uint 0 invalid offset pe-optional-header + 116 set-uint 15 #the resources directory table has too many entries that it overflows the directory size invalid offset translate.rva.ind ( pe-optional-header + 112 ) + 12 set-ushort 0x9999 #the resources directory table has too many entries that it overflows the directory size invalid offset translate.rva.ind ( pe-optional-header + 112 ) + 14 set-ushort 0x9999 #I won't check anything more than that for now as this is only used by out asp.net stack. }
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./docs/design/coreclr/jit/arm64-jit-frame-layout.md
# ARM64 JIT frame layout NOTE: This document was written before the code was written, and hasn't been verified to match existing code. It refers to some documents that might not be open source. This document describes the frame layout constraints and options for the ARM64 JIT compiler. These frame layouts were taken from the "Windows ARM64 Exception Data" specification, and expanded for use by the JIT. We will generate chained frames in most case (where we save the frame pointer on the stack, and point the frame pointer (x29) at the saved frame pointer), including all non-leaf frames, to support ETW stack walks. This is recommended by the "Windows ARM64 ABI" document. See `ETW_EBP_FRAMED` in the JIT code. (We currently don’t set `ETW_EBP_FRAMED` for ARM64.) For frames with alloca (dynamic stack allocation), we must use a frame pointer that is fixed after the prolog (and before any alloca), so the stack pointer can vary. The frame pointer will be used to access locals, parameters, etc., in the fixed part of the frame. For non-alloca frames, the stack pointer is set and not changed at the end of the prolog. In this case, the stack pointer can be used for all frame member access. If a frame pointer is also created, the frame pointer can optionally be used to access frame members if it gives an encoding advantage. We require a frame pointer for several cases: (1) functions with exception handling establish a frame pointer so handler funclets can use the frame pointer to access parent function locals, (2) for functions with P/Invoke, (3) for certain GC encoding limitations or requirements, (4) for varargs functions, (5) for Edit & Continue functions, (6) for debuggable code, and (7) for MinOpts. This list might not be exhaustive. On ARM64, the stack pointer must remain 16 byte aligned at all times. The immediate offset addressing modes for various instructions have different offset ranges. We want the frames to be designed to efficiently use the available instruction encodings. Some important offset ranges for immediate offset addressing include: * ldrb /ldrsb / strb, unsigned offset: 0 to 4095 * ldrh /ldrsh / strh, unsigned offset: 0 to 8190, multiples of 2 (aligned halfwords) * ldr / str (32-bit variant) / ldrsw, unsigned offset: 0 to 16380, multiple of 4 (aligned words) * ldr / str (64-bit variant), unsigned offset: 0 to 32760, multiple of 8 (aligned doublewords) * ldp / stp (32-bit variant), pre-indexed, post-indexed, and signed offset: -256 to 252, multiple of 4 * ldp / stp (64-bit variant), pre-indexed, post-indexed, and signed offset: -512 to 504, multiple of 8 * ldurb / ldursb / ldurh / ldursb / ldur (32-bit and 64-bit variants) / ldursw / sturb / sturh / stur (32-bit and 64-bit variants): -256 to 255 * ldr / ldrh / ldrb / ldrsw / ldrsh / ldrsb / str / strh / strb pre-indexed/post-indexed: -256 to 255 (unscaled) * add / sub (immediate): 0 to 4095, or with 12 bit left shift: 4096 to 16777215 (multiples of 4096). * Thus, to construct a frame larger than 4095 using `sub`, we could use one "small" sub, or one "large" / shifted sub followed by a single "small" / unshifted sub. The reverse applies for tearing down the frame. * Note that we need to probe the stack for stack overflow when allocating large frames. Most of the offset modes (that aren't pre-indexed or post-indexed) are unsigned. Thus, we want the frame pointer, if it exists, to be at a lower address than the objects on the frame (with the small caveat that we could use the limited negative offset addressing capability of the `ldu*` / `stu*` unscaled modes). The stack pointer will point to the first slot of the outgoing stack argument area, if any, even for alloca functions (thus, the alloca operation needs to "move" the outgoing stack argument space down), so filling the outgoing stack argument space will always use SP. For extremely large frames (e.g., frames larger than 32760, certainly, but probably for any frame larger than 4095), we need to globally reserve and use an additional register to construct an offset, and then use a register offset mode (see `compRsvdRegCheck()`). It is unlikely we could accurately allocate a register for this purpose at all points where it will be actually necessary. In general, we want to put objects close to the stack or frame pointer, to take advantage of the limited addressing offsets described above, especially if we use the ldp/stp instructions. If we do end up using ldp/stp, we will want to consider pointing the frame pointer somewhere in the middle of the locals (or other objects) in the frame, to maximize the limited, but signed, offset range. For example, saved callee-saved registers should be far from the frame/stack pointer, since they are going to be saved once and loaded once, whereas locals/temps are expected to be used more frequently. For variadic (varargs) functions, and possibly for functions with incoming struct register arguments, it is easier to put the arguments on the stack in the prolog such that the entire argument list is contiguous in memory, including both the register and stack arguments. On ARM32, we used the "prespill" concept, where we used a register mask "push" instruction for the "prespilled" registers. Note that on ARM32, structs could be split between incoming argument registers and the stack. On ARM64, this is not true. A struct <=16 bytes is passed in one or two consecutive registers, or entirely on the stack. Structs >16 bytes are passed by reference (the caller allocates space for the struct in its frame, copies the output struct value there, and passes a pointer to that space). On ARM64, instead of prespill we can instead just allocate the appropriate stack space, and use `str` or `stp` to save the incoming register arguments to the reserved space. To support GC "return address hijacking", we need to, for all functions, save the return address to the stack in the prolog, and load it from the stack in the epilog before returning. We must do this so the VM can change the return address stored on the stack to cause the function to return to a special location to support suspension. Below are some sample frame layouts. In these examples, `#localsz` is the byte size of the locals/temps area (everything except callee-saved registers and the outgoing argument space, but including space to save FP and SP), `#outsz` is the outgoing stack parameter size, and `#framesz` is the size of the entire stack (meaning `#localsz` + `#outsz` + callee-saved register size, but not including any alloca size). Note that in these frame layouts, the saved `<fp,lr>` pair is not contiguous with the rest of the callee-saved registers. This is because for chained functions, the frame pointer must point at the saved frame pointer. Also, if we are to use the positive immediate offset addressing modes, we need the frame pointer to be lowest on the stack. In addition, we want the callee-saved registers to be "far away", especially for large frames where an immediate offset addressing mode won’t be able to reach them, as we want locals to be closer than the callee-saved registers. To maintain 16 byte stack alignment, we may need to add alignment padding bytes. Ideally we design the frame such that we only need at most 15 alignment bytes. Since our frame objects are minimally 4 bytes (or maybe even 8 bytes?) in size, we should only need maximally 12 (or 8?) alignment bytes. Note that every time the stack pointer is changed, it needs to be by 16 bytes, so every time we adjust the stack might require alignment. (Technically, it might be the case that you can change the stack pointer by values not a multiple of 16, but you certainly can’t load or store from non-16-byte-aligned SP values. Also, the ARM64 unwind code `alloc_s` is 8 byte scaled, so it can only handle multiple of 8 byte changes to SP.) Note that ldp/stp can be given an 8-byte aligned address when reading/writing 8-byte register pairs, even though the total data transfer for the instruction is 16 bytes. ## 1. chained, `#framesz <= 512`, `#outsz = 0` ``` stp fp,lr,[sp,-#framesz]! // pre-indexed, save <fp,lr> at bottom of frame mov fp,sp // fp points to bottom of stack stp r19,r20,[sp,#framesz - 96] // save INT pair stp d8,d9,[sp,#framesz - 80] // save FP pair stp r0,r1,[sp,#framesz - 64] // home params (optional) stp r2,r3,[sp,#framesz - 48] stp r4,r5,[sp,#framesz - 32] stp r6,r7,[sp,#framesz - 16] ``` 8 instructions (for this set of registers saves, used in most examples given here). There is a single SP adjustment, that is folded into the `<fp,lr>` register pair store. Works with alloca. Frame access is via SP or FP. We will use this for most frames with no outgoing stack arguments (which is likely to be the 99% case, since we have 8 integer register arguments and 8 floating-point register arguments). Here is a similar example, but with an odd number of saved registers: ``` stp fp,lr,[sp,-#framesz]! // pre-indexed, save <fp,lr> at bottom of frame mov fp,sp // fp points to bottom of stack stp r19,r20,[sp,#framesz - 24] // save INT pair str r21,[sp,#framesz - 8] // save INT reg ``` Note that the saved registers are "packed" against the "caller SP" value (that is, they are at the "top" of the downward-growing stack). Any alignment is lower than the callee-saved registers. For leaf functions, we don't need to save the callee-save registers, so we will have, for chained function (such as functions with alloca): ``` stp fp,lr,[sp,-#framesz]! // pre-indexed, save <fp,lr> at bottom of frame mov fp,sp // fp points to bottom of stack ``` ## 2. chained, `#framesz - 16 <= 512`, `#outsz != 0` ``` sub sp,sp,#framesz stp fp,lr,[sp,#outsz] // pre-indexed, save <fp,lr> add fp,sp,#outsz // fp points to bottom of local area stp r19,r20,[sp,#framez - 96] // save INT pair stp d8,d9,[sp,#framesz - 80] // save FP pair stp r0,r1,[sp,#framesz - 64] // home params (optional) stp r2,r3,[sp,#framesz - 48] stp r4,r5,[sp,#framesz - 32] stp r6,r7,[sp,#framesz - 16] ``` 9 instructions. There is a single SP adjustment. It isn’t folded into the `<fp,lr>` register pair store because the SP adjustment points the new SP at the outgoing argument space, and the `<fp,lr>` pair needs to be stored above that. Works with alloca. Frame access is via SP or FP. We will use this for most non-leaf frames with outgoing argument stack space. As for #1, if there is an odd number of callee-save registers, they can easily be put adjacent to the caller SP (at the "top" of the stack), so any alignment bytes will be in the locals area. ## 3. chained, `(#framesz - #outsz) <= 512`, `#outsz != 0`. Different from #2, as `#framesz` is too big. Might be useful for `#framesz > 512` but `(#framesz - #outsz) <= 512`. ``` stp fp,lr,[sp,-(#localsz + 96)]! // pre-indexed, save <fp,lr> above outgoing argument space mov fp,sp // fp points to bottom of stack stp r19,r20,[sp,#localsz + 80] // save INT pair stp d8,d9,[sp,#localsz + 64] // save FP pair stp r0,r1,[sp,#localsz + 48] // home params (optional) stp r2,r3,[sp,#localsz + 32] stp r4,r5,[sp,#localsz + 16] stp r6,r7,[sp,#localsz] sub sp,sp,#outsz ``` 9 instructions. There are 2 SP adjustments. Works with alloca. Frame access is via SP or FP. We will not use this. ## 4. chained, `#localsz <= 512` ``` stp r19,r20,[sp,#-96]! // pre-indexed, save incoming 1st FP/INT pair stp d8,d9,[sp,#16] // save incoming floating-point regs (optional) stp r0,r1,[sp,#32] // home params (optional) stp r2,r3,[sp,#48] stp r4,r5,[sp,#64] stp r6,r7,[sp,#80] stp fp,lr,[sp,-#localsz]! // save <fp,lr> at bottom of local area mov fp,sp // fp points to bottom of local area sub sp,sp,#outsz // if #outsz != 0 ``` 9 instructions. There are 3 SP adjustments: to set SP for saving callee-saved registers, for allocating the local space (and storing `<fp,lr>`), and for allocating the outgoing argument space. Works with alloca. Frame access is via SP or FP. We likely will not use this. Instead, we will use #2 or #5/#6. ## 5. chained, `#localsz > 512`, `#outsz <= 512`. Another case with an unlikely mix of sizes. ``` stp r19,r20,[sp,#-96]! // pre-indexed, save incoming 1st FP/INT pair stp d8,d9,[sp,#16] // save in FP regs (optional) stp r0,r1,[sp,#32] // home params (optional) stp r2,r3,[sp,#48] stp r4,r5,[sp,#64] stp r6,r7,[sp,#80] sub sp,sp,#localsz+#outsz // allocate remaining frame stp fp,lr,[sp,#outsz] // save <fp,lr> at bottom of local area add fp,sp,#outsz // fp points to the bottom of local area ``` 9 instructions. There are 2 SP adjustments. Works with alloca. Frame access is via SP or FP. We will use this. To handle an odd number of callee-saved registers with this layout, we would need to insert alignment bytes higher in the stack. E.g.: ``` str r19,[sp,#-16]! // pre-indexed, save incoming 1st INT reg sub sp,sp,#localsz + #outsz // allocate remaining frame stp fp,lr,[sp,#outsz] // save <fp,lr> at bottom of local area add fp,sp,#outsz // fp points to the bottom of local area ``` This is not ideal, since if `#localsz + #outsz` is not 16 byte aligned, it would need to be padded, and we would end up with two different paddings that might not be necessary. An alternative would be: ``` sub sp,sp,#16 str r19,[sp,#8] // Save register at the top sub sp,sp,#localsz + #outsz // allocate remaining frame. Note that there are 8 bytes of padding from the first "sub sp" that can be subtracted from "#localsz + #outsz" before padding them up to 16. stp fp,lr,[sp,#outsz] // save <fp,lr> at bottom of local area add fp,sp,#outsz // fp points to the bottom of local area ``` ## 6. chained, `#localsz > 512`, `#outsz > 512` The most general case. It is a simple generalization of #5. `sub sp` (or a pair of `sub sp` for really large sizes) is used for both sizes that might overflow the pre-indexed addressing mode offset limit. ``` stp r19,r20,[sp,#-96]! // pre-indexed, save incoming 1st FP/INT pair stp d8,d9,[sp,#16] // save in FP regs (optional) stp r0,r1,[sp,#32] // home params (optional) stp r2,r3,[sp,#48] stp r4,r5,[sp,#64] stp r6,r7,[sp,#80] sub sp,sp,#localsz // allocate locals space stp fp,lr,[sp] // save <fp,lr> at bottom of local area mov fp,sp // fp points to the bottom of local area sub sp,sp,#outsz // allocate outgoing argument space ``` 10 instructions. There are 3 SP adjustments. Works with alloca. Frame access is via SP or FP. We will use this. ## 7. chained, any size frame, but no alloca. ``` stp fp,lr,[sp,#-112]! // pre-indexed, save <fp,lr> mov fp,sp // fp points to top of local area stp r19,r20,[sp,#16] // save INT pair stp d8,d9,[sp,#32] // save FP pair stp r0,r1,[sp,#48] // home params (optional) stp r2,r3,[sp,#64] stp r4,r5,[sp,#80] stp r6,r7,[sp,#96] sub sp,sp,#framesz - 112 // allocate the remaining local area ``` 9 instructions. There are 2 SP adjustments. The frame pointer FP points to the top of the local area, which means this is not suitable for frames with alloca. All frame access will be SP-relative. #1 and #2 are better for small frames, or with alloca. ## 8. Unchained. No alloca. ``` stp r19,r20,[sp,#-80]! // pre-indexed, save incoming 1st FP/INT pair stp r21,r22,[sp,#16] // ... stp r23,lr,[sp,#32] // save last Int reg and lr stp d8,d9,[sp,#48] // save FP pair (optional) stp d10,d11,[sp,#64] // ... sub sp,sp,#framesz-80 // allocate the remaining local area Or, with even number saved Int registers. Note that here we leave 8 bytes of padding at the highest address in the frame. We might choose to use a different format, to put the padding in the locals area, where it might be absorbed by the locals. stp r19,r20,[sp,-80]! // pre-indexed, save in 1st FP/INT reg-pair stp r21,r22,[sp,16] // ... str lr,[sp, 32] // save lr stp d8,d9,[sp, 40] // save FP reg-pair (optional) stp d10,d11,[sp,56] // ... sub sp,#framesz - 80 // allocate the remaining local area ``` All locals are accessed based on SP. FP points to the previous frame. For optimization purpose, FP can be put at any position in locals area to provide a better coverage for "reg-pair" and pre-/post-indexed offset addressing mode. Locals below frame pointers can be accessed based on SP. ## 9. The minimal leaf frame ``` str lr,[sp,#-16]! // pre-indexed, save lr, align stack to 16 ... function body ... ldr lr,[sp],#16 // epilog: reverse prolog, load return address ret lr ``` Note that in this case, there is 8 bytes of alignment above the save of LR.
# ARM64 JIT frame layout NOTE: This document was written before the code was written, and hasn't been verified to match existing code. It refers to some documents that might not be open source. This document describes the frame layout constraints and options for the ARM64 JIT compiler. These frame layouts were taken from the "Windows ARM64 Exception Data" specification, and expanded for use by the JIT. We will generate chained frames in most case (where we save the frame pointer on the stack, and point the frame pointer (x29) at the saved frame pointer), including all non-leaf frames, to support ETW stack walks. This is recommended by the "Windows ARM64 ABI" document. See `ETW_EBP_FRAMED` in the JIT code. (We currently don’t set `ETW_EBP_FRAMED` for ARM64.) For frames with alloca (dynamic stack allocation), we must use a frame pointer that is fixed after the prolog (and before any alloca), so the stack pointer can vary. The frame pointer will be used to access locals, parameters, etc., in the fixed part of the frame. For non-alloca frames, the stack pointer is set and not changed at the end of the prolog. In this case, the stack pointer can be used for all frame member access. If a frame pointer is also created, the frame pointer can optionally be used to access frame members if it gives an encoding advantage. We require a frame pointer for several cases: (1) functions with exception handling establish a frame pointer so handler funclets can use the frame pointer to access parent function locals, (2) for functions with P/Invoke, (3) for certain GC encoding limitations or requirements, (4) for varargs functions, (5) for Edit & Continue functions, (6) for debuggable code, and (7) for MinOpts. This list might not be exhaustive. On ARM64, the stack pointer must remain 16 byte aligned at all times. The immediate offset addressing modes for various instructions have different offset ranges. We want the frames to be designed to efficiently use the available instruction encodings. Some important offset ranges for immediate offset addressing include: * ldrb /ldrsb / strb, unsigned offset: 0 to 4095 * ldrh /ldrsh / strh, unsigned offset: 0 to 8190, multiples of 2 (aligned halfwords) * ldr / str (32-bit variant) / ldrsw, unsigned offset: 0 to 16380, multiple of 4 (aligned words) * ldr / str (64-bit variant), unsigned offset: 0 to 32760, multiple of 8 (aligned doublewords) * ldp / stp (32-bit variant), pre-indexed, post-indexed, and signed offset: -256 to 252, multiple of 4 * ldp / stp (64-bit variant), pre-indexed, post-indexed, and signed offset: -512 to 504, multiple of 8 * ldurb / ldursb / ldurh / ldursb / ldur (32-bit and 64-bit variants) / ldursw / sturb / sturh / stur (32-bit and 64-bit variants): -256 to 255 * ldr / ldrh / ldrb / ldrsw / ldrsh / ldrsb / str / strh / strb pre-indexed/post-indexed: -256 to 255 (unscaled) * add / sub (immediate): 0 to 4095, or with 12 bit left shift: 4096 to 16777215 (multiples of 4096). * Thus, to construct a frame larger than 4095 using `sub`, we could use one "small" sub, or one "large" / shifted sub followed by a single "small" / unshifted sub. The reverse applies for tearing down the frame. * Note that we need to probe the stack for stack overflow when allocating large frames. Most of the offset modes (that aren't pre-indexed or post-indexed) are unsigned. Thus, we want the frame pointer, if it exists, to be at a lower address than the objects on the frame (with the small caveat that we could use the limited negative offset addressing capability of the `ldu*` / `stu*` unscaled modes). The stack pointer will point to the first slot of the outgoing stack argument area, if any, even for alloca functions (thus, the alloca operation needs to "move" the outgoing stack argument space down), so filling the outgoing stack argument space will always use SP. For extremely large frames (e.g., frames larger than 32760, certainly, but probably for any frame larger than 4095), we need to globally reserve and use an additional register to construct an offset, and then use a register offset mode (see `compRsvdRegCheck()`). It is unlikely we could accurately allocate a register for this purpose at all points where it will be actually necessary. In general, we want to put objects close to the stack or frame pointer, to take advantage of the limited addressing offsets described above, especially if we use the ldp/stp instructions. If we do end up using ldp/stp, we will want to consider pointing the frame pointer somewhere in the middle of the locals (or other objects) in the frame, to maximize the limited, but signed, offset range. For example, saved callee-saved registers should be far from the frame/stack pointer, since they are going to be saved once and loaded once, whereas locals/temps are expected to be used more frequently. For variadic (varargs) functions, and possibly for functions with incoming struct register arguments, it is easier to put the arguments on the stack in the prolog such that the entire argument list is contiguous in memory, including both the register and stack arguments. On ARM32, we used the "prespill" concept, where we used a register mask "push" instruction for the "prespilled" registers. Note that on ARM32, structs could be split between incoming argument registers and the stack. On ARM64, this is not true. A struct <=16 bytes is passed in one or two consecutive registers, or entirely on the stack. Structs >16 bytes are passed by reference (the caller allocates space for the struct in its frame, copies the output struct value there, and passes a pointer to that space). On ARM64, instead of prespill we can instead just allocate the appropriate stack space, and use `str` or `stp` to save the incoming register arguments to the reserved space. To support GC "return address hijacking", we need to, for all functions, save the return address to the stack in the prolog, and load it from the stack in the epilog before returning. We must do this so the VM can change the return address stored on the stack to cause the function to return to a special location to support suspension. Below are some sample frame layouts. In these examples, `#localsz` is the byte size of the locals/temps area (everything except callee-saved registers and the outgoing argument space, but including space to save FP and SP), `#outsz` is the outgoing stack parameter size, and `#framesz` is the size of the entire stack (meaning `#localsz` + `#outsz` + callee-saved register size, but not including any alloca size). Note that in these frame layouts, the saved `<fp,lr>` pair is not contiguous with the rest of the callee-saved registers. This is because for chained functions, the frame pointer must point at the saved frame pointer. Also, if we are to use the positive immediate offset addressing modes, we need the frame pointer to be lowest on the stack. In addition, we want the callee-saved registers to be "far away", especially for large frames where an immediate offset addressing mode won’t be able to reach them, as we want locals to be closer than the callee-saved registers. To maintain 16 byte stack alignment, we may need to add alignment padding bytes. Ideally we design the frame such that we only need at most 15 alignment bytes. Since our frame objects are minimally 4 bytes (or maybe even 8 bytes?) in size, we should only need maximally 12 (or 8?) alignment bytes. Note that every time the stack pointer is changed, it needs to be by 16 bytes, so every time we adjust the stack might require alignment. (Technically, it might be the case that you can change the stack pointer by values not a multiple of 16, but you certainly can’t load or store from non-16-byte-aligned SP values. Also, the ARM64 unwind code `alloc_s` is 8 byte scaled, so it can only handle multiple of 8 byte changes to SP.) Note that ldp/stp can be given an 8-byte aligned address when reading/writing 8-byte register pairs, even though the total data transfer for the instruction is 16 bytes. ## 1. chained, `#framesz <= 512`, `#outsz = 0` ``` stp fp,lr,[sp,-#framesz]! // pre-indexed, save <fp,lr> at bottom of frame mov fp,sp // fp points to bottom of stack stp r19,r20,[sp,#framesz - 96] // save INT pair stp d8,d9,[sp,#framesz - 80] // save FP pair stp r0,r1,[sp,#framesz - 64] // home params (optional) stp r2,r3,[sp,#framesz - 48] stp r4,r5,[sp,#framesz - 32] stp r6,r7,[sp,#framesz - 16] ``` 8 instructions (for this set of registers saves, used in most examples given here). There is a single SP adjustment, that is folded into the `<fp,lr>` register pair store. Works with alloca. Frame access is via SP or FP. We will use this for most frames with no outgoing stack arguments (which is likely to be the 99% case, since we have 8 integer register arguments and 8 floating-point register arguments). Here is a similar example, but with an odd number of saved registers: ``` stp fp,lr,[sp,-#framesz]! // pre-indexed, save <fp,lr> at bottom of frame mov fp,sp // fp points to bottom of stack stp r19,r20,[sp,#framesz - 24] // save INT pair str r21,[sp,#framesz - 8] // save INT reg ``` Note that the saved registers are "packed" against the "caller SP" value (that is, they are at the "top" of the downward-growing stack). Any alignment is lower than the callee-saved registers. For leaf functions, we don't need to save the callee-save registers, so we will have, for chained function (such as functions with alloca): ``` stp fp,lr,[sp,-#framesz]! // pre-indexed, save <fp,lr> at bottom of frame mov fp,sp // fp points to bottom of stack ``` ## 2. chained, `#framesz - 16 <= 512`, `#outsz != 0` ``` sub sp,sp,#framesz stp fp,lr,[sp,#outsz] // pre-indexed, save <fp,lr> add fp,sp,#outsz // fp points to bottom of local area stp r19,r20,[sp,#framez - 96] // save INT pair stp d8,d9,[sp,#framesz - 80] // save FP pair stp r0,r1,[sp,#framesz - 64] // home params (optional) stp r2,r3,[sp,#framesz - 48] stp r4,r5,[sp,#framesz - 32] stp r6,r7,[sp,#framesz - 16] ``` 9 instructions. There is a single SP adjustment. It isn’t folded into the `<fp,lr>` register pair store because the SP adjustment points the new SP at the outgoing argument space, and the `<fp,lr>` pair needs to be stored above that. Works with alloca. Frame access is via SP or FP. We will use this for most non-leaf frames with outgoing argument stack space. As for #1, if there is an odd number of callee-save registers, they can easily be put adjacent to the caller SP (at the "top" of the stack), so any alignment bytes will be in the locals area. ## 3. chained, `(#framesz - #outsz) <= 512`, `#outsz != 0`. Different from #2, as `#framesz` is too big. Might be useful for `#framesz > 512` but `(#framesz - #outsz) <= 512`. ``` stp fp,lr,[sp,-(#localsz + 96)]! // pre-indexed, save <fp,lr> above outgoing argument space mov fp,sp // fp points to bottom of stack stp r19,r20,[sp,#localsz + 80] // save INT pair stp d8,d9,[sp,#localsz + 64] // save FP pair stp r0,r1,[sp,#localsz + 48] // home params (optional) stp r2,r3,[sp,#localsz + 32] stp r4,r5,[sp,#localsz + 16] stp r6,r7,[sp,#localsz] sub sp,sp,#outsz ``` 9 instructions. There are 2 SP adjustments. Works with alloca. Frame access is via SP or FP. We will not use this. ## 4. chained, `#localsz <= 512` ``` stp r19,r20,[sp,#-96]! // pre-indexed, save incoming 1st FP/INT pair stp d8,d9,[sp,#16] // save incoming floating-point regs (optional) stp r0,r1,[sp,#32] // home params (optional) stp r2,r3,[sp,#48] stp r4,r5,[sp,#64] stp r6,r7,[sp,#80] stp fp,lr,[sp,-#localsz]! // save <fp,lr> at bottom of local area mov fp,sp // fp points to bottom of local area sub sp,sp,#outsz // if #outsz != 0 ``` 9 instructions. There are 3 SP adjustments: to set SP for saving callee-saved registers, for allocating the local space (and storing `<fp,lr>`), and for allocating the outgoing argument space. Works with alloca. Frame access is via SP or FP. We likely will not use this. Instead, we will use #2 or #5/#6. ## 5. chained, `#localsz > 512`, `#outsz <= 512`. Another case with an unlikely mix of sizes. ``` stp r19,r20,[sp,#-96]! // pre-indexed, save incoming 1st FP/INT pair stp d8,d9,[sp,#16] // save in FP regs (optional) stp r0,r1,[sp,#32] // home params (optional) stp r2,r3,[sp,#48] stp r4,r5,[sp,#64] stp r6,r7,[sp,#80] sub sp,sp,#localsz+#outsz // allocate remaining frame stp fp,lr,[sp,#outsz] // save <fp,lr> at bottom of local area add fp,sp,#outsz // fp points to the bottom of local area ``` 9 instructions. There are 2 SP adjustments. Works with alloca. Frame access is via SP or FP. We will use this. To handle an odd number of callee-saved registers with this layout, we would need to insert alignment bytes higher in the stack. E.g.: ``` str r19,[sp,#-16]! // pre-indexed, save incoming 1st INT reg sub sp,sp,#localsz + #outsz // allocate remaining frame stp fp,lr,[sp,#outsz] // save <fp,lr> at bottom of local area add fp,sp,#outsz // fp points to the bottom of local area ``` This is not ideal, since if `#localsz + #outsz` is not 16 byte aligned, it would need to be padded, and we would end up with two different paddings that might not be necessary. An alternative would be: ``` sub sp,sp,#16 str r19,[sp,#8] // Save register at the top sub sp,sp,#localsz + #outsz // allocate remaining frame. Note that there are 8 bytes of padding from the first "sub sp" that can be subtracted from "#localsz + #outsz" before padding them up to 16. stp fp,lr,[sp,#outsz] // save <fp,lr> at bottom of local area add fp,sp,#outsz // fp points to the bottom of local area ``` ## 6. chained, `#localsz > 512`, `#outsz > 512` The most general case. It is a simple generalization of #5. `sub sp` (or a pair of `sub sp` for really large sizes) is used for both sizes that might overflow the pre-indexed addressing mode offset limit. ``` stp r19,r20,[sp,#-96]! // pre-indexed, save incoming 1st FP/INT pair stp d8,d9,[sp,#16] // save in FP regs (optional) stp r0,r1,[sp,#32] // home params (optional) stp r2,r3,[sp,#48] stp r4,r5,[sp,#64] stp r6,r7,[sp,#80] sub sp,sp,#localsz // allocate locals space stp fp,lr,[sp] // save <fp,lr> at bottom of local area mov fp,sp // fp points to the bottom of local area sub sp,sp,#outsz // allocate outgoing argument space ``` 10 instructions. There are 3 SP adjustments. Works with alloca. Frame access is via SP or FP. We will use this. ## 7. chained, any size frame, but no alloca. ``` stp fp,lr,[sp,#-112]! // pre-indexed, save <fp,lr> mov fp,sp // fp points to top of local area stp r19,r20,[sp,#16] // save INT pair stp d8,d9,[sp,#32] // save FP pair stp r0,r1,[sp,#48] // home params (optional) stp r2,r3,[sp,#64] stp r4,r5,[sp,#80] stp r6,r7,[sp,#96] sub sp,sp,#framesz - 112 // allocate the remaining local area ``` 9 instructions. There are 2 SP adjustments. The frame pointer FP points to the top of the local area, which means this is not suitable for frames with alloca. All frame access will be SP-relative. #1 and #2 are better for small frames, or with alloca. ## 8. Unchained. No alloca. ``` stp r19,r20,[sp,#-80]! // pre-indexed, save incoming 1st FP/INT pair stp r21,r22,[sp,#16] // ... stp r23,lr,[sp,#32] // save last Int reg and lr stp d8,d9,[sp,#48] // save FP pair (optional) stp d10,d11,[sp,#64] // ... sub sp,sp,#framesz-80 // allocate the remaining local area Or, with even number saved Int registers. Note that here we leave 8 bytes of padding at the highest address in the frame. We might choose to use a different format, to put the padding in the locals area, where it might be absorbed by the locals. stp r19,r20,[sp,-80]! // pre-indexed, save in 1st FP/INT reg-pair stp r21,r22,[sp,16] // ... str lr,[sp, 32] // save lr stp d8,d9,[sp, 40] // save FP reg-pair (optional) stp d10,d11,[sp,56] // ... sub sp,#framesz - 80 // allocate the remaining local area ``` All locals are accessed based on SP. FP points to the previous frame. For optimization purpose, FP can be put at any position in locals area to provide a better coverage for "reg-pair" and pre-/post-indexed offset addressing mode. Locals below frame pointers can be accessed based on SP. ## 9. The minimal leaf frame ``` str lr,[sp,#-16]! // pre-indexed, save lr, align stack to 16 ... function body ... ldr lr,[sp],#16 // epilog: reverse prolog, load return address ret lr ``` Note that in this case, there is 8 bytes of alignment above the save of LR.
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./docs/design/coreclr/profiling/davbr-blog-archive/Tail call JIT conditions.md
*This blog post originally appeared on David Broman's blog on 6/20/2007* _Here are the full details I received from Grant Richins and Fei Chen when I asked how the JIT decides whether to employ the tail call optimization. Note that these statements apply to the JITs as they were when Grant and Fei looked through the code base, and are prone to change at whim. **You must not take dependencies on this behavior**. Use this information for your own personal entertainment only._ _First, Grant talked about the 64-bit JITs (one for x64, one for ia64):_ For the 64-bit JIT, we tail call whenever we’re allowed to. Here’s what prevents us from tail calling (in no particular order): - We inline the call instead (we never inline recursive calls to the same method, but we will tail call them) - The call/callvirt/calli is followed by something other than nop or ret IL instructions. - The caller or callee return a value type. - The caller and callee return different types. - The caller is synchronized (MethodImplOptions.Synchronized). - The caller is a shared generic method. - The caller has imperative security (a call to Assert, Demand, Deny, etc.). - The caller has declarative security (custom attributes). - The caller is varargs - The callee is varargs. - The runtime forbids the JIT to tail call. (_There are various reasons the runtime may disallow tail calling, such as caller / callee being in different assemblies, the call going to the application's entrypoint, any conflicts with usage of security features, and other esoteric cases._) - The il did not have the tail. prefix and we are not optimizing (the profiler and debugger control this) - The il did not have the tail. prefix and the caller had a localloc instruction (think alloca or dynamic stack allocation) - The caller is getting some GS security cookie checks - The il did not have the tail. prefix and a local or parameter has had its address taken (ldarga, or ldloca) - The caller is the same as the callee and the runtime disallows inlining - The callee is invoked via stub dispatch (_i.e., via intermediate code that's generated at runtime to optimize certain types of calls_). - For x64 we have these additional restrictions: - The callee has one or more parameters that are valuetypes of size 3,5,6,7 or \>8 bytes - The callee has more than 4 arguments (don’t forget to count the this pointer, generics, etc.) and more than the caller - For all of the parameters passed on the stack the GC-ness must match between the caller and callee. (_"GC-ness" means the state of being a pointer to the beginning of an object managed by the GC, or a pointer to the interior of an object managed by the GC (e.g., a byref field), or neither (e.g., an integer or struct)._) - For ia64 we have this additional restriction: - Any of the callee arguments do not get passed in a register. If all of those conditions are satisfied, we will perform a tail call. Also note that for verifiability, if the code uses a “tail.” prefix, the subsequent call opcode must be immediately followed by a ret opcode (no intermediate nops or prefixs are allowed, although there might be additional prefixes between the “tail.” prefix and the actual call opcode). _Fei has this to add about the 32-bit JIT:_ I looked at the code briefly and here are the cases I saw where tailcall is disallowed: - tail. prefix does not exist in the IL stream (note that tail. prefix is ignored in the inlinee). - Synchronized method or method with varargs. - P/Invoke to unmanaged method. - Return types don’t match between the current method and the method it attempts to tailcall into. - The runtime forbids the JIT to tail call. - Callee has valuetype return. - Many more restrictions that mirror those Grant mentioned above
*This blog post originally appeared on David Broman's blog on 6/20/2007* _Here are the full details I received from Grant Richins and Fei Chen when I asked how the JIT decides whether to employ the tail call optimization. Note that these statements apply to the JITs as they were when Grant and Fei looked through the code base, and are prone to change at whim. **You must not take dependencies on this behavior**. Use this information for your own personal entertainment only._ _First, Grant talked about the 64-bit JITs (one for x64, one for ia64):_ For the 64-bit JIT, we tail call whenever we’re allowed to. Here’s what prevents us from tail calling (in no particular order): - We inline the call instead (we never inline recursive calls to the same method, but we will tail call them) - The call/callvirt/calli is followed by something other than nop or ret IL instructions. - The caller or callee return a value type. - The caller and callee return different types. - The caller is synchronized (MethodImplOptions.Synchronized). - The caller is a shared generic method. - The caller has imperative security (a call to Assert, Demand, Deny, etc.). - The caller has declarative security (custom attributes). - The caller is varargs - The callee is varargs. - The runtime forbids the JIT to tail call. (_There are various reasons the runtime may disallow tail calling, such as caller / callee being in different assemblies, the call going to the application's entrypoint, any conflicts with usage of security features, and other esoteric cases._) - The il did not have the tail. prefix and we are not optimizing (the profiler and debugger control this) - The il did not have the tail. prefix and the caller had a localloc instruction (think alloca or dynamic stack allocation) - The caller is getting some GS security cookie checks - The il did not have the tail. prefix and a local or parameter has had its address taken (ldarga, or ldloca) - The caller is the same as the callee and the runtime disallows inlining - The callee is invoked via stub dispatch (_i.e., via intermediate code that's generated at runtime to optimize certain types of calls_). - For x64 we have these additional restrictions: - The callee has one or more parameters that are valuetypes of size 3,5,6,7 or \>8 bytes - The callee has more than 4 arguments (don’t forget to count the this pointer, generics, etc.) and more than the caller - For all of the parameters passed on the stack the GC-ness must match between the caller and callee. (_"GC-ness" means the state of being a pointer to the beginning of an object managed by the GC, or a pointer to the interior of an object managed by the GC (e.g., a byref field), or neither (e.g., an integer or struct)._) - For ia64 we have this additional restriction: - Any of the callee arguments do not get passed in a register. If all of those conditions are satisfied, we will perform a tail call. Also note that for verifiability, if the code uses a “tail.” prefix, the subsequent call opcode must be immediately followed by a ret opcode (no intermediate nops or prefixs are allowed, although there might be additional prefixes between the “tail.” prefix and the actual call opcode). _Fei has this to add about the 32-bit JIT:_ I looked at the code briefly and here are the cases I saw where tailcall is disallowed: - tail. prefix does not exist in the IL stream (note that tail. prefix is ignored in the inlinee). - Synchronized method or method with varargs. - P/Invoke to unmanaged method. - Return types don’t match between the current method and the method it attempts to tailcall into. - The runtime forbids the JIT to tail call. - Callee has valuetype return. - Many more restrictions that mirror those Grant mentioned above
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./src/libraries/Common/tests/System/Net/Prerequisites/RemoteLoopServer/appsettings.json
{ "Logging": { "LogLevel": { "Default": "Warning" } }, "AllowedHosts": "*" }
{ "Logging": { "LogLevel": { "Default": "Warning" } }, "AllowedHosts": "*" }
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./src/tests/profiler/native/README.md
# Profiler.dll This directory builds Profilers\Profiler.dll, which contains various implementations of ICorProfilerCallback used in our tests. It is used by ProfilerTestRunner.cs in ../common. ### Goals 1) Easy to run/debug a profiler test manually simply by executing the managed test binary + setting minimal env vars: CORECLR_ENABLE_PROFILING=1 CORECLR_PROFILER={CLSID_of_profiler} CORECLR_PROFILER_PATH=path_to_profiler_dll We should be very careful about adding any additional dependencies such as env vars or assumptions that certain files will reside in certain places. Any such dependencies need to be clearly documented. 2) Easy to understand what the test is doing given only an understanding of the ICorProfiler interfaces and basic C++. This means we make limited use of helper functions, macros, and new interfaces that wrap or abstract the underlying APIs. If we do add another layer, it should represent a non-trivial unit of complexity (eg IL-rewriting) and using it should be optional for only a subset of tests that need it. Tests should also avoid trying to test too much at the same time. Making a new test for new functionality is a relatively quick operation. ### Implementation of this profiler dll: There is a small set of shared implementation for all profiler implementations: 1. profiler.def - the dll exported entrypoints 2. dllmain.cpp - implementation of the exported entrypoints 3. classfactory.h/.cpp - implementation of standard COM IClassFactory, used to instantiate a new profiler 4. profiler.h/.cpp - a base class for all profiler implementations. It provides IUnknown, do-nothing implementations of all ICorProfilerCallbackXXX interfaces, and the pCorProfilerInfo field that allows calling back into the runtime All the rest of the implementation is in test-specific profiler implementations that derive from the Profiler class. Each of these is in a sub-directory. See gcbasicprofiler/gcbasicprofiler.h/.cpp for a simple example. ### Adding a new profiler When you want to test new profiler APIs you will need a new test profiler implementation. I recommend using the GC Basic Events test in gcbasicprofiler as an example. The steps are: 1) Get your new profiler building: - Copy and rename gcbasicprofiler folder. - Rename the source files and the gcbasicprofiler type within the source. - Add the new source files to CMakeLists.txt 2) Make your new profiler creatable via COM: - Create a new GUID and replace the one in YourProfiler::GetClsid() - Update classfactory.cpp to include your new profiler's header and update the list of profiler instances in ClassFactory::CreateInstance Profiler* profilers[] = { new GCBasicProfiler(), // add new profilers here }; 3) Override the profiler callback functions that are relevant for your test and delete the rest. At minimum you will need to ensure that the test prints the phrase "PROFILER TEST PASSES" at some point to indicate this is a passing test. Typically that occurs in the Shutdown() method. It is also likely you want to override Initialize() in order to call SetEventMask so that the profiler receives events.
# Profiler.dll This directory builds Profilers\Profiler.dll, which contains various implementations of ICorProfilerCallback used in our tests. It is used by ProfilerTestRunner.cs in ../common. ### Goals 1) Easy to run/debug a profiler test manually simply by executing the managed test binary + setting minimal env vars: CORECLR_ENABLE_PROFILING=1 CORECLR_PROFILER={CLSID_of_profiler} CORECLR_PROFILER_PATH=path_to_profiler_dll We should be very careful about adding any additional dependencies such as env vars or assumptions that certain files will reside in certain places. Any such dependencies need to be clearly documented. 2) Easy to understand what the test is doing given only an understanding of the ICorProfiler interfaces and basic C++. This means we make limited use of helper functions, macros, and new interfaces that wrap or abstract the underlying APIs. If we do add another layer, it should represent a non-trivial unit of complexity (eg IL-rewriting) and using it should be optional for only a subset of tests that need it. Tests should also avoid trying to test too much at the same time. Making a new test for new functionality is a relatively quick operation. ### Implementation of this profiler dll: There is a small set of shared implementation for all profiler implementations: 1. profiler.def - the dll exported entrypoints 2. dllmain.cpp - implementation of the exported entrypoints 3. classfactory.h/.cpp - implementation of standard COM IClassFactory, used to instantiate a new profiler 4. profiler.h/.cpp - a base class for all profiler implementations. It provides IUnknown, do-nothing implementations of all ICorProfilerCallbackXXX interfaces, and the pCorProfilerInfo field that allows calling back into the runtime All the rest of the implementation is in test-specific profiler implementations that derive from the Profiler class. Each of these is in a sub-directory. See gcbasicprofiler/gcbasicprofiler.h/.cpp for a simple example. ### Adding a new profiler When you want to test new profiler APIs you will need a new test profiler implementation. I recommend using the GC Basic Events test in gcbasicprofiler as an example. The steps are: 1) Get your new profiler building: - Copy and rename gcbasicprofiler folder. - Rename the source files and the gcbasicprofiler type within the source. - Add the new source files to CMakeLists.txt 2) Make your new profiler creatable via COM: - Create a new GUID and replace the one in YourProfiler::GetClsid() - Update classfactory.cpp to include your new profiler's header and update the list of profiler instances in ClassFactory::CreateInstance Profiler* profilers[] = { new GCBasicProfiler(), // add new profilers here }; 3) Override the profiler callback functions that are relevant for your test and delete the rest. At minimum you will need to ensure that the test prints the phrase "PROFILER TEST PASSES" at some point to indicate this is a passing test. Typically that occurs in the Shutdown() method. It is also likely you want to override Initialize() in order to call SetEventMask so that the profiler receives events.
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./src/libraries/Microsoft.Extensions.Logging.Abstractions/tests/Microsoft.Extensions.Logging.Generators.Tests/TestClasses/README.md
The source files in this directory serve two purposes: 1. They are used to trigger the source generator during compilation of the test suite itself. The resulting generated code is then tested by LoggerMessageGeneratedCodeTests.cs. This ensures the generated code works reliably. 2.They are loaded as a file from `LoggerMessageGeneratorEmitterTests.cs`, and then fed manually to the parser and then the generator This is used strictly to calculate code coverage attained by the first case above.
The source files in this directory serve two purposes: 1. They are used to trigger the source generator during compilation of the test suite itself. The resulting generated code is then tested by LoggerMessageGeneratedCodeTests.cs. This ensures the generated code works reliably. 2.They are loaded as a file from `LoggerMessageGeneratorEmitterTests.cs`, and then fed manually to the parser and then the generator This is used strictly to calculate code coverage attained by the first case above.
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./docs/design/mono/wasm-aot.md
# WebAssembly AOT code generation ## Basic operation The LLVM backend of the Mono JIT is used to generate an llvm .bc file for each assembly, then the .bc files are compiled to webassembly using emscripten, then the resulting wasm files are linked into the final app. The 'bitcode'/'llvmonly' variant of the LLVM backend is used since webassembly doesn't support inline assembly etc. ## GC Support On wasm, the execution stack is not stored in linear memory, so its not possible to scan it for GC references. However, there is an additional C stack which stores variables whose addresses are taken. Variables which hold GC references are marked as 'volatile' in the llvm backend, forcing llvm to spill those to the C stack so they can be scanned. ## Interpreter support Its possible for AOTed and interpreted code to interop, this is called mixed mode. For the AOT -> interpreter case, every call from AOTed code which might end up in the interpreter is emitted as an indirect call. When the callee is not found, a wrapper function is used which packages up the arguments into an array and passes control to the interpreter. For the interpreter -> AOT case, and similar wrapper function is used which receives the arguments and a return value pointer from the interpreter in an array, and calls the AOTed code. There is usually one aot->interp and interp->aot wrapper for each signature, with some sharing. These wrappers are generated by the AOT compiler when the 'interp' aot option is used. ## Null checks Since wasm has no signal support, we generate explicit null checks. ## Issues The generated code is in general much bigger than the code generated on ios etc. Some of the current issues are described below. ### Function pointers The runtime needs to be able to do a IL method -> wasm function lookup. To do this, every AOT image includes a table mapping from a method index to wasm functions. This means that every generated AOT method has its address taken, which severely limits the interprocedural optimizations that LLVM can do, since it cannot determine the set of callers for a function. This means that it cannot remove functions corresponding to unused IL methods, cannot specialize functions for constant/nonnull arguments, etc. The dotnet linker includes some support for adding a [DisablePrivateReflection] attribute to methods which cannot be called using reflection, and the AOT compiler could use this to avoid generating function pointers for methods which are not called from outside the AOT image. This is not enabled right now because the linker support is not complete. ### Null checks The explicit null checking code adds a lot of size overhead since null checks are very common. ### Virtual calls Vtable slots are lazily initialized on the first call, i.e. every virtual call looks like this: ```C vt_entry = vtable [slot]; if (vt_entry == null) vt_entry = init_vt_entry (); ``` ### GC overhead Since GC variables are marked as volatile and stored on the C stack, they are loaded/stored on every access, even if there is no GC safe point between the accesses. Instead, they should only be loaded/stored around GC safe points.
# WebAssembly AOT code generation ## Basic operation The LLVM backend of the Mono JIT is used to generate an llvm .bc file for each assembly, then the .bc files are compiled to webassembly using emscripten, then the resulting wasm files are linked into the final app. The 'bitcode'/'llvmonly' variant of the LLVM backend is used since webassembly doesn't support inline assembly etc. ## GC Support On wasm, the execution stack is not stored in linear memory, so its not possible to scan it for GC references. However, there is an additional C stack which stores variables whose addresses are taken. Variables which hold GC references are marked as 'volatile' in the llvm backend, forcing llvm to spill those to the C stack so they can be scanned. ## Interpreter support Its possible for AOTed and interpreted code to interop, this is called mixed mode. For the AOT -> interpreter case, every call from AOTed code which might end up in the interpreter is emitted as an indirect call. When the callee is not found, a wrapper function is used which packages up the arguments into an array and passes control to the interpreter. For the interpreter -> AOT case, and similar wrapper function is used which receives the arguments and a return value pointer from the interpreter in an array, and calls the AOTed code. There is usually one aot->interp and interp->aot wrapper for each signature, with some sharing. These wrappers are generated by the AOT compiler when the 'interp' aot option is used. ## Null checks Since wasm has no signal support, we generate explicit null checks. ## Issues The generated code is in general much bigger than the code generated on ios etc. Some of the current issues are described below. ### Function pointers The runtime needs to be able to do a IL method -> wasm function lookup. To do this, every AOT image includes a table mapping from a method index to wasm functions. This means that every generated AOT method has its address taken, which severely limits the interprocedural optimizations that LLVM can do, since it cannot determine the set of callers for a function. This means that it cannot remove functions corresponding to unused IL methods, cannot specialize functions for constant/nonnull arguments, etc. The dotnet linker includes some support for adding a [DisablePrivateReflection] attribute to methods which cannot be called using reflection, and the AOT compiler could use this to avoid generating function pointers for methods which are not called from outside the AOT image. This is not enabled right now because the linker support is not complete. ### Null checks The explicit null checking code adds a lot of size overhead since null checks are very common. ### Virtual calls Vtable slots are lazily initialized on the first call, i.e. every virtual call looks like this: ```C vt_entry = vtable [slot]; if (vt_entry == null) vt_entry = init_vt_entry (); ``` ### GC overhead Since GC variables are marked as volatile and stored on the C stack, they are loaded/stored on every access, even if there is no GC safe point between the accesses. Instead, they should only be loaded/stored around GC safe points.
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./src/libraries/System.Text.Encodings.Web/tools/updating-encodings.md
### Introduction This folder contains tools which allow updating the Unicode data within the __System.Text.Encodings.Web__ package. These data files come from the Unicode Consortium's web site (see https://www.unicode.org/Public/UCD/latest/) and are used to generate the `UnicodeRanges` class and the internal "defined characters" bitmap against which charaters to be escaped are checked. ### Current implementation The current version of the Unicode data checked in is __13.0.0__. The archived files can be found at https://unicode.org/Public/13.0.0/. ### Updating the implementation Updating the implementation consists of three steps: checking in a new version of the Unicode data files (into the [runtime-assets](https://github.com/dotnet/runtime-assets) repo), generating the shared files used by the runtime and the unit tests, and pointing the unit test files to the correct version of the data files. As a prerequisite for updating the tools, you will need the _dotnet_ tool (version 3.1 or above) available from your local command prompt. 1. Update the [runtime-assets](https://github.com/dotnet/runtime-assets) repo with the new Unicode data files. Instructions for generating new packages are listed at the repo root. Preserve the directory structure already present at https://github.com/dotnet/runtime-assets/tree/master/src/System.Private.Runtime.UnicodeData when making the change. 2. Get the latest __UnicodeData.txt__ and __Blocks.txt__ files from the Unicode Consortium web site. Drop them into a temporary location; they're not going to be committed to the main _runtime_ repo. 3. Open a command prompt and navigate to the __src/libraries/System.Text.Encodings.Web/tools/GenDefinedCharList__ directory, then run the following command, replacing the first parameter with the path to the _UnicodeData.txt_ file you downloaded in the previous step. This command will update the "defined characters" bitmap within the runtime folder. The test project also consumes the file from the _src_ folder, so running this command will update both the runtime and the test project. ```txt dotnet run --framework netcoreapp3.1 -- "path_to_UnicodeData.txt" ../../src/System/Text/Unicode/UnicodeHelpers.generated.cs ``` 4. Open a command prompt and navigate to the __src/libraries/System.Text.Encodings.Web/tools/GenUnicodeRanges__ directory, then run the following command, replacing the first parameter with the path to the _Blocks.txt_ file you downloaded earlier. This command will update the `UnicodeRanges` type in the runtime folder and update the unit tests to exercise the new APIs. ```txt dotnet run --framework netcoreapp3.1 -- "path_to_Blocks.txt" ../../src/System/Text/Unicode/UnicodeRanges.generated.cs ../../tests/UnicodeRangesTests.generated.cs ``` 5. Update the __ref__ APIs to reflect any new `UnicodeRanges` static properties which were added in the previous step, otherwise the unit test project will not be able to reference them. See https://github.com/dotnet/runtime/blob/main/docs/coding-guidelines/updating-ref-source.md for instructions on how to update the reference assemblies. 6. Update the __src/libraries/System.Text.Encodings.Web/tests/System.Text.Encodings.Web.Tests.csproj__ file to reference the new __UnicodeData.txt__ file that was added to the [runtime-assets](https://github.com/dotnet/runtime-assets) repo in step (1). Open the .csproj file in a text editor and replace the `<UnicodeUcdVersion>` property value near the top of the file to reference the new UCD version being consumed. 7. Finally, update the _Current implementation_ section at the beginning of this markdown file to reflect the version of the Unicode data files which were given to the tools. Remember also to update the URL within that section so that these data files can be easily accessed in the future. 8. Commit to Git the __*.cs__, __*.csproj__, and __*.md__ files that were modified as part of the above process.
### Introduction This folder contains tools which allow updating the Unicode data within the __System.Text.Encodings.Web__ package. These data files come from the Unicode Consortium's web site (see https://www.unicode.org/Public/UCD/latest/) and are used to generate the `UnicodeRanges` class and the internal "defined characters" bitmap against which charaters to be escaped are checked. ### Current implementation The current version of the Unicode data checked in is __13.0.0__. The archived files can be found at https://unicode.org/Public/13.0.0/. ### Updating the implementation Updating the implementation consists of three steps: checking in a new version of the Unicode data files (into the [runtime-assets](https://github.com/dotnet/runtime-assets) repo), generating the shared files used by the runtime and the unit tests, and pointing the unit test files to the correct version of the data files. As a prerequisite for updating the tools, you will need the _dotnet_ tool (version 3.1 or above) available from your local command prompt. 1. Update the [runtime-assets](https://github.com/dotnet/runtime-assets) repo with the new Unicode data files. Instructions for generating new packages are listed at the repo root. Preserve the directory structure already present at https://github.com/dotnet/runtime-assets/tree/master/src/System.Private.Runtime.UnicodeData when making the change. 2. Get the latest __UnicodeData.txt__ and __Blocks.txt__ files from the Unicode Consortium web site. Drop them into a temporary location; they're not going to be committed to the main _runtime_ repo. 3. Open a command prompt and navigate to the __src/libraries/System.Text.Encodings.Web/tools/GenDefinedCharList__ directory, then run the following command, replacing the first parameter with the path to the _UnicodeData.txt_ file you downloaded in the previous step. This command will update the "defined characters" bitmap within the runtime folder. The test project also consumes the file from the _src_ folder, so running this command will update both the runtime and the test project. ```txt dotnet run --framework netcoreapp3.1 -- "path_to_UnicodeData.txt" ../../src/System/Text/Unicode/UnicodeHelpers.generated.cs ``` 4. Open a command prompt and navigate to the __src/libraries/System.Text.Encodings.Web/tools/GenUnicodeRanges__ directory, then run the following command, replacing the first parameter with the path to the _Blocks.txt_ file you downloaded earlier. This command will update the `UnicodeRanges` type in the runtime folder and update the unit tests to exercise the new APIs. ```txt dotnet run --framework netcoreapp3.1 -- "path_to_Blocks.txt" ../../src/System/Text/Unicode/UnicodeRanges.generated.cs ../../tests/UnicodeRangesTests.generated.cs ``` 5. Update the __ref__ APIs to reflect any new `UnicodeRanges` static properties which were added in the previous step, otherwise the unit test project will not be able to reference them. See https://github.com/dotnet/runtime/blob/main/docs/coding-guidelines/updating-ref-source.md for instructions on how to update the reference assemblies. 6. Update the __src/libraries/System.Text.Encodings.Web/tests/System.Text.Encodings.Web.Tests.csproj__ file to reference the new __UnicodeData.txt__ file that was added to the [runtime-assets](https://github.com/dotnet/runtime-assets) repo in step (1). Open the .csproj file in a text editor and replace the `<UnicodeUcdVersion>` property value near the top of the file to reference the new UCD version being consumed. 7. Finally, update the _Current implementation_ section at the beginning of this markdown file to reflect the version of the Unicode data files which were given to the tools. Remember also to update the URL within that section so that these data files can be easily accessed in the future. 8. Commit to Git the __*.cs__, __*.csproj__, and __*.md__ files that were modified as part of the above process.
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/StateMachineAttribute.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = false)] public class StateMachineAttribute : Attribute { public StateMachineAttribute(Type stateMachineType) { StateMachineType = stateMachineType; } public Type StateMachineType { get; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = false)] public class StateMachineAttribute : Attribute { public StateMachineAttribute(Type stateMachineType) { StateMachineType = stateMachineType; } public Type StateMachineType { get; } } }
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./src/tests/JIT/Methodical/explicit/coverage/expl_long_1_r.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <CLRTestPriority>1</CLRTestPriority> <AllowUnsafeBlocks>True</AllowUnsafeBlocks> <DebugType>None</DebugType> </PropertyGroup> <ItemGroup> <Compile Include="expl_long_1.cs" /> <Compile Include="body_long.cs" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <CLRTestPriority>1</CLRTestPriority> <AllowUnsafeBlocks>True</AllowUnsafeBlocks> <DebugType>None</DebugType> </PropertyGroup> <ItemGroup> <Compile Include="expl_long_1.cs" /> <Compile Include="body_long.cs" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./src/coreclr/jit/jithashtable.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include "jitpch.h" #if defined(_MSC_VER) #pragma hdrstop #endif // defined(_MSC_VER) // Table of primes and their magic-number-divide constant. // For more info see the book "Hacker's Delight" chapter 10.9 "Unsigned Division by Divisors >= 1" // These were selected by looking for primes, each roughly twice as big as the next, having // 32-bit magic numbers, (because the algorithm for using 33-bit magic numbers is slightly slower). #include "jithashtable.h" // Table of primes and their magic-number-divide constant. // For more info see the book "Hacker's Delight" chapter 10.9 "Unsigned Division by Divisors >= 1" // These were selected by looking for primes, each roughly twice as big as the next, having // 32-bit magic numbers, (because the algorithm for using 33-bit magic numbers is slightly slower). // clang-format off const JitPrimeInfo jitPrimeInfo[] { JitPrimeInfo(9, 0x38e38e39, 1), JitPrimeInfo(23, 0xb21642c9, 4), JitPrimeInfo(59, 0x22b63cbf, 3), JitPrimeInfo(131, 0xfa232cf3, 7), JitPrimeInfo(239, 0x891ac73b, 7), JitPrimeInfo(433, 0x975a751, 4), JitPrimeInfo(761, 0x561e46a5, 8), JitPrimeInfo(1399, 0xbb612aa3, 10), JitPrimeInfo(2473, 0x6a009f01, 10), JitPrimeInfo(4327, 0xf2555049, 12), JitPrimeInfo(7499, 0x45ea155f, 11), JitPrimeInfo(12973, 0x1434f6d3, 10), JitPrimeInfo(22433, 0x2ebe18db, 12), JitPrimeInfo(46559, 0xb42bebd5, 15), JitPrimeInfo(96581, 0xadb61b1b, 16), JitPrimeInfo(200341, 0x29df2461, 15), JitPrimeInfo(415517, 0xa181c46d, 18), JitPrimeInfo(861719, 0x4de0bde5, 18), JitPrimeInfo(1787021, 0x9636c46f, 20), JitPrimeInfo(3705617, 0x4870adc1, 20), JitPrimeInfo(7684087, 0x8bbc5b83, 22), JitPrimeInfo(15933877, 0x86c65361, 23), JitPrimeInfo(33040633, 0x40fec79b, 23), JitPrimeInfo(68513161, 0x7d605cd1, 25), JitPrimeInfo(142069021, 0xf1da390b, 27), JitPrimeInfo(294594427, 0x74a2507d, 27), JitPrimeInfo(733045421, 0x5dbec447, 28), }; // clang-format on
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include "jitpch.h" #if defined(_MSC_VER) #pragma hdrstop #endif // defined(_MSC_VER) // Table of primes and their magic-number-divide constant. // For more info see the book "Hacker's Delight" chapter 10.9 "Unsigned Division by Divisors >= 1" // These were selected by looking for primes, each roughly twice as big as the next, having // 32-bit magic numbers, (because the algorithm for using 33-bit magic numbers is slightly slower). #include "jithashtable.h" // Table of primes and their magic-number-divide constant. // For more info see the book "Hacker's Delight" chapter 10.9 "Unsigned Division by Divisors >= 1" // These were selected by looking for primes, each roughly twice as big as the next, having // 32-bit magic numbers, (because the algorithm for using 33-bit magic numbers is slightly slower). // clang-format off const JitPrimeInfo jitPrimeInfo[] { JitPrimeInfo(9, 0x38e38e39, 1), JitPrimeInfo(23, 0xb21642c9, 4), JitPrimeInfo(59, 0x22b63cbf, 3), JitPrimeInfo(131, 0xfa232cf3, 7), JitPrimeInfo(239, 0x891ac73b, 7), JitPrimeInfo(433, 0x975a751, 4), JitPrimeInfo(761, 0x561e46a5, 8), JitPrimeInfo(1399, 0xbb612aa3, 10), JitPrimeInfo(2473, 0x6a009f01, 10), JitPrimeInfo(4327, 0xf2555049, 12), JitPrimeInfo(7499, 0x45ea155f, 11), JitPrimeInfo(12973, 0x1434f6d3, 10), JitPrimeInfo(22433, 0x2ebe18db, 12), JitPrimeInfo(46559, 0xb42bebd5, 15), JitPrimeInfo(96581, 0xadb61b1b, 16), JitPrimeInfo(200341, 0x29df2461, 15), JitPrimeInfo(415517, 0xa181c46d, 18), JitPrimeInfo(861719, 0x4de0bde5, 18), JitPrimeInfo(1787021, 0x9636c46f, 20), JitPrimeInfo(3705617, 0x4870adc1, 20), JitPrimeInfo(7684087, 0x8bbc5b83, 22), JitPrimeInfo(15933877, 0x86c65361, 23), JitPrimeInfo(33040633, 0x40fec79b, 23), JitPrimeInfo(68513161, 0x7d605cd1, 25), JitPrimeInfo(142069021, 0xf1da390b, 27), JitPrimeInfo(294594427, 0x74a2507d, 27), JitPrimeInfo(733045421, 0x5dbec447, 28), }; // clang-format on
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./src/tests/Loader/classloader/regressions/405223/vsw405223.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <ItemGroup> <Compile Include="vsw405223.cs" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <ItemGroup> <Compile Include="vsw405223.cs" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./eng/testing/scenarios/WasmDebuggerTestsJobsList.txt
DebuggerTests.ArrayTests DebuggerTests.AssignmentTests DebuggerTests.AsyncTests DebuggerTests.BadHarnessInitTests DebuggerTests.BreakpointTests DebuggerTests.CallFunctionOnTests DebuggerTests.CustomViewTests DebuggerTests.DateTimeTests DebuggerTests.DelegateTests DebuggerTests.EvaluateOnCallFrameTests DebuggerTests.ExceptionTests DebuggerTests.GetPropertiesTests DebuggerTests.HarnessTests DebuggerTests.MonoJsTests DebuggerTests.PointerTests DebuggerTests.SetVariableValueTests DebuggerTests.MiscTests DebuggerTests.SteppingTests DebuggerTests.SetNextIpTests
DebuggerTests.ArrayTests DebuggerTests.AssignmentTests DebuggerTests.AsyncTests DebuggerTests.BadHarnessInitTests DebuggerTests.BreakpointTests DebuggerTests.CallFunctionOnTests DebuggerTests.CustomViewTests DebuggerTests.DateTimeTests DebuggerTests.DelegateTests DebuggerTests.EvaluateOnCallFrameTests DebuggerTests.ExceptionTests DebuggerTests.GetPropertiesTests DebuggerTests.HarnessTests DebuggerTests.MonoJsTests DebuggerTests.PointerTests DebuggerTests.SetVariableValueTests DebuggerTests.MiscTests DebuggerTests.SteppingTests DebuggerTests.SetNextIpTests
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./src/tests/JIT/HardwareIntrinsics/General/Vector256/Dot.Double.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make * * changes, please update the corresponding template and run according to the * * directions listed in the file. * ******************************************************************************/ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; namespace JIT.HardwareIntrinsics.General { public static partial class Program { private static void DotDouble() { var test = new VectorBinaryOpTest__DotDouble(); // Validates basic functionality works, using Unsafe.Read test.RunBasicScenario_UnsafeRead(); // Validates calling via reflection works, using Unsafe.Read test.RunReflectionScenario_UnsafeRead(); // Validates passing a static member works test.RunClsVarScenario(); // Validates passing a local works, using Unsafe.Read test.RunLclVarScenario_UnsafeRead(); // Validates passing the field of a local class works test.RunClassLclFldScenario(); // Validates passing an instance member of a class works test.RunClassFldScenario(); // Validates passing the field of a local struct works test.RunStructLclFldScenario(); // Validates passing an instance member of a struct works test.RunStructFldScenario(); if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class VectorBinaryOpTest__DotDouble { private struct DataTable { private byte[] inArray1; private byte[] inArray2; private GCHandle inHandle1; private GCHandle inHandle2; private ulong alignment; public DataTable(Double[] inArray1, Double[] inArray2, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Double>(); int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<Double>(); if ((alignment != 32 && alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2) { throw new ArgumentException("Invalid value of alignment"); } this.inArray1 = new byte[alignment * 2]; this.inArray2 = new byte[alignment * 2]; this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned); this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned); this.alignment = (ulong)alignment; Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<Double, byte>(ref inArray1[0]), (uint)sizeOfinArray1); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<Double, byte>(ref inArray2[0]), (uint)sizeOfinArray2); } public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment); public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment); public void Dispose() { inHandle1.Free(); inHandle2.Free(); } private static unsafe void* Align(byte* buffer, ulong expectedAlignment) { return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1)); } } private struct TestStruct { public Vector256<Double> _fld1; public Vector256<Double> _fld2; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Double>, byte>(ref testStruct._fld1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Double>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Double>, byte>(ref testStruct._fld2), ref Unsafe.As<Double, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<Double>>()); return testStruct; } public void RunStructFldScenario(VectorBinaryOpTest__DotDouble testClass) { var result = Vector256.Dot(_fld1, _fld2); testClass.ValidateResult(_fld1, _fld2, result); } } private static readonly int LargestVectorSize = 32; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector256<Double>>() / sizeof(Double); private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector256<Double>>() / sizeof(Double); private static Double[] _data1 = new Double[Op1ElementCount]; private static Double[] _data2 = new Double[Op2ElementCount]; private static Vector256<Double> _clsVar1; private static Vector256<Double> _clsVar2; private Vector256<Double> _fld1; private Vector256<Double> _fld2; private DataTable _dataTable; static VectorBinaryOpTest__DotDouble() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Double>, byte>(ref _clsVar1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Double>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Double>, byte>(ref _clsVar2), ref Unsafe.As<Double, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<Double>>()); } public VectorBinaryOpTest__DotDouble() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Double>, byte>(ref _fld1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Double>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Double>, byte>(ref _fld2), ref Unsafe.As<Double, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<Double>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); } _dataTable = new DataTable(_data1, _data2, LargestVectorSize); } public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = Vector256.Dot( Unsafe.Read<Vector256<Double>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector256<Double>>(_dataTable.inArray2Ptr) ); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, result); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); var method = typeof(Vector256).GetMethod(nameof(Vector256.Dot), new Type[] { typeof(Vector256<Double>), typeof(Vector256<Double>) }); if (method is null) { method = typeof(Vector256).GetMethod(nameof(Vector256.Dot), 1, new Type[] { typeof(Vector256<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(Vector256<>).MakeGenericType(Type.MakeGenericMethodParameter(0)) }); } if (method.IsGenericMethodDefinition) { method = method.MakeGenericMethod(typeof(Double)); } var result = method.Invoke(null, new object[] { Unsafe.Read<Vector256<Double>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector256<Double>>(_dataTable.inArray2Ptr) }); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, (Double)(result)); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = Vector256.Dot( _clsVar1, _clsVar2 ); ValidateResult(_clsVar1, _clsVar2, result); } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<Vector256<Double>>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read<Vector256<Double>>(_dataTable.inArray2Ptr); var result = Vector256.Dot(op1, op2); ValidateResult(op1, op2, result); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new VectorBinaryOpTest__DotDouble(); var result = Vector256.Dot(test._fld1, test._fld2); ValidateResult(test._fld1, test._fld2, result); } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = Vector256.Dot(_fld1, _fld2); ValidateResult(_fld1, _fld2, result); } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = Vector256.Dot(test._fld1, test._fld2); ValidateResult(test._fld1, test._fld2, result); } public void RunStructFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario)); var test = TestStruct.Create(); test.RunStructFldScenario(this); } private void ValidateResult(Vector256<Double> op1, Vector256<Double> op2, Double result, [CallerMemberName] string method = "") { Double[] inArray1 = new Double[Op1ElementCount]; Double[] inArray2 = new Double[Op2ElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<Double, byte>(ref inArray1[0]), op1); Unsafe.WriteUnaligned(ref Unsafe.As<Double, byte>(ref inArray2[0]), op2); ValidateResult(inArray1, inArray2, result, method); } private void ValidateResult(void* op1, void* op2, Double result, [CallerMemberName] string method = "") { Double[] inArray1 = new Double[Op1ElementCount]; Double[] inArray2 = new Double[Op2ElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector256<Double>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<Vector256<Double>>()); ValidateResult(inArray1, inArray2, result, method); } private void ValidateResult(Double[] left, Double[] right, Double result, [CallerMemberName] string method = "") { bool succeeded = true; Double actualResult = default; Double intermResult = default; for (var i = 0; i < Op1ElementCount; i++) { if ((i % Vector128<Double>.Count) == 0) { actualResult += intermResult; intermResult = default; } intermResult += (Double)(left[i] * right[i]); } actualResult += intermResult; if (actualResult != result) { succeeded = false; } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(Vector256)}.{nameof(Vector256.Dot)}<Double>(Vector256<Double>, Vector256<Double>): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: {result}"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make * * changes, please update the corresponding template and run according to the * * directions listed in the file. * ******************************************************************************/ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; namespace JIT.HardwareIntrinsics.General { public static partial class Program { private static void DotDouble() { var test = new VectorBinaryOpTest__DotDouble(); // Validates basic functionality works, using Unsafe.Read test.RunBasicScenario_UnsafeRead(); // Validates calling via reflection works, using Unsafe.Read test.RunReflectionScenario_UnsafeRead(); // Validates passing a static member works test.RunClsVarScenario(); // Validates passing a local works, using Unsafe.Read test.RunLclVarScenario_UnsafeRead(); // Validates passing the field of a local class works test.RunClassLclFldScenario(); // Validates passing an instance member of a class works test.RunClassFldScenario(); // Validates passing the field of a local struct works test.RunStructLclFldScenario(); // Validates passing an instance member of a struct works test.RunStructFldScenario(); if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class VectorBinaryOpTest__DotDouble { private struct DataTable { private byte[] inArray1; private byte[] inArray2; private GCHandle inHandle1; private GCHandle inHandle2; private ulong alignment; public DataTable(Double[] inArray1, Double[] inArray2, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Double>(); int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<Double>(); if ((alignment != 32 && alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2) { throw new ArgumentException("Invalid value of alignment"); } this.inArray1 = new byte[alignment * 2]; this.inArray2 = new byte[alignment * 2]; this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned); this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned); this.alignment = (ulong)alignment; Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<Double, byte>(ref inArray1[0]), (uint)sizeOfinArray1); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<Double, byte>(ref inArray2[0]), (uint)sizeOfinArray2); } public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment); public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment); public void Dispose() { inHandle1.Free(); inHandle2.Free(); } private static unsafe void* Align(byte* buffer, ulong expectedAlignment) { return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1)); } } private struct TestStruct { public Vector256<Double> _fld1; public Vector256<Double> _fld2; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Double>, byte>(ref testStruct._fld1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Double>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Double>, byte>(ref testStruct._fld2), ref Unsafe.As<Double, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<Double>>()); return testStruct; } public void RunStructFldScenario(VectorBinaryOpTest__DotDouble testClass) { var result = Vector256.Dot(_fld1, _fld2); testClass.ValidateResult(_fld1, _fld2, result); } } private static readonly int LargestVectorSize = 32; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector256<Double>>() / sizeof(Double); private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector256<Double>>() / sizeof(Double); private static Double[] _data1 = new Double[Op1ElementCount]; private static Double[] _data2 = new Double[Op2ElementCount]; private static Vector256<Double> _clsVar1; private static Vector256<Double> _clsVar2; private Vector256<Double> _fld1; private Vector256<Double> _fld2; private DataTable _dataTable; static VectorBinaryOpTest__DotDouble() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Double>, byte>(ref _clsVar1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Double>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Double>, byte>(ref _clsVar2), ref Unsafe.As<Double, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<Double>>()); } public VectorBinaryOpTest__DotDouble() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Double>, byte>(ref _fld1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Double>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Double>, byte>(ref _fld2), ref Unsafe.As<Double, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<Double>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); } _dataTable = new DataTable(_data1, _data2, LargestVectorSize); } public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = Vector256.Dot( Unsafe.Read<Vector256<Double>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector256<Double>>(_dataTable.inArray2Ptr) ); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, result); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); var method = typeof(Vector256).GetMethod(nameof(Vector256.Dot), new Type[] { typeof(Vector256<Double>), typeof(Vector256<Double>) }); if (method is null) { method = typeof(Vector256).GetMethod(nameof(Vector256.Dot), 1, new Type[] { typeof(Vector256<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(Vector256<>).MakeGenericType(Type.MakeGenericMethodParameter(0)) }); } if (method.IsGenericMethodDefinition) { method = method.MakeGenericMethod(typeof(Double)); } var result = method.Invoke(null, new object[] { Unsafe.Read<Vector256<Double>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector256<Double>>(_dataTable.inArray2Ptr) }); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, (Double)(result)); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = Vector256.Dot( _clsVar1, _clsVar2 ); ValidateResult(_clsVar1, _clsVar2, result); } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<Vector256<Double>>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read<Vector256<Double>>(_dataTable.inArray2Ptr); var result = Vector256.Dot(op1, op2); ValidateResult(op1, op2, result); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new VectorBinaryOpTest__DotDouble(); var result = Vector256.Dot(test._fld1, test._fld2); ValidateResult(test._fld1, test._fld2, result); } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = Vector256.Dot(_fld1, _fld2); ValidateResult(_fld1, _fld2, result); } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = Vector256.Dot(test._fld1, test._fld2); ValidateResult(test._fld1, test._fld2, result); } public void RunStructFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario)); var test = TestStruct.Create(); test.RunStructFldScenario(this); } private void ValidateResult(Vector256<Double> op1, Vector256<Double> op2, Double result, [CallerMemberName] string method = "") { Double[] inArray1 = new Double[Op1ElementCount]; Double[] inArray2 = new Double[Op2ElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<Double, byte>(ref inArray1[0]), op1); Unsafe.WriteUnaligned(ref Unsafe.As<Double, byte>(ref inArray2[0]), op2); ValidateResult(inArray1, inArray2, result, method); } private void ValidateResult(void* op1, void* op2, Double result, [CallerMemberName] string method = "") { Double[] inArray1 = new Double[Op1ElementCount]; Double[] inArray2 = new Double[Op2ElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector256<Double>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<Vector256<Double>>()); ValidateResult(inArray1, inArray2, result, method); } private void ValidateResult(Double[] left, Double[] right, Double result, [CallerMemberName] string method = "") { bool succeeded = true; Double actualResult = default; Double intermResult = default; for (var i = 0; i < Op1ElementCount; i++) { if ((i % Vector128<Double>.Count) == 0) { actualResult += intermResult; intermResult = default; } intermResult += (Double)(left[i] * right[i]); } actualResult += intermResult; if (actualResult != result) { succeeded = false; } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(Vector256)}.{nameof(Vector256.Dot)}<Double>(Vector256<Double>, Vector256<Double>): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: {result}"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./src/tests/Regressions/coreclr/GitHub_54719/test54719.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; public class IA { } public class IB { } public abstract class Base { public abstract IA Key { get; } public abstract IB Value { get; } } public sealed class Derived : Base<IB> { public class A : IA { } public sealed override A Key => default; } public abstract class Base<B> : Base where B : IB { public sealed override B Value => null; } class Program { static int Main() { new Derived(); return 100; } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; public class IA { } public class IB { } public abstract class Base { public abstract IA Key { get; } public abstract IB Value { get; } } public sealed class Derived : Base<IB> { public class A : IA { } public sealed override A Key => default; } public abstract class Base<B> : Base where B : IB { public sealed override B Value => null; } class Program { static int Main() { new Derived(); return 100; } }
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./src/libraries/Microsoft.Extensions.Logging.Abstractions/src/LogLevel.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.Extensions.Logging { /// <summary> /// Defines logging severity levels. /// </summary> public enum LogLevel { /// <summary> /// Logs that contain the most detailed messages. These messages may contain sensitive application data. /// These messages are disabled by default and should never be enabled in a production environment. /// </summary> Trace = 0, /// <summary> /// Logs that are used for interactive investigation during development. These logs should primarily contain /// information useful for debugging and have no long-term value. /// </summary> Debug = 1, /// <summary> /// Logs that track the general flow of the application. These logs should have long-term value. /// </summary> Information = 2, /// <summary> /// Logs that highlight an abnormal or unexpected event in the application flow, but do not otherwise cause the /// application execution to stop. /// </summary> Warning = 3, /// <summary> /// Logs that highlight when the current flow of execution is stopped due to a failure. These should indicate a /// failure in the current activity, not an application-wide failure. /// </summary> Error = 4, /// <summary> /// Logs that describe an unrecoverable application or system crash, or a catastrophic failure that requires /// immediate attention. /// </summary> Critical = 5, /// <summary> /// Not used for writing log messages. Specifies that a logging category should not write any messages. /// </summary> None = 6, } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.Extensions.Logging { /// <summary> /// Defines logging severity levels. /// </summary> public enum LogLevel { /// <summary> /// Logs that contain the most detailed messages. These messages may contain sensitive application data. /// These messages are disabled by default and should never be enabled in a production environment. /// </summary> Trace = 0, /// <summary> /// Logs that are used for interactive investigation during development. These logs should primarily contain /// information useful for debugging and have no long-term value. /// </summary> Debug = 1, /// <summary> /// Logs that track the general flow of the application. These logs should have long-term value. /// </summary> Information = 2, /// <summary> /// Logs that highlight an abnormal or unexpected event in the application flow, but do not otherwise cause the /// application execution to stop. /// </summary> Warning = 3, /// <summary> /// Logs that highlight when the current flow of execution is stopped due to a failure. These should indicate a /// failure in the current activity, not an application-wide failure. /// </summary> Error = 4, /// <summary> /// Logs that describe an unrecoverable application or system crash, or a catastrophic failure that requires /// immediate attention. /// </summary> Critical = 5, /// <summary> /// Not used for writing log messages. Specifies that a logging category should not write any messages. /// </summary> None = 6, } }
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./src/tests/GC/Scenarios/ServerModel/request.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Runtime.InteropServices; namespace ServerSimulator { /// <summary> /// This class models a typical server request /// </summary> internal class Request { private Object[] survivors; private GCHandle pin; public Request() { survivors = new Object[1 + (int)(ServerSimulator.Params.AllocationVolume * ServerSimulator.Params.SurvivalRate) / 100]; int index = 0; int volume = 0; // allocate half of the request size. while (volume < (int)(ServerSimulator.Params.AllocationVolume / 2)) { volume += allocateRequest(index++); } // allocate one pinned buffer if (ServerSimulator.Params.Pinning) { pin = GCHandle.Alloc(new byte[100], GCHandleType.Pinned); } // allocate the rest of the request while (volume < ServerSimulator.Params.AllocationVolume) { volume += allocateRequest(index++); } } // allocates the request along with garbage to simulate work on the server side protected int allocateRequest(int index) { int alloc_surv = ServerSimulator.Rand.Next(100, 2000 + 2 * index); int alloc = (int)(alloc_surv / ServerSimulator.Params.SurvivalRate) - alloc_surv; // create garbage int j = 0; while (j < alloc) { int s = ServerSimulator.Rand.Next(10, 200 + 2 * j); byte[] garbage = new byte[s]; j += s; } survivors[index] = new byte[alloc_surv]; return alloc_surv + alloc; } // deallocates the request public void Retire() { if (pin.IsAllocated) { pin.Free(); } } } /// <summary> /// This class is a finalizable version of Request that allocates inside its finalizer /// </summary> internal sealed class FinalizableRequest : Request { // disabling unused variable warning #pragma warning disable 0414 private byte[] finalizedData = null; #pragma warning restore 0414 public FinalizableRequest() : base() { } ~FinalizableRequest() { finalizedData = new byte[ServerSimulator.Params.AllocationVolume]; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Runtime.InteropServices; namespace ServerSimulator { /// <summary> /// This class models a typical server request /// </summary> internal class Request { private Object[] survivors; private GCHandle pin; public Request() { survivors = new Object[1 + (int)(ServerSimulator.Params.AllocationVolume * ServerSimulator.Params.SurvivalRate) / 100]; int index = 0; int volume = 0; // allocate half of the request size. while (volume < (int)(ServerSimulator.Params.AllocationVolume / 2)) { volume += allocateRequest(index++); } // allocate one pinned buffer if (ServerSimulator.Params.Pinning) { pin = GCHandle.Alloc(new byte[100], GCHandleType.Pinned); } // allocate the rest of the request while (volume < ServerSimulator.Params.AllocationVolume) { volume += allocateRequest(index++); } } // allocates the request along with garbage to simulate work on the server side protected int allocateRequest(int index) { int alloc_surv = ServerSimulator.Rand.Next(100, 2000 + 2 * index); int alloc = (int)(alloc_surv / ServerSimulator.Params.SurvivalRate) - alloc_surv; // create garbage int j = 0; while (j < alloc) { int s = ServerSimulator.Rand.Next(10, 200 + 2 * j); byte[] garbage = new byte[s]; j += s; } survivors[index] = new byte[alloc_surv]; return alloc_surv + alloc; } // deallocates the request public void Retire() { if (pin.IsAllocated) { pin.Free(); } } } /// <summary> /// This class is a finalizable version of Request that allocates inside its finalizer /// </summary> internal sealed class FinalizableRequest : Request { // disabling unused variable warning #pragma warning disable 0414 private byte[] finalizedData = null; #pragma warning restore 0414 public FinalizableRequest() : base() { } ~FinalizableRequest() { finalizedData = new byte[ServerSimulator.Params.AllocationVolume]; } } }
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./src/libraries/Common/src/Interop/OSX/Interop.libproc.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Runtime.InteropServices; #pragma warning disable CA1823 // analyzer incorrectly flags fixed buffer length const (https://github.com/dotnet/roslyn/issues/37593) internal static partial class Interop { internal static partial class @libproc { // Constants from sys\param.h private const int MAXPATHLEN = 1024; // Constants from proc_info.h private const int MAXTHREADNAMESIZE = 64; private const int PROC_PIDTHREADINFO = 5; private const int PROC_PIDLISTTHREADS = 6; private const int PROC_PIDPATHINFO_MAXSIZE = 4 * MAXPATHLEN; // Constants from sys\resource.h private const int RUSAGE_INFO_V3 = 3; // Constants from sys/errno.h private const int EPERM = 1; // Defines from proc_info.h internal enum ThreadRunState { TH_STATE_RUNNING = 1, TH_STATE_STOPPED = 2, TH_STATE_WAITING = 3, TH_STATE_UNINTERRUPTIBLE = 4, TH_STATE_HALTED = 5 } // Defines in proc_info.h [Flags] internal enum ThreadFlags { TH_FLAGS_SWAPPED = 0x1, TH_FLAGS_IDLE = 0x2 } // from sys\resource.h [StructLayout(LayoutKind.Sequential)] internal unsafe struct rusage_info_v3 { internal fixed byte ri_uuid[16]; internal ulong ri_user_time; internal ulong ri_system_time; internal ulong ri_pkg_idle_wkups; internal ulong ri_interrupt_wkups; internal ulong ri_pageins; internal ulong ri_wired_size; internal ulong ri_resident_size; internal ulong ri_phys_footprint; internal ulong ri_proc_start_abstime; internal ulong ri_proc_exit_abstime; internal ulong ri_child_user_time; internal ulong ri_child_system_time; internal ulong ri_child_pkg_idle_wkups; internal ulong ri_child_interrupt_wkups; internal ulong ri_child_pageins; internal ulong ri_child_elapsed_abstime; internal ulong ri_diskio_bytesread; internal ulong ri_diskio_byteswritten; internal ulong ri_cpu_time_qos_default; internal ulong ri_cpu_time_qos_maintenance; internal ulong ri_cpu_time_qos_background; internal ulong ri_cpu_time_qos_utility; internal ulong ri_cpu_time_qos_legacy; internal ulong ri_cpu_time_qos_user_initiated; internal ulong ri_cpu_time_qos_user_interactive; internal ulong ri_billed_system_time; internal ulong ri_serviced_system_time; } // From proc_info.h [StructLayout(LayoutKind.Sequential)] internal unsafe struct proc_threadinfo { internal ulong pth_user_time; internal ulong pth_system_time; internal int pth_cpu_usage; internal int pth_policy; internal int pth_run_state; internal int pth_flags; internal int pth_sleep_time; internal int pth_curpri; internal int pth_priority; internal int pth_maxpriority; internal fixed byte pth_name[MAXTHREADNAMESIZE]; } [StructLayout(LayoutKind.Sequential)] internal struct proc_fdinfo { internal int proc_fd; internal uint proc_fdtype; } /// <summary> /// Queries the OS for the PIDs for all running processes /// </summary> /// <param name="pBuffer">A pointer to the memory block where the PID array will start</param> /// <param name="buffersize">The length of the block of memory allocated for the PID array</param> /// <returns>Returns the number of elements (PIDs) in the buffer</returns> [GeneratedDllImport(Interop.Libraries.libproc, SetLastError = true)] private static unsafe partial int proc_listallpids( int* pBuffer, int buffersize); /// <summary> /// Queries the OS for the list of all running processes and returns the PID for each /// </summary> /// <returns>Returns a list of PIDs corresponding to all running processes</returns> internal static unsafe int[] proc_listallpids() { // Get the number of processes currently running to know how much data to allocate int numProcesses = proc_listallpids(null, 0); if (numProcesses == 0 && Marshal.GetLastPInvokeError() == EPERM) { // An app running in App Sandbox does not have permissions to list other running processes // and so the `proc_listallpids` function returns 0 and sets errno to 1. As a fallback // we return at least an array with the PID of the current process which we always know. return new[] { Environment.ProcessId }; } else if (numProcesses <= 0) { throw new Win32Exception(SR.CantGetAllPids); } int[] processes; do { // Create a new array for the processes (plus a 10% buffer in case new processes have spawned) // Since we don't know how many threads there could be, if result == size, that could mean two things // 1) We guessed exactly how many processes there are // 2) There are more processes that we didn't get since our buffer is too small // To make sure it isn't #2, when the result == size, increase the buffer and try again processes = new int[(int)(numProcesses * 1.10)]; fixed (int* pBuffer = &processes[0]) { numProcesses = proc_listallpids(pBuffer, processes.Length * sizeof(int)); if (numProcesses <= 0) { throw new Win32Exception(SR.CantGetAllPids); } } } while (numProcesses == processes.Length); // Remove extra elements Array.Resize<int>(ref processes, numProcesses); return processes; } /// <summary> /// Gets information about a process given it's PID /// </summary> /// <param name="pid">The PID of the process</param> /// <param name="flavor">Should be PROC_PIDTHREADINFO</param> /// <param name="arg">Flavor dependent value</param> /// <param name="buffer">A pointer to a block of memory (of size proc_threadinfo) allocated that will contain the data</param> /// <param name="bufferSize">The size of the allocated block above</param> /// <returns> /// The amount of data actually returned. If this size matches the bufferSize parameter then /// the data is valid. If the sizes do not match then the data is invalid, most likely due /// to not having enough permissions to query for the data of that specific process /// </returns> [GeneratedDllImport(Interop.Libraries.libproc, SetLastError = true)] private static unsafe partial int proc_pidinfo( int pid, int flavor, ulong arg, proc_threadinfo* buffer, int bufferSize); /// <summary> /// Gets information about a process given it's PID /// </summary> /// <param name="pid">The PID of the process</param> /// <param name="flavor">Should be PROC_PIDLISTFDS</param> /// <param name="arg">Flavor dependent value</param> /// <param name="buffer">A pointer to a block of memory (of size proc_fdinfo) allocated that will contain the data</param> /// <param name="bufferSize">The size of the allocated block above</param> /// <returns> /// The amount of data actually returned. If this size matches the bufferSize parameter then /// the data is valid. If the sizes do not match then the data is invalid, most likely due /// to not having enough permissions to query for the data of that specific process /// </returns> [GeneratedDllImport(Interop.Libraries.libproc, SetLastError = true)] private static unsafe partial int proc_pidinfo( int pid, int flavor, ulong arg, proc_fdinfo* buffer, int bufferSize); /// <summary> /// Gets information about a process given it's PID /// </summary> /// <param name="pid">The PID of the process</param> /// <param name="flavor">Should be PROC_PIDTASKALLINFO</param> /// <param name="arg">Flavor dependent value</param> /// <param name="buffer">A pointer to a block of memory (of size ulong[]) allocated that will contain the data</param> /// <param name="bufferSize">The size of the allocated block above</param> /// <returns> /// The amount of data actually returned. If this size matches the bufferSize parameter then /// the data is valid. If the sizes do not match then the data is invalid, most likely due /// to not having enough permissions to query for the data of that specific process /// </returns> [GeneratedDllImport(Interop.Libraries.libproc, SetLastError = true)] private static unsafe partial int proc_pidinfo( int pid, int flavor, ulong arg, ulong* buffer, int bufferSize); /// <summary> /// Gets the thread information for the given thread /// </summary> /// <param name="pid">The process id.</param> /// <param name="thread">The ID of the thread to query for information</param> /// <returns> /// Returns a valid proc_threadinfo struct for valid threads that the caller /// has permissions to access; otherwise, returns null /// </returns> internal static unsafe proc_threadinfo? GetThreadInfoById(int pid, ulong thread) { // Negative PIDs are invalid if (pid < 0) { throw new ArgumentOutOfRangeException(nameof(pid)); } // Negative TIDs are invalid if (thread < 0) { throw new ArgumentOutOfRangeException(nameof(thread)); } // Get the thread information for the specified thread in the specified process int size = sizeof(proc_threadinfo); proc_threadinfo info = default(proc_threadinfo); int result = proc_pidinfo(pid, PROC_PIDTHREADINFO, (ulong)thread, &info, size); return (result == size ? new proc_threadinfo?(info) : null); } internal static unsafe List<KeyValuePair<ulong, proc_threadinfo?>> GetAllThreadsInProcess(int pid) { // Negative PIDs are invalid if (pid < 0) { throw new ArgumentOutOfRangeException(nameof(pid)); } int result = 0; int size = 20; // start assuming 20 threads is enough ulong[]? threadIds = null; var threads = new List<KeyValuePair<ulong, proc_threadinfo?>>(); // We have no way of knowing how many threads the process has (and therefore how big our buffer should be) // so while the return value of the function is the same as our buffer size (meaning it completely filled // our buffer), double our buffer size and try again. This ensures that we don't miss any threads do { threadIds = new ulong[size]; fixed (ulong* pBuffer = &threadIds[0]) { result = proc_pidinfo(pid, PROC_PIDLISTTHREADS, 0, pBuffer, sizeof(ulong) * threadIds.Length); } if (result <= 0) { // If we were unable to access the information, just return the empty list. // This is likely to happen for privileged processes, if the process went away // by the time we tried to query it, etc. return threads; } else { checked { size *= 2; } } } while (result == sizeof(ulong) * threadIds.Length); Debug.Assert((result % sizeof(ulong)) == 0); // Loop over each thread and get the thread info int count = (int)(result / sizeof(ulong)); threads.Capacity = count; for (int i = 0; i < count; i++) { threads.Add(new KeyValuePair<ulong, proc_threadinfo?>(threadIds[i], GetThreadInfoById(pid, threadIds[i]))); } return threads; } /// <summary> /// Gets the full path to the executable file identified by the specified PID /// </summary> /// <param name="pid">The PID of the running process</param> /// <param name="buffer">A pointer to an allocated block of memory that will be filled with the process path</param> /// <param name="bufferSize">The size of the buffer, should be PROC_PIDPATHINFO_MAXSIZE</param> /// <returns>Returns the length of the path returned on success</returns> [GeneratedDllImport(Interop.Libraries.libproc, SetLastError = true)] private static unsafe partial int proc_pidpath( int pid, byte* buffer, uint bufferSize); /// <summary> /// Gets the full path to the executable file identified by the specified PID /// </summary> /// <param name="pid">The PID of the running process</param> /// <returns>Returns the full path to the process executable</returns> internal static unsafe string proc_pidpath(int pid) { // Negative PIDs are invalid if (pid < 0) { throw new ArgumentOutOfRangeException(nameof(pid), SR.NegativePidNotSupported); } // The path is a fixed buffer size, so use that and trim it after int result = 0; byte* pBuffer = stackalloc byte[PROC_PIDPATHINFO_MAXSIZE]; result = proc_pidpath(pid, pBuffer, (uint)(PROC_PIDPATHINFO_MAXSIZE * sizeof(byte))); if (result <= 0) { throw new Win32Exception(); } // OS X uses UTF-8. The conversion may not strip off all trailing \0s so remove them here return System.Text.Encoding.UTF8.GetString(pBuffer, result); } /// <summary> /// Gets the rusage information for the process identified by the PID /// </summary> /// <param name="pid">The process to retrieve the rusage for</param> /// <param name="flavor">Specifies the type of struct that is passed in to <paramref>buffer</paramref>. Should be RUSAGE_INFO_V3 to specify a rusage_info_v3 struct.</param> /// <param name="buffer">A buffer to be filled with rusage_info data</param> /// <returns>Returns 0 on success; on fail, -1 and errno is set with the error code</returns> [GeneratedDllImport(Interop.Libraries.libproc, SetLastError = true)] private static unsafe partial int proc_pid_rusage( int pid, int flavor, rusage_info_v3* buffer); /// <summary> /// Gets the rusage information for the process identified by the PID /// </summary> /// <param name="pid">The process to retrieve the rusage for</param> /// <returns>On success, returns a struct containing info about the process; on /// failure or when the caller doesn't have permissions to the process, throws a Win32Exception /// </returns> internal static unsafe rusage_info_v3 proc_pid_rusage(int pid) { // Negative PIDs are invalid if (pid < 0) { throw new ArgumentOutOfRangeException(nameof(pid), SR.NegativePidNotSupported); } rusage_info_v3 info = default; // Get the PIDs rusage info int result = proc_pid_rusage(pid, RUSAGE_INFO_V3, &info); if (result < 0) { throw new InvalidOperationException(SR.RUsageFailure); } return info; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Runtime.InteropServices; #pragma warning disable CA1823 // analyzer incorrectly flags fixed buffer length const (https://github.com/dotnet/roslyn/issues/37593) internal static partial class Interop { internal static partial class @libproc { // Constants from sys\param.h private const int MAXPATHLEN = 1024; // Constants from proc_info.h private const int MAXTHREADNAMESIZE = 64; private const int PROC_PIDTHREADINFO = 5; private const int PROC_PIDLISTTHREADS = 6; private const int PROC_PIDPATHINFO_MAXSIZE = 4 * MAXPATHLEN; // Constants from sys\resource.h private const int RUSAGE_INFO_V3 = 3; // Constants from sys/errno.h private const int EPERM = 1; // Defines from proc_info.h internal enum ThreadRunState { TH_STATE_RUNNING = 1, TH_STATE_STOPPED = 2, TH_STATE_WAITING = 3, TH_STATE_UNINTERRUPTIBLE = 4, TH_STATE_HALTED = 5 } // Defines in proc_info.h [Flags] internal enum ThreadFlags { TH_FLAGS_SWAPPED = 0x1, TH_FLAGS_IDLE = 0x2 } // from sys\resource.h [StructLayout(LayoutKind.Sequential)] internal unsafe struct rusage_info_v3 { internal fixed byte ri_uuid[16]; internal ulong ri_user_time; internal ulong ri_system_time; internal ulong ri_pkg_idle_wkups; internal ulong ri_interrupt_wkups; internal ulong ri_pageins; internal ulong ri_wired_size; internal ulong ri_resident_size; internal ulong ri_phys_footprint; internal ulong ri_proc_start_abstime; internal ulong ri_proc_exit_abstime; internal ulong ri_child_user_time; internal ulong ri_child_system_time; internal ulong ri_child_pkg_idle_wkups; internal ulong ri_child_interrupt_wkups; internal ulong ri_child_pageins; internal ulong ri_child_elapsed_abstime; internal ulong ri_diskio_bytesread; internal ulong ri_diskio_byteswritten; internal ulong ri_cpu_time_qos_default; internal ulong ri_cpu_time_qos_maintenance; internal ulong ri_cpu_time_qos_background; internal ulong ri_cpu_time_qos_utility; internal ulong ri_cpu_time_qos_legacy; internal ulong ri_cpu_time_qos_user_initiated; internal ulong ri_cpu_time_qos_user_interactive; internal ulong ri_billed_system_time; internal ulong ri_serviced_system_time; } // From proc_info.h [StructLayout(LayoutKind.Sequential)] internal unsafe struct proc_threadinfo { internal ulong pth_user_time; internal ulong pth_system_time; internal int pth_cpu_usage; internal int pth_policy; internal int pth_run_state; internal int pth_flags; internal int pth_sleep_time; internal int pth_curpri; internal int pth_priority; internal int pth_maxpriority; internal fixed byte pth_name[MAXTHREADNAMESIZE]; } [StructLayout(LayoutKind.Sequential)] internal struct proc_fdinfo { internal int proc_fd; internal uint proc_fdtype; } /// <summary> /// Queries the OS for the PIDs for all running processes /// </summary> /// <param name="pBuffer">A pointer to the memory block where the PID array will start</param> /// <param name="buffersize">The length of the block of memory allocated for the PID array</param> /// <returns>Returns the number of elements (PIDs) in the buffer</returns> [GeneratedDllImport(Interop.Libraries.libproc, SetLastError = true)] private static unsafe partial int proc_listallpids( int* pBuffer, int buffersize); /// <summary> /// Queries the OS for the list of all running processes and returns the PID for each /// </summary> /// <returns>Returns a list of PIDs corresponding to all running processes</returns> internal static unsafe int[] proc_listallpids() { // Get the number of processes currently running to know how much data to allocate int numProcesses = proc_listallpids(null, 0); if (numProcesses == 0 && Marshal.GetLastPInvokeError() == EPERM) { // An app running in App Sandbox does not have permissions to list other running processes // and so the `proc_listallpids` function returns 0 and sets errno to 1. As a fallback // we return at least an array with the PID of the current process which we always know. return new[] { Environment.ProcessId }; } else if (numProcesses <= 0) { throw new Win32Exception(SR.CantGetAllPids); } int[] processes; do { // Create a new array for the processes (plus a 10% buffer in case new processes have spawned) // Since we don't know how many threads there could be, if result == size, that could mean two things // 1) We guessed exactly how many processes there are // 2) There are more processes that we didn't get since our buffer is too small // To make sure it isn't #2, when the result == size, increase the buffer and try again processes = new int[(int)(numProcesses * 1.10)]; fixed (int* pBuffer = &processes[0]) { numProcesses = proc_listallpids(pBuffer, processes.Length * sizeof(int)); if (numProcesses <= 0) { throw new Win32Exception(SR.CantGetAllPids); } } } while (numProcesses == processes.Length); // Remove extra elements Array.Resize<int>(ref processes, numProcesses); return processes; } /// <summary> /// Gets information about a process given it's PID /// </summary> /// <param name="pid">The PID of the process</param> /// <param name="flavor">Should be PROC_PIDTHREADINFO</param> /// <param name="arg">Flavor dependent value</param> /// <param name="buffer">A pointer to a block of memory (of size proc_threadinfo) allocated that will contain the data</param> /// <param name="bufferSize">The size of the allocated block above</param> /// <returns> /// The amount of data actually returned. If this size matches the bufferSize parameter then /// the data is valid. If the sizes do not match then the data is invalid, most likely due /// to not having enough permissions to query for the data of that specific process /// </returns> [GeneratedDllImport(Interop.Libraries.libproc, SetLastError = true)] private static unsafe partial int proc_pidinfo( int pid, int flavor, ulong arg, proc_threadinfo* buffer, int bufferSize); /// <summary> /// Gets information about a process given it's PID /// </summary> /// <param name="pid">The PID of the process</param> /// <param name="flavor">Should be PROC_PIDLISTFDS</param> /// <param name="arg">Flavor dependent value</param> /// <param name="buffer">A pointer to a block of memory (of size proc_fdinfo) allocated that will contain the data</param> /// <param name="bufferSize">The size of the allocated block above</param> /// <returns> /// The amount of data actually returned. If this size matches the bufferSize parameter then /// the data is valid. If the sizes do not match then the data is invalid, most likely due /// to not having enough permissions to query for the data of that specific process /// </returns> [GeneratedDllImport(Interop.Libraries.libproc, SetLastError = true)] private static unsafe partial int proc_pidinfo( int pid, int flavor, ulong arg, proc_fdinfo* buffer, int bufferSize); /// <summary> /// Gets information about a process given it's PID /// </summary> /// <param name="pid">The PID of the process</param> /// <param name="flavor">Should be PROC_PIDTASKALLINFO</param> /// <param name="arg">Flavor dependent value</param> /// <param name="buffer">A pointer to a block of memory (of size ulong[]) allocated that will contain the data</param> /// <param name="bufferSize">The size of the allocated block above</param> /// <returns> /// The amount of data actually returned. If this size matches the bufferSize parameter then /// the data is valid. If the sizes do not match then the data is invalid, most likely due /// to not having enough permissions to query for the data of that specific process /// </returns> [GeneratedDllImport(Interop.Libraries.libproc, SetLastError = true)] private static unsafe partial int proc_pidinfo( int pid, int flavor, ulong arg, ulong* buffer, int bufferSize); /// <summary> /// Gets the thread information for the given thread /// </summary> /// <param name="pid">The process id.</param> /// <param name="thread">The ID of the thread to query for information</param> /// <returns> /// Returns a valid proc_threadinfo struct for valid threads that the caller /// has permissions to access; otherwise, returns null /// </returns> internal static unsafe proc_threadinfo? GetThreadInfoById(int pid, ulong thread) { // Negative PIDs are invalid if (pid < 0) { throw new ArgumentOutOfRangeException(nameof(pid)); } // Negative TIDs are invalid if (thread < 0) { throw new ArgumentOutOfRangeException(nameof(thread)); } // Get the thread information for the specified thread in the specified process int size = sizeof(proc_threadinfo); proc_threadinfo info = default(proc_threadinfo); int result = proc_pidinfo(pid, PROC_PIDTHREADINFO, (ulong)thread, &info, size); return (result == size ? new proc_threadinfo?(info) : null); } internal static unsafe List<KeyValuePair<ulong, proc_threadinfo?>> GetAllThreadsInProcess(int pid) { // Negative PIDs are invalid if (pid < 0) { throw new ArgumentOutOfRangeException(nameof(pid)); } int result = 0; int size = 20; // start assuming 20 threads is enough ulong[]? threadIds = null; var threads = new List<KeyValuePair<ulong, proc_threadinfo?>>(); // We have no way of knowing how many threads the process has (and therefore how big our buffer should be) // so while the return value of the function is the same as our buffer size (meaning it completely filled // our buffer), double our buffer size and try again. This ensures that we don't miss any threads do { threadIds = new ulong[size]; fixed (ulong* pBuffer = &threadIds[0]) { result = proc_pidinfo(pid, PROC_PIDLISTTHREADS, 0, pBuffer, sizeof(ulong) * threadIds.Length); } if (result <= 0) { // If we were unable to access the information, just return the empty list. // This is likely to happen for privileged processes, if the process went away // by the time we tried to query it, etc. return threads; } else { checked { size *= 2; } } } while (result == sizeof(ulong) * threadIds.Length); Debug.Assert((result % sizeof(ulong)) == 0); // Loop over each thread and get the thread info int count = (int)(result / sizeof(ulong)); threads.Capacity = count; for (int i = 0; i < count; i++) { threads.Add(new KeyValuePair<ulong, proc_threadinfo?>(threadIds[i], GetThreadInfoById(pid, threadIds[i]))); } return threads; } /// <summary> /// Gets the full path to the executable file identified by the specified PID /// </summary> /// <param name="pid">The PID of the running process</param> /// <param name="buffer">A pointer to an allocated block of memory that will be filled with the process path</param> /// <param name="bufferSize">The size of the buffer, should be PROC_PIDPATHINFO_MAXSIZE</param> /// <returns>Returns the length of the path returned on success</returns> [GeneratedDllImport(Interop.Libraries.libproc, SetLastError = true)] private static unsafe partial int proc_pidpath( int pid, byte* buffer, uint bufferSize); /// <summary> /// Gets the full path to the executable file identified by the specified PID /// </summary> /// <param name="pid">The PID of the running process</param> /// <returns>Returns the full path to the process executable</returns> internal static unsafe string proc_pidpath(int pid) { // Negative PIDs are invalid if (pid < 0) { throw new ArgumentOutOfRangeException(nameof(pid), SR.NegativePidNotSupported); } // The path is a fixed buffer size, so use that and trim it after int result = 0; byte* pBuffer = stackalloc byte[PROC_PIDPATHINFO_MAXSIZE]; result = proc_pidpath(pid, pBuffer, (uint)(PROC_PIDPATHINFO_MAXSIZE * sizeof(byte))); if (result <= 0) { throw new Win32Exception(); } // OS X uses UTF-8. The conversion may not strip off all trailing \0s so remove them here return System.Text.Encoding.UTF8.GetString(pBuffer, result); } /// <summary> /// Gets the rusage information for the process identified by the PID /// </summary> /// <param name="pid">The process to retrieve the rusage for</param> /// <param name="flavor">Specifies the type of struct that is passed in to <paramref>buffer</paramref>. Should be RUSAGE_INFO_V3 to specify a rusage_info_v3 struct.</param> /// <param name="buffer">A buffer to be filled with rusage_info data</param> /// <returns>Returns 0 on success; on fail, -1 and errno is set with the error code</returns> [GeneratedDllImport(Interop.Libraries.libproc, SetLastError = true)] private static unsafe partial int proc_pid_rusage( int pid, int flavor, rusage_info_v3* buffer); /// <summary> /// Gets the rusage information for the process identified by the PID /// </summary> /// <param name="pid">The process to retrieve the rusage for</param> /// <returns>On success, returns a struct containing info about the process; on /// failure or when the caller doesn't have permissions to the process, throws a Win32Exception /// </returns> internal static unsafe rusage_info_v3 proc_pid_rusage(int pid) { // Negative PIDs are invalid if (pid < 0) { throw new ArgumentOutOfRangeException(nameof(pid), SR.NegativePidNotSupported); } rusage_info_v3 info = default; // Get the PIDs rusage info int result = proc_pid_rusage(pid, RUSAGE_INFO_V3, &info); if (result < 0) { throw new InvalidOperationException(SR.RUsageFailure); } return info; } } }
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./src/libraries/System.ServiceModel.Syndication/tests/TestFeeds/AtomFeeds/link-same-rel-type-different-hreflang.xml
<!-- Description: entry with two atom:link elements with a rel attribute value of alternate that has the same type but differing hreflang attribute values Expect: !Error --> <feed xmlns="http://www.w3.org/2005/Atom"> <title>Example Feed</title> <link href="http://contoso.com/"/> <updated>2003-12-13T18:30:02Z</updated> <author> <name>Author Name</name> </author> <id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id> <entry> <title>Atom-Powered Robots Run Amok</title> <link href="http://contoso.com/2003/12/13/atom03/es" rel="alternate" type="text/html" hreflang="es-es"/> <link href="http://contoso.com/2003/12/13/atom03/en" rel="alternate" type="text/html" hreflang="en-us"/> <id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id> <updated>2003-12-13T18:30:02Z</updated> <summary>Some text.</summary> </entry> </feed>
<!-- Description: entry with two atom:link elements with a rel attribute value of alternate that has the same type but differing hreflang attribute values Expect: !Error --> <feed xmlns="http://www.w3.org/2005/Atom"> <title>Example Feed</title> <link href="http://contoso.com/"/> <updated>2003-12-13T18:30:02Z</updated> <author> <name>Author Name</name> </author> <id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id> <entry> <title>Atom-Powered Robots Run Amok</title> <link href="http://contoso.com/2003/12/13/atom03/es" rel="alternate" type="text/html" hreflang="es-es"/> <link href="http://contoso.com/2003/12/13/atom03/en" rel="alternate" type="text/html" hreflang="en-us"/> <id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id> <updated>2003-12-13T18:30:02Z</updated> <summary>Some text.</summary> </entry> </feed>
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./src/tests/JIT/Regression/CLR-x86-JIT/V1-M09.5-PDC/b14294/b14294.il
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. .assembly extern legacy library mscorlib {} .assembly extern System.Console { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) .ver 4:0:0:0 } .assembly b14294 { } .class ILGEN_622380794 { .field static int32 field_0x0 .method static int32 main() { .entrypoint .maxstack 20 ldc.i8 0x79c7a1e3779104a conv.i ldc.i8 0x4b9d41986e337371 conv.r.un conv.i clt conv.i8 ldsflda int32 ILGEN_622380794::field_0x0 ldind.i4 conv.i8 mul conv.u4 ldc.i4 100 add ret } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. .assembly extern legacy library mscorlib {} .assembly extern System.Console { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) .ver 4:0:0:0 } .assembly b14294 { } .class ILGEN_622380794 { .field static int32 field_0x0 .method static int32 main() { .entrypoint .maxstack 20 ldc.i8 0x79c7a1e3779104a conv.i ldc.i8 0x4b9d41986e337371 conv.r.un conv.i clt conv.i8 ldsflda int32 ILGEN_622380794::field_0x0 ldind.i4 conv.i8 mul conv.u4 ldc.i4 100 add ret } }
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest696/Generated696.ilproj
<Project Sdk="Microsoft.NET.Sdk.IL"> <PropertyGroup> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <ItemGroup> <Compile Include="Generated696.il" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\TestFramework\TestFramework.csproj" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk.IL"> <PropertyGroup> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <ItemGroup> <Compile Include="Generated696.il" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\TestFramework\TestFramework.csproj" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./src/libraries/System.IO.Packaging/src/System.IO.Packaging.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <TargetFrameworks>$(NetCoreAppCurrent);$(NetCoreAppMinimum);netstandard2.0;$(NetFrameworkMinimum)</TargetFrameworks> <Nullable>enable</Nullable> <!-- Suppress `string.Contains(char)` offers better performance than `string.Contains(string)` to avoid ifdefs.--> <NoWarn>$(NoWarn);CA1847</NoWarn> <IsPackable>true</IsPackable> <PackageDescription>Provides classes that support storage of multiple data objects in a single container.</PackageDescription> </PropertyGroup> <!-- DesignTimeBuild requires all the TargetFramework Derived Properties to not be present in the first property group. --> <PropertyGroup> <IsPartialFacadeAssembly Condition="$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) == '.NETFramework'">true</IsPartialFacadeAssembly> </PropertyGroup> <ItemGroup Condition="'$(IsPartialFacadeAssembly)' != 'true'"> <Compile Include="System\IO\Packaging\CompressionOption.cs" /> <Compile Include="System\IO\Packaging\ContentType.cs" /> <Compile Include="System\IO\Packaging\EncryptionOption.cs" /> <Compile Include="System\IO\Packaging\FileFormatException.cs" /> <Compile Include="System\IO\Packaging\IgnoreFlushAndCloseStream.cs" /> <Compile Include="System\IO\Packaging\InternalRelationshipCollection.cs" /> <Compile Include="System\IO\Packaging\OrderedDictionary.cs" /> <Compile Include="System\IO\Packaging\Package.cs" /> <Compile Include="System\IO\Packaging\PackagePart.cs" /> <Compile Include="System\IO\Packaging\PackagePartCollection.cs" /> <Compile Include="System\IO\Packaging\PackageProperties.cs" /> <Compile Include="System\IO\Packaging\PackageRelationship.cs" /> <Compile Include="System\IO\Packaging\PackageRelationshipCollection.cs" /> <Compile Include="System\IO\Packaging\PackageRelationshipSelector.cs" /> <Compile Include="System\IO\Packaging\PackageRelationshipSelectorType.cs" /> <Compile Include="System\IO\Packaging\PackageXmlEnum.cs" /> <Compile Include="System\IO\Packaging\PackageXmlStringTable.cs" /> <Compile Include="System\IO\Packaging\PackagingUtilities.cs" /> <Compile Include="System\IO\Packaging\PackUriHelper.cs" /> <Compile Include="System\IO\Packaging\PartBasedPackageProperties.cs" /> <Compile Include="System\IO\Packaging\TargetMode.cs" /> <Compile Include="System\IO\Packaging\XmlCompatibilityReader.cs" /> <Compile Include="System\IO\Packaging\XmlWrappingReader.cs" /> <Compile Include="System\IO\Packaging\ZipPackage.cs" /> <Compile Include="System\IO\Packaging\ZipPackagePart.cs" /> <Compile Include="System\IO\Packaging\ZipStreamManager.cs" /> <Compile Include="System\IO\Packaging\ZipWrappingStream.cs" /> <Compile Include="System\IO\Packaging\PackUriHelper.PackUriScheme.cs" /> </ItemGroup> <ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'"> <Reference Include="System.Collections" /> <Reference Include="System.IO.Compression" /> <Reference Include="System.Runtime" /> <Reference Include="System.Threading" /> <Reference Include="System.Xml.ReaderWriter" /> </ItemGroup> <ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'"> <Reference Include="WindowsBase" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <TargetFrameworks>$(NetCoreAppCurrent);$(NetCoreAppMinimum);netstandard2.0;$(NetFrameworkMinimum)</TargetFrameworks> <Nullable>enable</Nullable> <!-- Suppress `string.Contains(char)` offers better performance than `string.Contains(string)` to avoid ifdefs.--> <NoWarn>$(NoWarn);CA1847</NoWarn> <IsPackable>true</IsPackable> <PackageDescription>Provides classes that support storage of multiple data objects in a single container.</PackageDescription> </PropertyGroup> <!-- DesignTimeBuild requires all the TargetFramework Derived Properties to not be present in the first property group. --> <PropertyGroup> <IsPartialFacadeAssembly Condition="$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) == '.NETFramework'">true</IsPartialFacadeAssembly> </PropertyGroup> <ItemGroup Condition="'$(IsPartialFacadeAssembly)' != 'true'"> <Compile Include="System\IO\Packaging\CompressionOption.cs" /> <Compile Include="System\IO\Packaging\ContentType.cs" /> <Compile Include="System\IO\Packaging\EncryptionOption.cs" /> <Compile Include="System\IO\Packaging\FileFormatException.cs" /> <Compile Include="System\IO\Packaging\IgnoreFlushAndCloseStream.cs" /> <Compile Include="System\IO\Packaging\InternalRelationshipCollection.cs" /> <Compile Include="System\IO\Packaging\OrderedDictionary.cs" /> <Compile Include="System\IO\Packaging\Package.cs" /> <Compile Include="System\IO\Packaging\PackagePart.cs" /> <Compile Include="System\IO\Packaging\PackagePartCollection.cs" /> <Compile Include="System\IO\Packaging\PackageProperties.cs" /> <Compile Include="System\IO\Packaging\PackageRelationship.cs" /> <Compile Include="System\IO\Packaging\PackageRelationshipCollection.cs" /> <Compile Include="System\IO\Packaging\PackageRelationshipSelector.cs" /> <Compile Include="System\IO\Packaging\PackageRelationshipSelectorType.cs" /> <Compile Include="System\IO\Packaging\PackageXmlEnum.cs" /> <Compile Include="System\IO\Packaging\PackageXmlStringTable.cs" /> <Compile Include="System\IO\Packaging\PackagingUtilities.cs" /> <Compile Include="System\IO\Packaging\PackUriHelper.cs" /> <Compile Include="System\IO\Packaging\PartBasedPackageProperties.cs" /> <Compile Include="System\IO\Packaging\TargetMode.cs" /> <Compile Include="System\IO\Packaging\XmlCompatibilityReader.cs" /> <Compile Include="System\IO\Packaging\XmlWrappingReader.cs" /> <Compile Include="System\IO\Packaging\ZipPackage.cs" /> <Compile Include="System\IO\Packaging\ZipPackagePart.cs" /> <Compile Include="System\IO\Packaging\ZipStreamManager.cs" /> <Compile Include="System\IO\Packaging\ZipWrappingStream.cs" /> <Compile Include="System\IO\Packaging\PackUriHelper.PackUriScheme.cs" /> </ItemGroup> <ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'"> <Reference Include="System.Collections" /> <Reference Include="System.IO.Compression" /> <Reference Include="System.Runtime" /> <Reference Include="System.Threading" /> <Reference Include="System.Xml.ReaderWriter" /> </ItemGroup> <ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'"> <Reference Include="WindowsBase" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./src/tests/JIT/SIMD/Vector3.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using Point = System.Numerics.Vector3; namespace VectorTests { class Program { const float EPS = Single.Epsilon * 5; static bool CheckEQ(float a, float b) { return Math.Abs(a - b) < EPS; } static int Main(string[] args) { Point a = new Point(1, 2, 3); Point b = new Point(2, 2, 5); float c = 33; Point d = (b + a) * c; Point q = d + a; if (CheckEQ(q.X, 100)) { return 100; } return 0; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using Point = System.Numerics.Vector3; namespace VectorTests { class Program { const float EPS = Single.Epsilon * 5; static bool CheckEQ(float a, float b) { return Math.Abs(a - b) < EPS; } static int Main(string[] args) { Point a = new Point(1, 2, 3); Point b = new Point(2, 2, 5); float c = 33; Point d = (b + a) * c; Point q = d + a; if (CheckEQ(q.X, 100)) { return 100; } return 0; } } }
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./src/tests/JIT/Methodical/refany/stress2_il_d.ilproj
<Project Sdk="Microsoft.NET.Sdk.IL"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>Full</DebugType> </PropertyGroup> <ItemGroup> <Compile Include="stress2.il" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk.IL"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>Full</DebugType> </PropertyGroup> <ItemGroup> <Compile Include="stress2.il" /> </ItemGroup> </Project>
-1