OSDN Git Service

Fix pthread_attr_getstack__main_thread.
authorElliott Hughes <enh@google.com>
Thu, 4 Sep 2014 23:09:25 +0000 (16:09 -0700)
committerElliott Hughes <enh@google.com>
Thu, 4 Sep 2014 23:09:25 +0000 (16:09 -0700)
commit27a9aed81978af792cb06035a1619c8141a5fb5b
tree7980f076768d6a82286d2c7e62a56e7febad4d5e
parentc74a7680a409cd9f0cd3847b59e20ac16ad05806
Fix pthread_attr_getstack__main_thread.

There were two problems here:

* This would fail when run with unlimited stack, because it didn't know
  that bionic reports unlimited stacks as 8MiB.

* This would leave RLIMIT_STACK small, causing failures to exec (so the
  popen and system tests would fail).

Change-Id: I5b92dc64ca089400223b2d9a3743e9b9d57c1bc2
tests/pthread_test.cpp