[netcore] Mark SRE types with required=false so they are only retained when they...
authorZoltan Varga <vargaz@gmail.com>
Mon, 6 Jan 2020 13:48:50 +0000 (14:48 +0100)
committerMarek Safar <marek.safar@gmail.com>
Mon, 6 Jan 2020 14:44:50 +0000 (15:44 +0100)
Commit migrated from https://github.com/mono/mono/commit/7236dadd32a6d36910051e21478f9281cca64ad8

src/mono/netcore/System.Private.CoreLib/src/LinkerDescriptor/System.Private.CoreLib.xml

index 7b075bc..5eb1cbf 100644 (file)
@@ -5,6 +5,7 @@
                <!-- domain.c: mono_defaults.appdomain_class -->
                <type fullname="Mono.MonoDomain">
                        <field name="_mono_app_domain"/>
+                       <field name="UnhandledException"/>
                </type>
 
                <!-- appdomain.c: mono_runtime_init -->
                        <method signature="System.Void .ctor()" />
                </type>
 
-               <!-- domain.c: mono_defaults.threadabortexception_class -->
-               <type fullname="System.Threading.ThreadAbortException">
-               </type>
-
                <!-- debugger-agent.c: create_event_list -->
                <type fullname="System.Diagnostics.DebuggerNonUserCodeAttribute"/>
                <type fullname="System.Diagnostics.DebuggerHiddenAttribute"/>
                        <method signature="System.Void .ctor(System.String)" />
                </type>
 
-               <type fullname="System.Reflection.Emit.AssemblyBuilder" preserve="fields" feature="sre" />
-               <type fullname="System.Reflection.Emit.ConstructorBuilder" preserve="fields" feature="sre"/>
-               <type fullname="System.Reflection.Emit.DynamicMethod" preserve="fields" feature="sre" />
+               <type fullname="System.Reflection.Emit.AssemblyBuilder" preserve="fields" required="false" feature="sre" />
+               <type fullname="System.Reflection.Emit.ConstructorBuilder" preserve="fields" required="false" feature="sre"/>
+               <type fullname="System.Reflection.Emit.DynamicMethod" preserve="fields" required="false" feature="sre" />
                <!-- mono_dynamic_image_register_token -->
