You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just a note, this may possible affect the use of generics as some code may possibly need reflection Metadata for some generics to work properly. (AFAIK we still have an incomplete generics implementation).
Added compiler option (--disable-reflection) to indicate if reflection will be supported.
Update MetadataStage.cs so that only data structures required functionality to support RTTI are emitted.
Items not emit:
Names
Properties
Fields
Parameters
Custom Attributes
Assemblies
Reorder Method definition fields so that RTTI information is first. That way the method definition entry can be truncated when reflection support is not enabled.
Exclude methods that enable reflection. (Note: The method scanner may excluded some of this).
Add flag to indicate to the runtime that reflection is disabled (and metadata may be missing)
tgiphil
changed the title
Add option to exclude reflection support
Add option to disable reflection
Jan 19, 2019
tgiphil
changed the title
Add option to disable reflection
Disable reflection option
Jan 19, 2019
When reflection is disabled, the reflection metadata could be excluded to save memory.
This would be extremely valuable and necessary for low memory platforms.
The text was updated successfully, but these errors were encountered: