Repository navigation
Remove some indirection when raising AssemblyResolve event - #142
Conversation
Delete unused code
|
@maryamariyan - any idea why the bot decided that this PR modified a ref cs file? It definitely does not modify a ref .cs file - or any .cs file. (I don't know if you own the auto-labelling, but I saw you had a PR for testing the labeller) |
|
Thanks @elinor-fung for the note. yes please ignore it, I will re-enable this feature later once it's been tested a bit further. FYI, this other PR shows a sample where it should be adding that comment in, but as you said not for your PR: #141 |
| // GenerateFile() will fail later on. | ||
| // VerifyBindingString is a Runtime requirement, but StringHasLegalFileNameChars | ||
| // is a ngen restriction. | ||
| // StringHasLegalFileNameChars is a ngen restriction. |
There was a problem hiding this comment.
Just a nit, but... is ngen still a thing? Is this a restriction for crossgen?
There was a problem hiding this comment.
I don't think so. I just avoided touching the comment referring to ngen, since I don't actually know / didn't go find out if this is a restriction for crossgen (or for something else) now.
|
|
||
| enum { | ||
| CONTEXT_INITIALIZED = 0x0001, | ||
| LOAD_SYSTEM_ASSEMBLY_EVENT_SENT = 0x0040, |
There was a problem hiding this comment.
Since AppDomain is a public API interface, will removing this enum cause any issues? (I hope not, and in this case: what's the common way of handling removing bitmasks such as this? Just "leaving a hole", or is it common to "defragment" the other constants?)
There was a problem hiding this comment.
This should be fine, since it is public as in this enum being public on this class, but not as in this enum being exposed through System.AppDomain or some exported API.
I don't know what the common way is, but I would advocate for leaving holes.
* Fixes a pretty obvious bug in reverse interface marshalling * Fixes error case in `SafeHandle` marshaller. The existing code was trying to generate throwing code in a wrong spot, leaving IL that is difficult to compute stack height for with our naive algorithm. `MissingMethodException` is the CLR-compatible behavior.
AssemblySpec::ResolveAssemblyFilewhen raising the AssemblyResolve event (wasAppDomain::TryResolveAssembly->AssemblySpec::ResolveAssemblyFile->AppDomain::RaiseAssemblyResolveEvent)