OSDN Git Service

Allow NULL in pthread_mutex_lock/unlock.
authorChristopher Ferris <cferris@google.com>
Wed, 10 Jun 2015 01:46:15 +0000 (18:46 -0700)
committerChristopher Ferris <cferris@google.com>
Wed, 10 Jun 2015 01:46:15 +0000 (18:46 -0700)
commit511cfd9dc8cb41bca4920687c7d816ee916ee8e5
tree802f0fa957f99a38068981600a7fc81f68f04950
parent26e663d4796e74fc40a62b3d2a438b726bbb056e
Allow NULL in pthread_mutex_lock/unlock.

The pthread_mutex_lock and pthread_mutex_unlock were allowed to
fail silently on L 32 bit devices when passed a NULL. We changed
this to a crash on 32 bit devices, but there are still games that make
these calls and are not likely to be updated. Therefore, once again
allow NULL to be passed in on 32 bit devices.

Bug: 19995172
Change-Id: If7e8860075ecd63c0064d80f64e226fad7bd3c26
libc/bionic/pthread_mutex.cpp
libc/include/pthread.h
tests/pthread_test.cpp