* Fix two issues detected by Valgrind
When I have used Valgrind to investigate a memory corruption issue recently,
I've noticed that it has also reported two cases when a conditional jump
was using an uninitialized variable as one of the inputs to the condition.
This change fixes these.
m_DeserializationTracker = NULL;
m_currentPrepareCodeConfig = nullptr;
+
+#ifdef _DEBUG
+ memset(dangerousObjRefs, 0, sizeof(dangerousObjRefs));
+#endif // _DEBUG
}
//--------------------------------------------------------------------
GetCPUBusyTime_NT(&prevCPUInfo);
#else // !TARGET_UNIX
PAL_IOCP_CPU_INFORMATION prevCPUInfo;
+ memset(&prevCPUInfo, 0, sizeof(prevCPUInfo));
+
GetCPUBusyTime_NT(&prevCPUInfo); // ignore return value the first time
#endif // !TARGET_UNIX