Fallback to old behavior when marshaling a non-blittable fixed buffer (#20575)
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)
commitf7863cf3877a1ce17bde80b8e78ed5b9ba2cf8f5
tree202ad03dc24e9612f978ad3bd9ce21cca4c6c9a5
parent1370fb92bc9c1ae9475e92f8638c827128c84527
Fallback to old behavior when marshaling a non-blittable fixed buffer (#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.
src/vm/fieldmarshaler.cpp
src/vm/fieldmarshaler.h