Commit 870eb296 authored by Dan Albert's avatar Dan Albert Committed by Pirama Arumuga Nainar
Browse files

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: I1b986cee3581f06d3c68b1011f25a07111287cdd
parent 4bd94036
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment