mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
With C6 we introduced a regression https://bugzilla.xamarin.com/show_bug.cgi?id=36100, which is caused by the new static serialization code that we wrote to reuse Microsoft's serializer. The code uses Invoke on a series of MethodInfos, and this obscures the actual code that will be invoked at runtime to serialize certain objects, causing the following exception: Attempting to JIT compile method '(wrapper runtime-invoke) <Module>:runtime_invoke_bool_Nullable`1<Decimal> (object,intptr,intptr,intptr)' while running with --aot-only. This patch makes the simple code work, but a more thorough review of the code would allow us to remove many of the slow dynamic codepaths in the serializer. We opted for that approach to keep the code as similar as possible to the original. But the code basically does this: * Use the XmlFormatGeneratorStatics property InternalSerializeMethod, whose sole purpose is to delay computing the MethodInfo for the XmlFormatWriterGenerator's InternalSerialize. * Use the resulting method in a few places to call the MethodInfo. The MethodInfo was used because the original code uses Reflection.Emit to create fast serializers and it needs handles to internal methods, but our static rewriter does not need it. We should replace all of those uses, but for now, this patch at least deals with the 36100 bug.
38 lines
1.8 KiB
Plaintext
38 lines
1.8 KiB
Plaintext
System.Runtime.Serialization.Json/DataContractJsonSerializerTest.cs
|
|
System.Runtime.Serialization.Json/JsonReaderTest.cs
|
|
System.Runtime.Serialization.Json/JsonWriterTest.cs
|
|
System.Runtime.Serialization/Bug11916Test.cs
|
|
System.Runtime.Serialization/Bug666333Test.cs
|
|
System.Runtime.Serialization/Bug675144Test.cs
|
|
System.Runtime.Serialization/Bug2843Test.cs
|
|
System.Runtime.Serialization/Bug3258Test.cs
|
|
System.Runtime.Serialization/Bug242Test.cs
|
|
System.Runtime.Serialization/Bug695203Test.cs
|
|
System.Runtime.Serialization/Bug36100.cs
|
|
System.Runtime.Serialization/DataContractResolverTest.cs
|
|
System.Runtime.Serialization/DataContractSerializerTest_DuplicateQName.cs
|
|
System.Runtime.Serialization/DataContractSerializerTest_NullableWithDictionary.cs
|
|
System.Runtime.Serialization/DataContractSerializerTest_InvalidCharacters.cs
|
|
System.Runtime.Serialization/DataContractSerializerTest.cs
|
|
System.Runtime.Serialization/KnownTypeAttributeTest.cs
|
|
System.Runtime.Serialization/XmlObjectSerializerTest.cs
|
|
System.Runtime.Serialization/XsdDataContractExporterTest.cs
|
|
System.Runtime.Serialization/XsdDataContractImporterTest.cs
|
|
System.Runtime.Serialization/CollectionSerialization.cs
|
|
System.Runtime.Serialization/WsdlHelper.cs
|
|
System.Runtime.Serialization/XsdDataContractImporterTest2.cs
|
|
System.Runtime.Serialization/XsdDataContractExporterTest2.cs
|
|
System.Xml/UniqueIdTest.cs
|
|
System.Xml/XmlBinaryDictionaryReaderTest.cs
|
|
System.Xml/XmlBinaryDictionaryWriterTest.cs
|
|
System.Xml/XmlBinaryWriterSessionTest.cs
|
|
System.Xml/XmlDictionaryReaderAbstractTest.cs
|
|
System.Xml/XmlDictionaryReaderQuotasTest.cs
|
|
System.Xml/XmlDictionaryTest.cs
|
|
System.Xml/XmlDictionaryStringTest.cs
|
|
System.Xml/XmlDictionaryWriterTest.cs
|
|
System.Xml/XmlMtomDictionaryWriterTest.cs
|
|
System.Xml/XmlSimpleDictionaryWriterTest.cs
|
|
System.Runtime.Serialization/AttributesTest.cs
|
|
XmlComparer.cs
|