@@ -2151,7 +2151,7 @@ private uint getClassAttribsInternal(TypeDesc type)
21512151 }
21522152
21532153#pragma warning disable CA1822 // Mark members as static
2154- private void * LongLifetimeMalloc ( UIntPtr sz )
2154+ private void * LongLifetimeMalloc ( nuint sz )
21552155#pragma warning restore CA1822 // Mark members as static
21562156 {
21572157 return NativeMemory . Alloc ( sz ) ;
@@ -2164,9 +2164,9 @@ private void LongLifetimeFree(void* obj)
21642164 NativeMemory . Free ( obj ) ;
21652165 }
21662166
2167- private UIntPtr getClassStaticDynamicInfo ( CORINFO_CLASS_STRUCT_ * cls )
2167+ private void * getClassStaticDynamicInfo ( CORINFO_CLASS_STRUCT_ * cls )
21682168 { throw new NotImplementedException ( "getClassStaticDynamicInfo" ) ; }
2169- private UIntPtr getClassThreadStaticDynamicInfo ( CORINFO_CLASS_STRUCT_ * cls )
2169+ private void * getClassThreadStaticDynamicInfo ( CORINFO_CLASS_STRUCT_ * cls )
21702170 { throw new NotImplementedException ( "getClassThreadStaticDynamicInfo" ) ; }
21712171
21722172 private uint getClassSize ( CORINFO_CLASS_STRUCT_ * cls )
@@ -2616,7 +2616,7 @@ private GetTypeLayoutResult GetTypeLayoutHelper(MetadataType type, uint parentIn
26162616 return GetTypeLayoutResult . Success ;
26172617 }
26182618
2619- private GetTypeLayoutResult getTypeLayout ( CORINFO_CLASS_STRUCT_ * typeHnd , CORINFO_TYPE_LAYOUT_NODE * treeNodes , UIntPtr * numTreeNodes )
2619+ private GetTypeLayoutResult getTypeLayout ( CORINFO_CLASS_STRUCT_ * typeHnd , CORINFO_TYPE_LAYOUT_NODE * treeNodes , nuint * numTreeNodes )
26202620 {
26212621 TypeDesc type = HandleToObject ( typeHnd ) ;
26222622
@@ -3222,7 +3222,7 @@ private void reportMetadata(byte* key, void* value, nuint length)
32223222 }
32233223
32243224#pragma warning disable CA1822 // Mark members as static
3225- private void * allocateArray ( UIntPtr cBytes )
3225+ private void * allocateArray ( nuint cBytes )
32263226#pragma warning restore CA1822 // Mark members as static
32273227 {
32283228 return NativeMemory . Alloc ( cBytes ) ;
@@ -3347,10 +3347,10 @@ private void getEEInfo(ref CORINFO_EE_INFO pEEInfoOut)
33473347
33483348 pEEInfoOut . sizeOfReversePInvokeFrame = ( uint ) SizeOfReversePInvokeTransitionFrame ;
33493349
3350- pEEInfoOut . osPageSize = new UIntPtr ( 0x1000 ) ;
3350+ pEEInfoOut . osPageSize = 0x1000 ;
33513351
33523352 pEEInfoOut . maxUncheckedOffsetForNullObject = ( _compilation . NodeFactory . Target . IsWindows ) ?
3353- new UIntPtr ( 32 * 1024 - 1 ) : new UIntPtr ( ( uint ) pEEInfoOut . osPageSize / 2 - 1 ) ;
3353+ ( 32 * 1024 - 1 ) : ( pEEInfoOut . osPageSize / 2 - 1 ) ;
33543354
33553355 pEEInfoOut . targetAbi = TargetABI ;
33563356 pEEInfoOut . osType = TargetToOs ( _compilation . NodeFactory . Target ) ;
@@ -3867,9 +3867,9 @@ private void allocUnwindInfo(byte* pHotCode, byte* pColdCode, uint startOffset,
38673867#endif
38683868 }
38693869
3870- private void * allocGCInfo ( UIntPtr size )
3870+ private void * allocGCInfo ( nuint size )
38713871 {
3872- _gcInfo = new byte [ ( int ) size ] ;
3872+ _gcInfo = new byte [ size ] ;
38733873 return ( void * ) GetPin ( _gcInfo ) ;
38743874 }
38753875
0 commit comments