Description
A test introduced in #72725 shows that Mono JIT in some cases doesn't throw NRE on null array passed to MemoryMarshal.GetArrayDataReference.
Reproduction Steps
_ = MemoryMarshal.GetArrayDataReference<byte>(null);
Expected behavior
NullReferenceException.
Actual behavior
No exceptions.
Regression?
Works on CoreCLR.
Known Workarounds
Indirect calls to GetArrayDataReference via a function pointer do throw NRE.
Configuration
mono minijit Pri0 Runtime Tests Run OSX x64 release job.
Other information
No response