From dd9e417dc0f11d7ec3bed54de75853ecf87e70e5 Mon Sep 17 00:00:00 2001 From: Mukul Sabharwal Date: Mon, 10 Jun 2019 08:09:12 -0700 Subject: [PATCH] Use SIZE_T for SectionSize in RegisterFrozenSegment (#25044) --- src/System.Private.CoreLib/src/System/GC.cs | 2 +- src/vm/comutilnative.cpp | 2 +- src/vm/comutilnative.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/System.Private.CoreLib/src/System/GC.cs b/src/System.Private.CoreLib/src/System/GC.cs index 4e7e1fb..26bc6c7 100644 --- a/src/System.Private.CoreLib/src/System/GC.cs +++ b/src/System.Private.CoreLib/src/System/GC.cs @@ -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); diff --git a/src/vm/comutilnative.cpp b/src/vm/comutilnative.cpp index b912ace..1a045f6 100644 --- a/src/vm/comutilnative.cpp +++ b/src/vm/comutilnative.cpp @@ -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; diff --git a/src/vm/comutilnative.h b/src/vm/comutilnative.h index d009d55..6afbc5a 100644 --- a/src/vm/comutilnative.h +++ b/src/vm/comutilnative.h @@ -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); -- 2.7.4