Make composite MVID checks resilient to failures (#51018)
authorTomáš Rylek <trylek@microsoft.com>
Sat, 10 Apr 2021 10:16:36 +0000 (03:16 -0700)
committerGitHub <noreply@github.com>
Sat, 10 Apr 2021 10:16:36 +0000 (12:16 +0200)
commit0af5228e8fbf24f4fecfe292c0df732e64ae13c2
tree8fbec018807e36496018b04ca169537c71af8f3a
parentb05a8925ac9d79a9b0e17183b5a1c4286ce614c7
Make composite MVID checks resilient to failures (#51018)

I noticed that several ALC-related CoreCLR tests fail in Crossgen2
composite mode. I tracked this down to a missing null check.
In addition to that, we were erroneously putting the composite
image to the validation list even when it had been loaded previously.

Thanks

Tomas
src/coreclr/vm/assemblyloadcontext.cpp
src/coreclr/vm/nativeimage.cpp
src/coreclr/vm/nativeimage.h