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 486454 bc927ef7a44e34cbcea66eabbfe1fb0b850799dd
parent 479958 e677ba018b22558fef1d07b74d416fd3a28a5dc3
child 486455 7efe87e690b2365ca08d5a321840d94239313492
push id45978
push usermconley@mozilla.com
push dateFri, 17 Feb 2017 22:56:26 +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
@@ -25,17 +25,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