-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Open
Labels
Description
This will ease the future work that is planned on MonoClass. This is a requirement for having stage based initialization.
The initialization code should be moved to a dedicated C file. The MonoClass struct and getter/setter should be defined in a file which is part of a header for "release" builds, and part of a specific C file for "checked" builds, to enable speed on "release" builds and correctness on "checked" builds.
PRs:
- Add getters/setters - MonoClass getters mop-up PR #7806
- mono/metadata/class.c - [metadata] Use getters for MonoClass fields in class.c #6892
- mono/metadata/marshal.c - [marshal] Use MonoClass getters in marshal.c #7253
- mono/metadata/object.c - [runtime] Use MonoClass getters in object.c #7351
- mono/metadata/sre-save.c - [sre] Use MonoClass getters in sre-save.c #7352
- Delete the
type_tokenassignment insre-save.c- [sre-save] Remove type_token assignment in mono_image_fill_export_table #7803
- Delete the
- the rest of metadata/
- all of mini/interp/ - [interp] Use MonoClass getters #7774
- mini/method-to-ir.c - [mini] Use MonoClass getters in method-to-ir.c #7772
- mini/aot-compiler.c - [mini] Use MonoClass getters in aot-compiler.c #7773
- the rest of mini/ - [mini] Use MonoClass getters in a few files #7771
- the non-amd64 platforms in mini/ - [mini] Use MonoClass getters on non-AMD64 platforms #7799
- all of dis/ - [mini] Use MonoClass getters in a few files #7771
- all of profiler/ - [profiler] Use accessor functions for MonoClass fields #7448
- tools/ - MonoClass getters mop-up PR #7806
- Add readiness level arg to
mono_class_init. Update all callers to usemono_class_init (..., MONO_CLASS_READY_MAX)- [RFC] mono_class_init_ready #7856 - Add checked build assertions to getters that are guarded by "inited" bits.