OSDN Git Service

Split up the stack space tests into their own noinline functions.
authorJosh Gao <jmgao@google.com>
Thu, 16 Mar 2017 02:42:05 +0000 (19:42 -0700)
committerJosh Gao <jmgao@google.com>
Thu, 16 Mar 2017 02:53:17 +0000 (19:53 -0700)
commit61db9ac8da441d426a13ae59fca5256a77a06c6f
tree3cda72b13844a3980205d920f75e5a6edc7ab0a1
parent2390f83da4c76ec627313fa565ec87236a391e5e
Split up the stack space tests into their own noinline functions.

Prevent the compiler from being too smart and allocating a stack buffer
at the beginning of a function.

Bug: http://b/36206043
Test: 32/64-bit dynamic tests pass, static ones still don't
Change-Id: I90c575be43a9dd6c4fefc0d8b514f1ae0405b994
tests/pthread_test.cpp