[sgen] Implement api for allocating pinned arrays (#34398)
authorVlad Brezae <brezaevlad@gmail.com>
Fri, 3 Apr 2020 12:49:06 +0000 (15:49 +0300)
committerGitHub <noreply@github.com>
Fri, 3 Apr 2020 12:49:06 +0000 (15:49 +0300)
commit6d3dc44f303f425eca540b9a119fb1d2581c2dc9
treea135ac7a9c4fa31e67a18c46f7f2a5ec32ef341f
parentbe828d1d5733d056fe437587fda0c80f678be004
[sgen] Implement api for allocating pinned arrays (#34398)

* [sgen] Add support for allocating pinned array

These objects will end up allocated either in LOS (which is by design not moved around) or into special major blocks where compaction doesn't take place.

* [sgen] Be consistent with coreclr on GC api

* Enable GC tests for pinned array allocation

* Skip large array allocation test on mono
src/libraries/System.Runtime/tests/System/GCTests.cs
src/mono/mono/metadata/boehm-gc.c
src/mono/mono/metadata/gc-internals.h
src/mono/mono/metadata/icall-def-netcore.h
src/mono/mono/metadata/null-gc.c
src/mono/mono/metadata/object.c
src/mono/mono/metadata/sgen-mono.c
src/mono/netcore/System.Private.CoreLib/src/System/GC.Mono.cs