projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6f705b
)
Changed default stack offset for threads on non-Mac architectures to a CACHE_LINE.
author
Andrey Churbanov
<Andrey.Churbanov@intel.com>
Fri, 20 Feb 2015 17:57:58 +0000
(17:57 +0000)
committer
Andrey Churbanov
<Andrey.Churbanov@intel.com>
Fri, 20 Feb 2015 17:57:58 +0000
(17:57 +0000)
llvm-svn: 230029
openmp/runtime/src/kmp.h
patch
|
blob
|
history
diff --git
a/openmp/runtime/src/kmp.h
b/openmp/runtime/src/kmp.h
index
f673555
..
b76e1df
100644
(file)
--- 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)