diff --git a/src/coreclr/System.Private.CoreLib/System.Private.CoreLib.csproj b/src/coreclr/System.Private.CoreLib/System.Private.CoreLib.csproj
index 08f6699e0a02db..a6cb1fd6d1039b 100644
--- a/src/coreclr/System.Private.CoreLib/System.Private.CoreLib.csproj
+++ b/src/coreclr/System.Private.CoreLib/System.Private.CoreLib.csproj
@@ -209,12 +209,12 @@
-
-
-
-
-
-
+
+
+
+
+
+
@@ -248,7 +248,8 @@
Common\System\Collections\Generic\ArrayBuilder.cs
-
+
+
@@ -328,11 +329,7 @@
-
+
diff --git a/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeHelpers.CoreCLR.cs b/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeHelpers.CoreCLR.cs
index 534a251630cdac..4e75d7db895ce4 100644
--- a/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeHelpers.CoreCLR.cs
+++ b/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeHelpers.CoreCLR.cs
@@ -191,14 +191,9 @@ public static object GetUninitializedObject(
throw new SerializationException(SR.Format(SR.Serialization_InvalidType, type));
}
- object? obj = null;
- GetUninitializedObject(new QCallTypeHandle(ref rt), ObjectHandleOnStack.Create(ref obj));
- return obj!;
+ return rt.GetUninitializedObject();
}
- [LibraryImport(QCall, EntryPoint = "ReflectionSerialization_GetUninitializedObject")]
- private static partial void GetUninitializedObject(QCallTypeHandle type, ObjectHandleOnStack retObject);
-
[MethodImpl(MethodImplOptions.InternalCall)]
internal static extern object AllocateUninitializedClone(object obj);
diff --git a/src/coreclr/System.Private.CoreLib/src/System/RuntimeType.ActivatorCache.cs b/src/coreclr/System.Private.CoreLib/src/System/RuntimeType.ActivatorCache.cs
index d82daa26f0ccf4..4d73cfad391430 100644
--- a/src/coreclr/System.Private.CoreLib/src/System/RuntimeType.ActivatorCache.cs
+++ b/src/coreclr/System.Private.CoreLib/src/System/RuntimeType.ActivatorCache.cs
@@ -24,6 +24,8 @@ private sealed unsafe class ActivatorCache
private readonly delegate*