Skip to content

Commit

Permalink
Use nint instead of IntPtr in _RegisterFrozenSegment. (dotnet#37029)
Browse files Browse the repository at this point in the history
  • Loading branch information
eerhardt authored May 27, 2020
1 parent 08e0445 commit d3db91a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coreclr/src/System.Private.CoreLib/src/System/GC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ public static long GetTotalMemory(bool forceFullCollection)
}

[DllImport(RuntimeHelpers.QCall, CharSet = CharSet.Unicode)]
private static extern IntPtr _RegisterFrozenSegment(IntPtr sectionAddress, IntPtr sectionSize);
private static extern IntPtr _RegisterFrozenSegment(IntPtr sectionAddress, nint sectionSize);

[DllImport(RuntimeHelpers.QCall, CharSet = CharSet.Unicode)]
private static extern void _UnregisterFrozenSegment(IntPtr segmentHandle);
Expand Down

0 comments on commit d3db91a

Please sign in to comment.