Fallback to old behavior when marshaling a non-blittable fixed buffer (dotnet/coreclr...
authorJeremy Koritzinsky <jkoritzinsky@gmail.com>
Thu, 25 Oct 2018 15:40:15 +0000 (08:40 -0700)
committerJan Kotas <jkotas@microsoft.com>
Thu, 25 Oct 2018 15:40:15 +0000 (08:40 -0700)
commit7504027da2486e62ef8ca7ea676e0a485815c55b
tree463135af48c01415bf8221c42b665bef7c558d01
parent98b450798c99c1c0a3f3d0394259693609c2cbe4
Fallback to old behavior when marshaling a non-blittable fixed buffer (dotnet/coreclr#20575)

* Throw an exception only when attempting to marshal nonblittable fixed buffers to/from native instead of on all marshalling operations.

* Assert in debug and checked builds when trying to marshal a fixed buffer of a non-blittable type.

Commit migrated from https://github.com/dotnet/coreclr/commit/f7863cf3877a1ce17bde80b8e78ed5b9ba2cf8f5
src/coreclr/src/vm/fieldmarshaler.cpp
src/coreclr/src/vm/fieldmarshaler.h