typedef CLRConfigTypes ConfigStringInfo;
static uint32_t GetConfigValue(ConfigDWORDInfo eType);
- static HRESULT GetConfigValue(ConfigStringInfo /*eType*/, TCHAR * * outVal);
+ static HRESULT GetConfigValue(ConfigStringInfo /*eType*/, __out_z TCHAR * * outVal);
};
inline bool FitsInU1(uint64_t val)
// current platform. It is indended for logging purposes only.
// Return:
// Numeric id of the current thread or 0 if the
- static uint32_t GetCurrentThreadIdForLogging();
+ static uint64_t GetCurrentThreadIdForLogging();
// Get id of the current process
// Return:
pBuffer[0] = '\n';
int buffer_start = 1;
- int pid_len = sprintf_s (&pBuffer[buffer_start], BUFFERSIZE - buffer_start, "[%5d]", GCToOSInterface::GetCurrentThreadIdForLogging());
+ int pid_len = sprintf_s (&pBuffer[buffer_start], BUFFERSIZE - buffer_start, "[%5lld]", GCToOSInterface::GetCurrentThreadIdForLogging());
buffer_start += pid_len;
memset(&pBuffer[buffer_start], '-', BUFFERSIZE - buffer_start);
int msg_len = _vsnprintf(&pBuffer[buffer_start], BUFFERSIZE - buffer_start, fmt, args );
Thread* current_thread = GetThread();
BOOL cooperative_mode = TRUE;
bgc_thread_id.SetToCurrentThread();
- dprintf (1, ("bgc_thread_id is set to %Ix", GCToOSInterface::GetCurrentThreadIdForLogging()));
+ dprintf (1, ("bgc_thread_id is set to %llx", GCToOSInterface::GetCurrentThreadIdForLogging()));
//this also indicates that the thread is ready.
background_gc_create_event.Set();
while (1)
if ((gen0size == 0) || !GCHeap::IsValidGen0MaxSize(gen0size))
{
-#if !defined(FEATURE_REDHAWK)
#ifdef SERVER_GC
// performance data seems to indicate halving the size results
// in optimal perf. Ask for adjusted gen0 size.
#else //SERVER_GC
gen0size = max((4*GCToOSInterface::GetLargestOnDieCacheSize(TRUE)/5),(256*1024));
#endif //SERVER_GC
-#else //!FEATURE_REDHAWK
- gen0size = (256*1024);
-#endif //!FEATURE_REDHAWK
}
// Generation 0 must never be more than 1/2 the segment size.
// current platform. It is indended for logging purposes only.
// Return:
// Numeric id of the current thread or 0 if the
-uint32_t GCToOSInterface::GetCurrentThreadIdForLogging()
+uint64_t GCToOSInterface::GetCurrentThreadIdForLogging()
{
return ::GetCurrentThreadId();
}