Skip to content

Instantly share code, notes, and snippets.

@trylek
trylek / SDP.NgenDump
Created January 15, 2020 22:10
JIT NgenDump for failing build of the System.Drawing.Primitives.dll framework assembly
D:\git\runtime3\.dotnet
****** START compiling System.Drawing.KnownColorTable:GetSystemColorId(int):int (MethodHash=119a4352)
Generating code for Windows x64
OPTIONS: compCodeOpt = BLENDED_CODE
OPTIONS: compDbgCode = false
OPTIONS: compDbgInfo = true
OPTIONS: compDbgEnC = false
OPTIONS: compProcedureSplitting = false
OPTIONS: compProcedureSplittingEH = false
OPTIONS: Jit invoked for ngen
This file has been truncated, but you can view the full file.
****** START compiling <ReadContentAsBinaryAsync>d__588:MoveNext():this (MethodHash=7cca7a27)
Generating code for Windows x64
OPTIONS: compCodeOpt = BLENDED_CODE
OPTIONS: compDbgCode = false
OPTIONS: compDbgInfo = true
OPTIONS: compDbgEnC = false
OPTIONS: compProcedureSplitting = false
OPTIONS: compProcedureSplittingEH = false
OPTIONS: Jit invoked for ngen
IL to import:
This file has been truncated, but you can view the full file.
****** START compiling <ReadContentAsBinaryAsync>d__588:MoveNext():this (MethodHash=7cca7a27)
Generating code for Windows x64
OPTIONS: compCodeOpt = BLENDED_CODE
OPTIONS: compDbgCode = false
OPTIONS: compDbgInfo = true
OPTIONS: compDbgEnC = false
OPTIONS: compProcedureSplitting = false
OPTIONS: compProcedureSplittingEH = false
OPTIONS: Jit invoked for ngen
IL to import:
@trylek
trylek / PInvoke-cg1.log
Created April 13, 2020 16:49
Interop+Kernel32::ReadFile PInvoke - IL stub generated by Crossgen1
NDirect IL stub dump: ILStubClass::IL_STUB_PInvoke
incoming managed sig: 000001E72B89C569: int32 *(class System.Runtime.InteropServices.SafeHandle,uint8*,int32,int32&,native int)
locals sig: 000001E7296926D1: (int32,native int,bool,int64,int64,int32& pinned,int64,int32,int32,int32)
try_begin: 0x0004 try_end: 0x005e finally_begin: 0x0061 finally_end: 0x006e
dwStubFlags: 0x0000000a
NDIRECTSTUB_FL_BESTFIT
NDIRECTSTUB_FL_NGENEDSTUB
jitFlags:
CORJIT_FLAGS::CORJIT_FLAG_IL_STUB
CORJIT_FLAGS::CORJIT_FLAG_PUBLISH_SECRET_PARAM
@trylek
trylek / PInvoke-cg2.log
Created April 13, 2020 16:51
Interop+Kernel32::ReadFile PInvoke IL stub generated by Crossgen2
NDirect IL stub dump: ILStubClass::IL_STUB_PInvoke
incoming managed sig: 00007FFC5AF71DB1: int32 *(class System.Runtime.InteropServices.SafeHandle,uint8*,int32,int32&,native int)
locals sig: 00000222930A8DC1: (int32,native int,bool,int64,int64,int32& pinned,int64,int32,int32,int32)
try_begin: 0x0004 try_end: 0x005e finally_begin: 0x0061 finally_end: 0x006e
dwStubFlags: 0x00000002
NDIRECTSTUB_FL_BESTFIT
jitFlags:
CORJIT_FLAGS::CORJIT_FLAG_IL_STUB
CORJIT_FLAGS::CORJIT_FLAG_PUBLISH_SECRET_PARAM
Initialize {
@trylek
trylek / PInvoke-native-cg1.log
Created April 13, 2020 16:54
ReadFile PInvoke native code produced by Crossgen1
Int32 Interop+Kernel32.ReadFile(System.Runtime.InteropServices.SafeHandle, Byte*, Int32, ref Int32, IntPtr)
Handle: 0x0600004B
Rid: 75
Number of RuntimeFunctions: 2
Int32 Interop+Kernel32.ReadFile(System.Runtime.InteropServices.SafeHandle, Byte*, Int32, ref Int32, IntPtr)
Size: 233 bytes
Version: 1
Flags: 0x03 EHANDLER UHANDLER
SizeOfProlog: 0x0013
@trylek
trylek / PInvoke-native-cg2.log
Created April 13, 2020 16:54
ReadFile PInvoke native code compiled with Crossgen2
Int32 Interop+Kernel32.ReadFile(System.Runtime.InteropServices.SafeHandle, Byte*, Int32, ref Int32, IntPtr)
Handle: 0x0600004C
Rid: 76
Number of RuntimeFunctions: 2
Number of fixups: 5
Int32 Interop+Kernel32.ReadFile(System.Runtime.InteropServices.SafeHandle, Byte*, Int32, ref Int32, IntPtr) (INDIRECT_PINVOKE_TARGET)
bool (TYPE_HANDLE)
int (TYPE_HANDLE)
IntPtr (TYPE_HANDLE)
void (TYPE_HANDLE)
@trylek
trylek / CG2-ReadFile-NGenDump.log
Created April 13, 2020 16:58
ReadFile NGenDump from Crossgen2
D:\git\runtime5\artifacts\tests\coreclr\Windows_NT.x64.Checked\Tests\Core_Root\corerun.exe D:\git\runtime5\artifacts\tests\coreclr\Windows_NT.x64.Checked\Tests\Core_Root\crossgen2\crossgen2.dll @D:\git\runtime5\artifacts\tests\coreclr\Windows_NT.x64.Checked\Tests\Core_Root\CPAOT-chk.out\framework-r2r.dll.rsp
<<<<
****** START compiling Kernel32:ReadFile([S.P.CoreLib]System.Runtime.InteropServices.SafeHandle,long,int,byref,long):int (MethodHash=c1f39be0)
Generating code for Windows x64
OPTIONS: compCodeOpt = BLENDED_CODE
OPTIONS: compDbgCode = true
OPTIONS: compDbgInfo = true
OPTIONS: compDbgEnC = false
OPTIONS: compProcedureSplitting = false
OPTIONS: compProcedureSplittingEH = false
@trylek
trylek / ReadFileNative.CG1
Created April 13, 2020 20:49
CG1-compiled ReadFileNative
Int32 System.IO.FileStream.ReadFileNative(Microsoft.Win32.SafeHandles.SafeFileHandle, System.Span`1<Byte>, System.Threading.NativeOverlapped*, ref Int32)
Handle: 0x06004CEA
Rid: 19690
Number of RuntimeFunctions: 1
Number of fixups: 3
handle != null (STRING_HANDLE)
Async IO and overlapped parameters inconsistent in call to ReadFileNative. (STRING_HANDLE)
System.Span`1<byte> (TYPE_HANDLE)
Int32 System.IO.FileStream.ReadFileNative(Microsoft.Win32.SafeHandles.SafeFileHandle, System.Span`1<Byte>, System.Threading.NativeOverlapped*, ref Int32)
@trylek
trylek / i4div_cs_do.map
Created April 25, 2020 16:46
Sample map file for a small test generated by the new Crossgen2 map file emitter
Summary Info
------------
Output file size: 145920
Section count: 4
Node count: 219
Symbol count: 370
Node Type Statistics
--------------------