commit | f91b92fd1f4ecc7c795bb900e75781be84dc6024 | [log] [tgz] |
---|---|---|
author | Yi Kong <yikong@google.com> | Mon Nov 20 17:10:59 2017 -0800 |
committer | Yi Kong <yikong@google.com> | Mon Dec 18 14:39:01 2017 -0800 |
tree | 59f0031a5150b76d7723fe552a234910916eb200 | |
parent | 1fb3d8d913a7bd906dee990db4197693728e4223 [diff] |
Workaround bug in old 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. Test: Build, copied into the NDK, passed openmp test on ICS. Bug: https://github.com/android-ndk/ndk/issues/9 Change-Id: I30f171d33f0eb3547fe37b8770c60a0b1025717c