diff options
author | Yi Kong <yikong@google.com> | 2019-07-25 22:29:55 +0000 |
---|---|---|
committer | Yi Kong <yikong@google.com> | 2019-07-25 22:29:55 +0000 |
commit | 34b2830c8305adcd0710076127e8a817ba4ba4db (patch) | |
tree | b52997bd1c3636049ce1439450fd067111814003 /runtime/tools | |
parent | ca7d371ddfa08d131688282b20a2f678a4339b9f (diff) |
[openmp] Workaround bug in old Android pthread_attr_setstacksize
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.
Patch by Dan Albert <danalbert@google.com>.
Test: Build, copied into the NDK, passed openmp test on ICS.
Bug: https://github.com/android-ndk/ndk/issues/9
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@367070 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime/tools')
0 files changed, 0 insertions, 0 deletions