From b271aff1fa54c1385143f3b45c1bf3af01c901cd Mon Sep 17 00:00:00 2001 From: Vladimir Sadov Date: Thu, 2 May 2019 22:16:31 -0700 Subject: System.GC.AllocateUninitializedArray (#24096) * Do not expand to allocation_quantum in SOH when GC_ALLOC_ZEROING_OPTIONAL * short-circuit short arrays to use `new T[size]` * Clean syncblock of large-aligned objects on ARM32 * specialize single-dimensional path AllocateSzArray * Unit tests * Some PR feedback. Made AllocateUninitializedArray not be trimmed away. * PR feedback on gchelpers - replaced use of multiple bool parameters with flags enum - merged some methods with nearly identical implementation - switched callers to use AllocateSzArray vs. AllocateArrayEx where appropriate. * PR feedback. Removed X86 specific array/string allocation helpers. --- src/vm/ecalllist.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vm/ecalllist.h') diff --git a/src/vm/ecalllist.h b/src/vm/ecalllist.h index 34aead9373..4c7fffc74f 100644 --- a/src/vm/ecalllist.h +++ b/src/vm/ecalllist.h @@ -782,6 +782,8 @@ FCFuncStart(gGCInterfaceFuncs) FCFuncElement("_GetAllocatedBytesForCurrentThread", GCInterface::GetAllocatedBytesForCurrentThread) + FCFuncElement("AllocateNewArray", GCInterface::AllocateNewArray) + #ifdef FEATURE_BASICFREEZE QCFuncElement("_RegisterFrozenSegment", GCInterface::RegisterFrozenSegment) QCFuncElement("_UnregisterFrozenSegment", GCInterface::UnregisterFrozenSegment) -- cgit v1.2.3