OSDN Git Service

Check current pid at libc initialization for 32-bit build.
authorYabin Cui <yabinc@google.com>
Tue, 29 Mar 2016 19:25:12 +0000 (12:25 -0700)
committerYabin Cui <yabinc@google.com>
Wed, 30 Mar 2016 23:45:08 +0000 (16:45 -0700)
commit36733fc4c10854766cca3b617aae61149895e4b2
treef4a67d81f76b31a9bc117a8f3f041aafc7c29300
parent6212e5dfada2ce1cd8b4915389452cba09e75b69
Check current pid at libc initialization for 32-bit build.

Although there is a test pthread.pthread_mutex_owner_tid_limit
to check pid_max, but bionic-unit-tests hangs before reaching
that test. So abort at libc initialization if not able to reach
the test when running bionic-unit-tests32. It is more friendly
for debugging.

Bug: 24016357
Change-Id: Ia70c2e36fd8a3a040d41ea5722c7b48a6134e102
libc/bionic/libc_init_common.cpp