Skip to content

Commit

Permalink
Preserve the System.RuntimeType constructor in mono ILLink (dotnet#48710
Browse files Browse the repository at this point in the history
)

* Preserve the System.RuntimeType constructor in mono ILLink

* Update src/mono/System.Private.CoreLib/src/ILLink/ILLink.Descriptors.xml

* Update src/mono/System.Private.CoreLib/src/ILLink/ILLink.Descriptors.xml

Co-authored-by: Larry Ewing <lewing@microsoft.com>

Co-authored-by: Larry Ewing <lewing@microsoft.com>
  • Loading branch information
tannergooding and lewing authored Feb 25, 2021
1 parent cbb5b90 commit 4af65be
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,11 @@
<type fullname="System.RuntimeMethodHandle" preserve="fields" />

<!-- domain.c: mono_defaults.runtimetype_class -->
<!-- under mono, this has no runtime visible fields -->
<type fullname="System.RuntimeType" preserve="nothing" />
<!-- under mono, this has no runtime visible fields but the constructor can be called from unmanaged code in mono_type_get_object_checked -->
<!-- RuntimeType is a fundamental type and the constructor is called by the runtime to implement reflection primitives like Object.GetType() and typeof(C) -->
<type fullname="System.RuntimeType">
<method signature="System.Void .ctor()" />
</type>

<!-- domain.c: mono_defaults.typehandle_class -->
<type fullname="System.RuntimeTypeHandle" preserve="fields" />
Expand Down

0 comments on commit 4af65be

Please sign in to comment.