فهرست منبع

do not check QCMoreFreq.. on non mobile platforms

Oguz Bastemur 8 سال پیش
والد
کامیت
037d8299b3
3فایلهای تغییر یافته به همراه6 افزوده شده و 3 حذف شده
  1. 2 2
      lib/Common/Common/NumberUtilities.cpp
  2. 2 1
      lib/Common/Core/SysInfo.cpp
  3. 2 0
      lib/Runtime/Base/ThreadContext.cpp

+ 2 - 2
lib/Common/Common/NumberUtilities.cpp

@@ -125,8 +125,8 @@ namespace Js
         {
             mov eax, lu1
             mul lu2
-                mov ebx, pluHi
-                mov DWORD PTR[ebx], edx
+            mov ebx, pluHi
+            mov DWORD PTR[ebx], edx
         }
 #else //!I386_ASM
         DWORDLONG llu = UInt32x32To64(lu1, lu2);

+ 2 - 1
lib/Common/Core/SysInfo.cpp

@@ -109,11 +109,12 @@ AutoSystemInfo::Initialize()
         disableDebugScopeCapture = false;
     }
 
-    this->shouldQCMoreFrequently = false;
     this->supportsOnlyMultiThreadedCOM = false;
 #if defined(__ANDROID__) || defined(__IOS__)
     this->isLowMemoryDevice = true;
+    this->shouldQCMoreFrequently = true;
 #else
+    this->shouldQCMoreFrequently = false;
     this->isLowMemoryDevice = false;
 #endif
 

+ 2 - 0
lib/Runtime/Base/ThreadContext.cpp

@@ -1712,6 +1712,7 @@ ThreadContext::ProbeStackNoDispose(size_t size, Js::ScriptContext *scriptContext
         Js::Throw::StackOverflow(scriptContext, returnAddress);
     }
 
+#if defined(NTBUILD) || defined(__IOS__) || defined(__ANDROID__)
     // Use every Nth stack probe as a QC trigger.
     if (AutoSystemInfo::ShouldQCMoreFrequently() && this->HasInterruptPoller() && this->IsScriptActive())
     {
@@ -1722,6 +1723,7 @@ ThreadContext::ProbeStackNoDispose(size_t size, Js::ScriptContext *scriptContext
             this->CheckInterruptPoll();
         }
     }
+#endif
 }
 
 void