HomePhabricator

[openmp] Workaround bug in old Android pthread_attr_setstacksize

Authored by kongyi on Jul 25 2019, 3:29 PM.

Description

[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
llvm-svn: 367070

Details

Committed
kongyiJul 25 2019, 3:29 PM
Parents
rG8f15d40555f2: [InstCombine] add tests for lerp patterns (PR42716); NFC
Branches
Unknown
Tags
Unknown