Better handle marshaling of packed types (#3508)
authorJoshua Peterson <petersonjm1@gmail.com>
Mon, 5 Sep 2016 21:43:55 +0000 (17:43 -0400)
committerZoltan Varga <vargaz@gmail.com>
Mon, 5 Sep 2016 21:43:55 +0000 (23:43 +0200)
commit895f3f5ae8e22c14511baa8c2a5c3f1b17009c02
treea9335903b8848bc138e87ae58542bc6c1a9422b9
parent56ec616f73de7c1263b96563596231963888c53e
Better handle marshaling of packed types (#3508)

* This improves the marshaling for packed classes and class involved in an inheritance hierarchy.
* Similar changes were made in the Unity fork of mono across a number of commits.
* The tests here have been taken from the repo and converted to work as NUnit tests in Mono.
mcs/class/corlib/Test/System.Runtime.InteropServices/MarshalTest.cs
mono/metadata/marshal.c