Use SIZE_T for SectionSize in RegisterFrozenSegment (#25044)
authorMukul Sabharwal <mjsabby@gmail.com>
Mon, 10 Jun 2019 15:09:12 +0000 (08:09 -0700)
committerJan Kotas <jkotas@microsoft.com>
Mon, 10 Jun 2019 15:09:12 +0000 (08:09 -0700)
src/System.Private.CoreLib/src/System/GC.cs
src/vm/comutilnative.cpp
src/vm/comutilnative.h

index 4e7e1fb..26bc6c7 100644 (file)
@@ -345,7 +345,7 @@ namespace System
         }
 
         [DllImport(JitHelpers.QCall, CharSet = CharSet.Unicode)]
-        private static extern IntPtr _RegisterFrozenSegment(IntPtr sectionAddress, int sectionSize);
+        private static extern IntPtr _RegisterFrozenSegment(IntPtr sectionAddress, IntPtr sectionSize);
 
         [DllImport(JitHelpers.QCall, CharSet = CharSet.Unicode)]
         private static extern IntPtr _UnregisterFrozenSegment(IntPtr segmentHandle);
index b912ace..1a045f6 100644 (file)
@@ -1342,7 +1342,7 @@ FCIMPLEND;
 **Arguments: args-> pointer to section, size of section
 **Exceptions: None
 ==============================================================================*/
-void* QCALLTYPE GCInterface::RegisterFrozenSegment(void* pSection, INT32 sizeSection)
+void* QCALLTYPE GCInterface::RegisterFrozenSegment(void* pSection, SIZE_T sizeSection)
 {
     QCALL_CONTRACT;
 
index d009d55..6afbc5a 100644 (file)
@@ -146,7 +146,7 @@ public:
 
 #ifdef FEATURE_BASICFREEZE
     static
-    void* QCALLTYPE RegisterFrozenSegment(void *pSection, INT32 sizeSection);
+    void* QCALLTYPE RegisterFrozenSegment(void *pSection, SIZE_T sizeSection);
 
     static
     void QCALLTYPE UnregisterFrozenSegment(void *segmentHandle);