Bug 1312883 - MOZ_THREADSTACKHELPER_NATIVE should only be true on Windows. r?jchen draft
authorMike Conley <mconley@mozilla.com>
Fri, 10 Feb 2017 10:35:44 -0500
changeset 489267 347a1bf910b45c59af37e2719241a7181358b3e4
parent 489193 be661bae6cb9a53935c5b87744bf68879d9ebcc5
child 489268 eb2003d42bb4f402af91df395c92ce7821f170fe
push id46781
push usermconley@mozilla.com
push dateFri, 24 Feb 2017 15:47:14 +0000
reviewersjchen
bugs1312883
milestone54.0a1
Bug 1312883 - MOZ_THREADSTACKHELPER_NATIVE should only be true on Windows. r?jchen MozReview-Commit-ID: 3gf5FcnUUwa
xpcom/threads/ThreadStackHelper.h
--- a/xpcom/threads/ThreadStackHelper.h
+++ b/xpcom/threads/ThreadStackHelper.h
@@ -24,17 +24,17 @@
 
 // Support pseudostack on these platforms.
 #if defined(XP_LINUX) || defined(XP_WIN) || defined(XP_MACOSX)
 #  ifdef MOZ_GECKO_PROFILER
 #    define MOZ_THREADSTACKHELPER_PSEUDO
 #  endif
 #endif
 
-#ifdef MOZ_THREADSTACKHELPER_PSEUDO
+#if defined(MOZ_THREADSTACKHELPER_PSEUDO) && defined(XP_WIN)
 #  define MOZ_THREADSTACKHELPER_NATIVE
 #  if defined(__i386__) || defined(_M_IX86)
 #    define MOZ_THREADSTACKHELPER_X86
 #  elif defined(__x86_64__) || defined(_M_X64)
 #    define MOZ_THREADSTACKHELPER_X64
 #  elif defined(__arm__) || defined(_M_ARM)
 #    define MOZ_THREADSTACKHELPER_ARM
 #  else