aboutsummaryrefslogtreecommitdiff
path: root/openmp/runtime
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2022-08-12 22:15:38 -0700
committerFangrui Song <i@maskray.me>2022-08-12 22:15:38 -0700
commitacfe0d3b157361433977c3341a0ec88ebeabc2f7 (patch)
tree4092b37f2551e5e647cb472568a2eedcd70c9dd6 /openmp/runtime
parent7332b18fa7e78622bd6c81ff251ce3484a466a96 (diff)
downloadllvm-acfe0d3b157361433977c3341a0ec88ebeabc2f7.zip
llvm-acfe0d3b157361433977c3341a0ec88ebeabc2f7.tar.gz
llvm-acfe0d3b157361433977c3341a0ec88ebeabc2f7.tar.bz2
[openmp] Remove __ANDROID_API__ < 19 workaround
https://github.com/android/ndk/wiki/Changelog-r24 shows that the NDK has moved forward to at least a minimum target API of 19. Remove old workaround.
Diffstat (limited to 'openmp/runtime')
-rw-r--r--openmp/runtime/src/z_Linux_util.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/openmp/runtime/src/z_Linux_util.cpp b/openmp/runtime/src/z_Linux_util.cpp
index 91edf025..0e9c8e7 100644
--- a/openmp/runtime/src/z_Linux_util.cpp
+++ b/openmp/runtime/src/z_Linux_util.cpp
@@ -765,13 +765,6 @@ void __kmp_create_worker(int gtid, kmp_info_t *th, size_t stack_size) {
and also gives the user the stack space they requested for all threads */
stack_size += gtid * __kmp_stkoffset * 2;
-#if defined(__ANDROID__) && __ANDROID_API__ < 19
- // Round the stack size to a multiple of the page size. Older versions of
- // Android (until KitKat) would fail pthread_attr_setstacksize with EINVAL
- // if the stack size was not a multiple of the page size.
- stack_size = (stack_size + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1);
-#endif
-
KA_TRACE(10, ("__kmp_create_worker: T#%d, default stacksize = %lu bytes, "
"__kmp_stksize = %lu bytes, final stacksize = %lu bytes\n",
gtid, KMP_DEFAULT_STKSIZE, __kmp_stksize, stack_size));