diff options
author | Yabin Cui <yabinc@google.com> | 2014-12-22 19:17:33 -0800 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2015-01-02 14:33:48 -0800 |
commit | 6a7aaf46759db32c6ed0eb953a4a230dc96af0d9 (patch) | |
tree | 89b9cbd40571d38d60c19730224c90efd0fb4ebf /tests | |
parent | a2177c6ccb65104659543c895b753458abfadcab (diff) | |
download | bionic-6a7aaf46759db32c6ed0eb953a4a230dc96af0d9.zip bionic-6a7aaf46759db32c6ed0eb953a4a230dc96af0d9.tar.gz bionic-6a7aaf46759db32c6ed0eb953a4a230dc96af0d9.tar.bz2 |
Reserve enough user request stack space in pthread_create.
Bug: 18830897
Change-Id: I1ba4aaeaf66a7ff99c5d82ad45469011171b0a3b
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pthread_test.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/pthread_test.cpp b/tests/pthread_test.cpp index 4fc5bed..1418c76 100644 --- a/tests/pthread_test.cpp +++ b/tests/pthread_test.cpp @@ -644,8 +644,7 @@ TEST(pthread, pthread_attr_setstacksize) { ASSERT_EQ(0, pthread_attr_getstacksize(&attributes, &stack_size)); ASSERT_EQ(32*1024U + 1, stack_size); #if defined(__BIONIC__) - // Bionic rounds up, which is what POSIX allows. - ASSERT_EQ(GetActualStackSize(attributes), (32 + 4)*1024U); + ASSERT_EQ(GetActualStackSize(attributes), 32*1024U + 1); #else // __BIONIC__ // glibc rounds down, in violation of POSIX. They document this in their BUGS section. ASSERT_EQ(GetActualStackSize(attributes), 32*1024U); |