* Fix ERROR_PARTIAL_COPY retry. MiniDumpWriteDump sets the last error to the HRESULT instead of win32 error code
* Fix createdump crash triggering on x86 runtime. The initialization code
was in the wrong place and not being called on the x86 coreclr.dll. Moved
it to early in EEStartupHelper.
else
{
int err = GetLastError();
- if (err != ERROR_PARTIAL_COPY)
+ if (err != HRESULT_FROM_WIN32(ERROR_PARTIAL_COPY))
{
- fprintf(stderr, "Write dump FAILED %d\n", err);
+ fprintf(stderr, "Write dump FAILED 0x%08x\n", err);
break;
}
}
IfFailGo(EEConfig::Setup());
#ifndef CROSSGEN_COMPILE
+
+#ifdef HOST_WINDOWS
+ InitializeCrashDump();
+#endif // HOST_WINDOWS
+
// Initialize Numa and CPU group information
// Need to do this as early as possible. Used by creating object handle
// table inside Ref_Initialization() before GC is initialized.
// Register handler for termination requests (e.g. SIGTERM)
PAL_SetTerminationRequestHandler(HandleTerminationRequest);
#endif // TARGET_UNIX
-#ifdef HOST_WINDOWS
- InitializeCrashDump();
-#endif // HOST_WINDOWS
}
struct UpdateObjectRefInResumeContextCallbackState