[runtime] Fix sizeof MonoArray with non gnu compiler
authorVlad Brezae <brezaevlad@gmail.com>
Thu, 26 Nov 2015 12:06:54 +0000 (12:06 +0000)
committerVlad Brezae <brezaevlad@gmail.com>
Thu, 26 Nov 2015 12:19:27 +0000 (04:19 -0800)
commita14a49e8cf97561aae03b9cb8e08dee1a65ddb61
tree67d704b8dd46e32b8f7bf9451b80dbfd232c55d8
parent3c9209bb4296673956aea216c0cbeade28eb9868
[runtime] Fix sizeof MonoArray with non gnu compiler

We would have the problem that array->vector != array + sizeof
(MonoArray), which would waste space and also lead to problems in
accessing the array elements.
mono/metadata/monitor.c
mono/metadata/object-internals.h
mono/metadata/object.c
mono/metadata/sgen-client-mono.h
mono/metadata/sgen-mono.c