1
0
Fork 0
mirror of https://github.com/VSadov/Satori.git synced 2025-06-08 03:27:04 +09:00

revert unnecessary changes

This commit is contained in:
vsadov 2022-09-16 10:51:12 -07:00
parent 63f0cdb3bb
commit 865b3a059d

View file

@ -1076,7 +1076,11 @@ void GCToOSInterface::GetMemoryStatus(uint64_t restricted_limit, uint32_t* memor
int64_t GCToOSInterface::QueryPerformanceCounter()
{
LARGE_INTEGER ts;
::QueryPerformanceCounter(&ts);
if (!::QueryPerformanceCounter(&ts))
{
assert(false && "Failed to query performance counter");
}
return ts.QuadPart;
}
@ -1086,7 +1090,11 @@ int64_t GCToOSInterface::QueryPerformanceCounter()
int64_t GCToOSInterface::QueryPerformanceFrequency()
{
LARGE_INTEGER ts;
::QueryPerformanceFrequency(&ts);
if (!::QueryPerformanceFrequency(&ts))
{
assert(false && "Failed to query performance counter");
}
return ts.QuadPart;
}