-               <type fullname="System.Reflection.Emit.EnumBuilder" preserve="fields" feature="sre" />
-               <type fullname="System.Reflection.Emit.EventBuilder" preserve="fields" feature="sre" />
-               <type fullname="System.Reflection.Emit.FieldBuilder" preserve="fields" feature="sre" />
-               <type
-                 fullname="System.Reflection.Emit.GenericTypeParameterBuilder" preserve="fields" feature="sre" />
-               <type fullname="System.Reflection.Emit.ILExceptionBlock" preserve="fields" feature="sre" />
-               <type fullname="System.Reflection.Emit.ILExceptionInfo" preserve="fields" feature="sre" />
-               <type fullname="System.Reflection.Emit.ILGenerator" preserve="fields" feature="sre" />
-               <type fullname="System.Reflection.Emit.LocalBuilder" preserve="fields" feature="sre" />
-               <type fullname="System.Reflection.Emit.MethodBuilder" preserve="fields" feature="sre" />
-               <type fullname="System.Reflection.Emit.ModuleBuilder" preserve="fields" feature="sre" />
-               <type fullname="System.Reflection.Emit.MonoResource" preserve="fields" feature="sre" />
-               <type fullname="System.Reflection.Emit.MonoWin32Resource" preserve="fields" feature="sre" />
-               <type fullname="System.Reflection.Emit.ParameterBuilder" preserve="nothing" feature="sre" />
-               <type fullname="System.Reflection.Emit.PropertyBuilder" preserve="nothing" feature="sre" />
-               <type fullname="System.Reflection.Emit.SignatureHelper" preserve="nothing" feature="sre" />
-               <type fullname="System.Reflection.Emit.TypeBuilder" preserve="fields" feature="sre">
+               <type fullname="System.Reflection.Emit.EnumBuilder" preserve="fields" required="false" feature="sre" />
+               <type fullname="System.Reflection.Emit.EventBuilder" preserve="fields" required="false" feature="sre" />
+               <type fullname="System.Reflection.Emit.FieldBuilder" preserve="fields" required="false" feature="sre" />
+               <type fullname="System.Reflection.Emit.GenericTypeParameterBuilder" preserve="fields" required="false" feature="sre" />
+               <type fullname="System.Reflection.Emit.ILExceptionBlock" preserve="fields" required="false" feature="sre" />
+               <type fullname="System.Reflection.Emit.ILExceptionInfo" preserve="fields" required="false" feature="sre" />
+               <type fullname="System.Reflection.Emit.ILGenerator" preserve="fields" required="false" feature="sre" />
+               <type fullname="System.Reflection.Emit.LocalBuilder" preserve="fields" required="false" feature="sre" />
+               <type fullname="System.Reflection.Emit.MethodBuilder" preserve="fields" required="false" feature="sre" />
+               <type fullname="System.Reflection.Emit.ModuleBuilder" preserve="fields" required="false" feature="sre" />
+               <type fullname="System.Reflection.Emit.ParameterBuilder" preserve="nothing" required="false" feature="sre" />
+               <type fullname="System.Reflection.Emit.PropertyBuilder" preserve="nothing" required="false" feature="sre" />
+               <type fullname="System.Reflection.Emit.SignatureHelper" preserve="nothing" required="false" feature="sre" />
+               <type fullname="System.Reflection.Emit.TypeBuilder" preserve="fields" required="false" feature="sre">
                        <method name="SetCharSet" feature="sre" />
                        <!-- reflection.c mono_reflection_call_is_assignable_to () -->
                        <method name="IsAssignableTo" feature="sre" />
                </type>
-               <type fullname="System.Reflection.Emit.UnmanagedMarshal" preserve="fields" feature="sre" >
+               <type fullname="System.Reflection.Emit.UnmanagedMarshal" preserve="fields" required="false" feature="sre" >
                        <method name="DefineCustom" feature="sre" />
                        <method name="DefineLPArrayInternal" feature="sre" />
                </type>
-               <type fullname="System.Reflection.Emit.ArrayType" preserve="fields" feature="sre" />
-               <type fullname="System.Reflection.Emit.ByRefType" preserve="fields" feature="sre" />
-               <type fullname="System.Reflection.Emit.PointerType" preserve="fields" feature="sre" />
-               <type fullname="System.Reflection.Emit.FieldOnTypeBuilderInst" preserve="fields" feature="sre" />
-               <type fullname="System.Reflection.Emit.MethodOnTypeBuilderInst" preserve="fields" feature="sre" />
-               <type fullname="System.Reflection.Emit.ConstructorOnTypeBuilderInst" preserve="fields" feature="sre" />
+               <type fullname="System.Reflection.Emit.ArrayType" preserve="fields" required="false" feature="sre" />
+               <type fullname="System.Reflection.Emit.ByRefType" preserve="fields" required="false" feature="sre" />
+               <type fullname="System.Reflection.Emit.PointerType" preserve="fields" required="false" feature="sre" />
+               <type fullname="System.Reflection.Emit.FieldOnTypeBuilderInst" preserve="fields" required="false" feature="sre" />
+               <type fullname="System.Reflection.Emit.MethodOnTypeBuilderInst" preserve="fields" required="false" feature="sre" />
+               <type fullname="System.Reflection.Emit.ConstructorOnTypeBuilderInst" preserve="fields" required="false" feature="sre" />
 
                <!-- exception.c: mono_get_exception_runtime_wrapped () -->
                <type fullname="System.Runtime.CompilerServices.RuntimeWrappedException">