mirror of
https://github.com/roytam1/UXP.git
synced 2026-05-26 14:54:25 +00:00
Issue #2255 - Disable untested code path in Stopwatch.(h|cpp). https://bugzilla.mozilla.org/show_bug.cgi?id=1325299 Multiprocessor support in Windows returned bogus times causing debug asserts. This may or may not be related to the issue but found it trying to debug it.
This commit is contained in:
@@ -409,7 +409,8 @@ AutoStopwatch::getCycles(JSRuntime* runtime) const
|
||||
cpuid_t inline
|
||||
AutoStopwatch::getCPU() const
|
||||
{
|
||||
#if defined(XP_WIN) && WINVER >= _WIN32_WINNT_VISTA
|
||||
// Temporary disable untested code path. Issue #2255
|
||||
#if 0 //defined(XP_WIN) && WINVER >= _WIN32_WINNT_VISTA
|
||||
PROCESSOR_NUMBER proc;
|
||||
GetCurrentProcessorNumberEx(&proc);
|
||||
|
||||
@@ -423,7 +424,8 @@ AutoStopwatch::getCPU() const
|
||||
bool inline
|
||||
AutoStopwatch::isSameCPU(const cpuid_t& a, const cpuid_t& b) const
|
||||
{
|
||||
#if defined(XP_WIN) && WINVER >= _WIN32_WINNT_VISTA
|
||||
// Temporary disable untested code path. Issue #2255
|
||||
#if 0 //defined(XP_WIN) && WINVER >= _WIN32_WINNT_VISTA
|
||||
return a.group_ == b.group_ && a.number_ == b.number_;
|
||||
#else
|
||||
return true;
|
||||
|
||||
@@ -271,7 +271,8 @@ struct PerformanceMonitoring {
|
||||
uint64_t highestTimestampCounter_;
|
||||
};
|
||||
|
||||
#if WINVER >= 0x0600
|
||||
// Temporary disable untested code path. Issue #2255
|
||||
#if 0 // WINVER >= 0x0600
|
||||
struct cpuid_t {
|
||||
WORD group_;
|
||||
BYTE number_;
|
||||
|
||||
Reference in New Issue
Block a user