-
Notifications
You must be signed in to change notification settings - Fork 5k
Partial revert of "Delete LOADEDMODULES cache", additional cleanup #116374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR partially reverts the deletion of the LOADEDMODULES cache and reintroduces the implementation of IMetaDataImport::ResolveTypeRef to avoid breaking profiler tests. Key changes include:
- Re-adding caching support via RegMeta::AddToCache and restoring ResolveTypeRef in regmeta_vm.cpp.
- Removing obsolete COM class factory code and related functions.
- Updating build scripts to include the new VM caching definitions and remove deprecated sources.
Reviewed Changes
Copilot reviewed 21 out of 21 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
src/coreclr/md/enc/mdinternalrw.cpp | Added call to AddToCache to update cache after interface setup. |
src/coreclr/md/compiler/regmeta_vm.cpp | Restored AddToCache and ResolveTypeRef implementations. |
src/coreclr/md/compiler/regmeta.cpp | Removed old Release implementation and updated QueryInterface. |
src/coreclr/md/compiler/disp.cpp | Added calls to AddToCache in various scope creation routines. |
Various CMakeLists.txt and header files | Removed obsolete class factory code and added FEATURE_METADATA_IN_VM definition. |
Comments suppressed due to low confidence (1)
src/coreclr/md/CMakeLists.txt:4
- Ensure that the addition of FEATURE_METADATA_IN_VM is compatible with all dependent modules and that its behavior is clearly documented in related developer guides.
add_compile_definitions($<$<NOT:$<OR:$<BOOL:$<TARGET_PROPERTY:DAC_COMPONENT>>,$<BOOL:$<TARGET_PROPERTY:DBI_COMPONENT>>>>:FEATURE_METADATA_IN_VM>)
Tagging subscribers to this area: @mangod9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! The changes look good!
/ba-g timeout |
Adding back implementation of IMetaDataImport::ResolveTypeRef to avoid breaking profilers. The break was detected by internal profiler tests.
Also deleted unnecessary IClassFactory implementation.