mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 14:58:37 +09: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:
parent
013f130eef
commit
9f80f52d0a
2 changed files with 6 additions and 3 deletions
|
|
@ -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_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue