summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Churbanov <Andrey.Churbanov@intel.com>2015-02-20 17:57:58 +0000
committerAndrey Churbanov <Andrey.Churbanov@intel.com>2015-02-20 17:57:58 +0000
commita5547bce79d499dfca40695554a8d1a42648eae6 (patch)
tree56cbb5067a0142dc0b1905181214e5d0bfd26976
parentb6f705b6edd19c152125bd4eb147f04ff367c751 (diff)
downloadbcm5719-llvm-a5547bce79d499dfca40695554a8d1a42648eae6.tar.gz
bcm5719-llvm-a5547bce79d499dfca40695554a8d1a42648eae6.zip
Changed default stack offset for threads on non-Mac architectures to a CACHE_LINE.
llvm-svn: 230029
-rw-r--r--openmp/runtime/src/kmp.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/openmp/runtime/src/kmp.h b/openmp/runtime/src/kmp.h
index f6735554fd8..b76e1df68db 100644
--- a/openmp/runtime/src/kmp.h
+++ b/openmp/runtime/src/kmp.h
@@ -869,7 +869,11 @@ extern unsigned int __kmp_place_core_offset;
#define KMP_MIN_STKOFFSET (0)
#define KMP_MAX_STKOFFSET KMP_MAX_STKSIZE
-#define KMP_DEFAULT_STKOFFSET KMP_MIN_STKOFFSET
+#if KMP_OS_DARWIN
+# define KMP_DEFAULT_STKOFFSET KMP_MIN_STKOFFSET
+#else
+# define KMP_DEFAULT_STKOFFSET CACHE_LINE
+#endif
#define KMP_MIN_STKPADDING (0)
#define KMP_MAX_STKPADDING (2 * 1024 * 1024)
OpenPOWER on IntegriCloud