Skip to content

Need to delay type loading error until runtime for array of T with ByRefLike type #99165

@fanyang-mono

Description

@fanyang-mono

When uncommenting AllocArrayOfT_Invalid and AllocMultiDimArrayOfT_Invalid in InvalidCSharp.il, AOT compile Validate.dll triggered the following assertion. Need to delay this error untill runtime.

  aot-compile: compiling /__w/1/s/artifacts/tests/coreclr/linux.x64.Release/Loader/classloader/generics/ByRefLike/Validate/Validate.dll; MONO_PATH: /__w/1/s/artifacts/tests/coreclr/linux.x64.Release/Loader/classloader/generics/ByRefLike/Validate:/__w/1/s/artifacts/tests/coreclr/linux.x64.Release/Tests/Core_Root
  Mono Ahead of Time compiler - compiling assembly /__w/1/s/artifacts/tests/coreclr/linux.x64.Release/Loader/classloader/generics/ByRefLike/Validate/Validate.dll
  AOTID E90E991F-9074-7937-4FB1-E9B7D16A073B
  * Assertion at /__w/1/s/src/mono/mono/metadata/loader.c:826, condition `!mono_class_has_failure (klass)' not met

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions