Yabin Cui
aec2bb5ec6
Fix two errors in pthread_detach.cpp.
...
The errors are introduced in "Make pthread join_state not protected by g_thread_list_lock".
Bug: 19636317
Change-Id: I58ae9711da94bfbac809abfd81311eeb70301a4b
2015-03-19 23:35:23 +00:00
Yabin Cui
6943f2968c
Merge "Make __get_thread inlined."
2015-03-19 02:50:20 +00:00
Yabin Cui
2f836d4989
Make __get_thread inlined.
...
Bug: 19825434
Change-Id: Ifb672a45a5776b83625a25654ed0d6f7fc368ae3
2015-03-18 19:35:34 -07:00
Elliott Hughes
fa495d51b0
Hide statfs/fstatfs' ST_VALID flag from userspace.
...
Spotted while debugging the strace 4.10 upgrade.
Change-Id: I1af1be9c9440151f55f74a835e1df71529b0e4fe
2015-03-18 15:46:48 -07:00
Elliott Hughes
ab12dc70f3
Merge "Fix _PATH_DEFPATH to correspond to the actual default path."
2015-03-18 01:15:04 +00:00
Elliott Hughes
1101962447
Fix _PATH_DEFPATH to correspond to the actual default path.
...
This is currently set in init.rc, but I plan on making init
set PATH to _PATH_DEFPATH and removing the line from init.rc...
Bug: 19564110
Change-Id: Ifa7226a3a5a90d141a788d7d6b1ae86245674218
2015-03-17 17:34:14 -07:00
Daniel Micay
ee7649c5ac
set errno to ENOENT in getauxval per glibc 2.19
...
Bionic's getauxval(...) implementation returns zero when entries are
missing. Zero can be a valid value, so there is no unambiguous way of
detecting an error. Since glibc 2.19, errno is set to ENOENT when an
entry is missing to make it possible to detect this. Bionic should match
this behavior as code in the Linux ecosystem will start relying on it to
check for the presence of newly added entries.
Change-Id: Ic1efe29bc45fc87489274c96c4d2193f3a7b8854
Signed-off-by: Daniel Micay <danielmicay@gmail.com>
2015-03-17 19:50:55 -04:00
Yabin Cui
ecbfb25c50
Fix build: pthread_mutex/pthread_detach.
...
Change-Id: I9c7b6297d3bf3ab8004d05d44cc4c95159315c9e
2015-03-17 11:37:51 -07:00
Yabin Cui
94babaee1b
Merge "Make pthread join_state not protected by g_thread_list_lock."
2015-03-17 18:12:59 +00:00
Yabin Cui
5490bebd7c
Merge "Remove duplication in pthread_mutex.cpp."
2015-03-17 18:12:32 +00:00
Dmitriy Ivanov
b5cd3c7a75
Fix build: align pthread_cond_t to sizeof(long)
...
Change-Id: Ieaee6d09089b161ec516ba22cafaee1ecb4342da
2015-03-16 17:06:59 -07:00
Christopher Ferris
eb8b122d67
Add alignment to opaque types.
...
If there is no alignment forced, then the compiler might put these
structures at any alignment.
Change-Id: I6416db72433504e0ec1178bfae6f5b18b6e363fb
2015-03-16 16:28:54 -07:00
Yabin Cui
9e6c7bc618
Fix atomic_load on const variable in pthread_cond_t.
...
Change-Id: I60f55a53294a09332a3fbec669ed793359d1bdf5
2015-03-16 14:26:53 -07:00
Yabin Cui
d3e2a207ff
Merge "Hide content of pthread_cond_t in pthread_cond_internal_t."
2015-03-16 20:58:02 +00:00
Yabin Cui
32651b8e8e
Hide content of pthread_cond_t in pthread_cond_internal_t.
...
Bug: 19249079
Change-Id: I6f55af30bcd6211ce71630c6cacbef0e1663dcee
2015-03-16 11:09:52 -07:00
Christopher Ferris
83c0028e03
Merge "For libm, use a macro for aliasing symbols."
2015-03-14 17:44:32 +00:00
Christopher Ferris
995b813e91
For libm, use a macro for aliasing symbols.
...
Change-Id: Ibd42ebc387c2bf3eba9aa96091770915b4b34184
2015-03-13 23:57:15 -07:00
Yabin Cui
2fabea47ac
Hide content of pthread_rwlock_t in pthread_rwlock_internal_t.
...
Bug: 19249079
Change-Id: Ifbe634c716b6793bef897ec5134b55eb44c6b8d5
2015-03-13 19:35:05 -07:00
Christopher Ferris
81c31bdd43
Merge "Add some GNU specific elf constants."
2015-03-13 21:12:07 +00:00
Dmitriy Ivanov
d7e091efc4
Merge "Switch libc and libm to sysv-only hash style"
2015-03-13 21:04:08 +00:00
Dmitriy Ivanov
2e16d2cf1e
Switch libc and libm to sysv-only hash style
...
Bug: 19059885
Change-Id: I60a23dc5f9c756994d566818332ca42b305b4a05
2015-03-13 19:48:03 +00:00
Christopher Ferris
c94c7ff2bb
Add some GNU specific elf constants.
...
Change-Id: I6c668463a27a641c9a280ce1937857d622344ff8
2015-03-13 10:32:45 -07:00
Yabin Cui
5b8e7cd957
Remove duplication in pthread_mutex.cpp.
...
Also add unit tests about thread woken up by pthread_mutex_unlock.
Bug: 19216648
Change-Id: I8bde8105b00186c52a2f41d92458ae4a5eb90426
2015-03-12 21:54:41 -07:00
Yabin Cui
58cf31b506
Make pthread join_state not protected by g_thread_list_lock.
...
1. Move the representation of thread join_state from pthread.attr.flag
to pthread.join_state. This clarifies thread state change.
2. Use atomic operations for pthread.join_state. So we don't need to
protect it by g_thread_list_lock. g_thread_list_lock will be reduced
to only protect g_thread_list or even removed in further changes.
Bug: 19636317
Change-Id: I31fb143a7c69508c7287307dd3b0776993ec0f43
2015-03-12 21:39:49 -07:00
Mark Salyzyn
c4a586da49
syslog.h: missing LOG_MAKEPRI definition
...
Bug: 19681572
Change-Id: Ice5f5cb1f71522ffc47b2243a8dc4c277c2a288f
2015-03-12 13:21:35 -07:00
Elliott Hughes
be86f87711
Merge "Add the UMOUNT_NOFOLLOW flag to <sys/mount.h>."
2015-03-11 16:42:49 +00:00
Elliott Hughes
ba87fe5145
Add the UMOUNT_NOFOLLOW flag to <sys/mount.h>.
...
Change-Id: I2b81cfc3147d9a0a6ac2a8f064e6d9864fa7e04d
2015-03-11 09:32:25 -07:00
Dimitry Ivanov
e842dc0de5
am c16c8368
: Merge "Generate gnu hash for arm only"
...
* commit 'c16c8368773452e2d18d761a7b3ea6f249dc2ac5':
Generate gnu hash for arm only
2015-03-10 17:41:18 +00:00
Goran Jakovljevic
1156508265
Generate gnu hash for arm only
...
Fixes build failure caused by:
https://android-review.googlesource.com/#/c/139660
As previously discussed [1], MIPS does not support GNU-style ELF hashes.
[1] https://android-review.googlesource.com/#/c/49282/2/tests/Android.mk
Change-Id: I9a7966eebfd1ef0a587a20b71faefde38e84ab62
2015-03-10 10:01:50 -07:00
Dmitriy Ivanov
dca2fadd82
am a94cf791
: Merge "Generate sysv hash for libc, libstdc++ and libm"
...
* commit 'a94cf791c1c9b93d49f5573716de93348757ae15':
Generate sysv hash for libc, libstdc++ and libm
2015-03-10 15:03:35 +00:00
Dmitriy Ivanov
4a55c46d30
Generate sysv hash for libc, libstdc++ and libm
...
Bug: 19059885
Change-Id: I35e2a9cd0bb3914d9d0c82d163bfaf0fff844667
2015-03-09 19:38:56 -07:00
Dmitriy Ivanov
2bf9f30a3a
am 536ec735
: Merge changes I796a4ce8,I6165d062,I66c95d90,Ia67fa11d
...
* commit '536ec7359eb951655e389443aa918a4bb16b2d8b':
Add support for packed relocations.
Refactoring: introduce reloc_iterators
Generalize compression tool
Import relocation packer from chromium repo
2015-03-07 17:13:21 +00:00
Yabin Cui
2bb873aee9
am e86a86f9
: Merge "Remove PTHREAD_ATTR_FLAG_MAIN_THREAD."
...
* commit 'e86a86f9f24df7028d2596c69ff008cf88e039e4':
Remove PTHREAD_ATTR_FLAG_MAIN_THREAD.
2015-03-07 17:13:21 +00:00
Dmitriy Ivanov
536ec7359e
Merge changes I796a4ce8,I6165d062,I66c95d90,Ia67fa11d
...
* changes:
Add support for packed relocations.
Refactoring: introduce reloc_iterators
Generalize compression tool
Import relocation packer from chromium repo
2015-03-07 07:08:51 +00:00
Dmitriy Ivanov
18a6956b76
Add support for packed relocations.
...
Change-Id: I796a4ce86d3fccb8361c19889419c96147ee3c9f
2015-03-06 17:12:47 -08:00
Yabin Cui
9d0c79304d
Remove PTHREAD_ATTR_FLAG_MAIN_THREAD.
...
Make this change because I think it is more reasonable to check stack info
in pthread_getattr_np. I believe pthread_attr_t is not tied with any thread,
and can't have a flag saying who using it is the main thread.
This change also helps refactor of g_thread_list_lock.
Bug: 19636317
Change-Id: Iedbb85a391ac3e1849dd036d01445dac4bc63db9
2015-03-06 15:16:44 -08:00
Yabin Cui
af1ad42208
am fe4f2a67
: Merge "Use pthread_once for g_uselocale_key creation."
...
* commit 'fe4f2a6734ed3ace50606900143e84993f450caf':
Use pthread_once for g_uselocale_key creation.
2015-03-06 05:34:31 +00:00
Yabin Cui
f7e3b3e48a
Use pthread_once for g_uselocale_key creation.
...
Bug: 19625804
Change-Id: I57ec4c965067dc0c157c795c1f7217a3ca403286
2015-03-05 20:39:10 -08:00
Yabin Cui
9ecb7f40d0
am c3307dc4
: Merge "Better control of pthread keys used in bionic."
...
* commit 'c3307dc43b2526c4031837738b139d22831c5d09':
Better control of pthread keys used in bionic.
2015-03-05 18:33:31 +00:00
Yabin Cui
c3307dc43b
Merge "Better control of pthread keys used in bionic."
2015-03-05 18:26:44 +00:00
Yabin Cui
80aa71aa71
am e1c0213b
: Merge "Switch pthread_rwlock_t to stdatomic."
...
* commit 'e1c0213be3f0c2c4e310cbc262da88835a2e5d86':
Switch pthread_rwlock_t to stdatomic.
2015-03-05 04:48:48 +00:00
Yabin Cui
e1c0213be3
Merge "Switch pthread_rwlock_t to stdatomic."
2015-03-05 04:42:35 +00:00
Yabin Cui
08ee8d2030
Switch pthread_rwlock_t to stdatomic.
...
Bug: 19099838
Change-Id: Ie82967a60b5cec61a8bdd1e0e4a03738d01944f8
2015-03-04 18:16:20 -08:00
Yabin Cui
4a2891d8c8
Better control of pthread keys used in bionic.
...
Change-Id: I1e1bc77c0e7879baead6c3417282ce549a1153b5
2015-03-04 16:53:23 -08:00
Yabin Cui
c210e84f28
am e1edd301
: Merge "Refactor pthread_key.cpp to be lock-free."
...
* commit 'e1edd301d2a722e0a0687a7a3a87081c8cb956d3':
Refactor pthread_key.cpp to be lock-free.
2015-03-04 01:53:46 +00:00
Yabin Cui
e1edd301d2
Merge "Refactor pthread_key.cpp to be lock-free."
2015-03-04 01:49:20 +00:00
Yabin Cui
5e2bd719d7
Refactor pthread_key.cpp to be lock-free.
...
Change-Id: I20dfb9d3cdc40eed10ea12ac34f03caaa94f7a49
2015-03-03 15:46:53 -08:00
Yabin Cui
62b6d11b2d
am d5c2745c
: Merge "Lose bionic_atomic stuff."
...
* commit 'd5c2745ca8664b987d737e4a32922b6c9fe7c628':
Lose bionic_atomic stuff.
2015-03-03 03:00:42 +00:00
Yabin Cui
d5c2745ca8
Merge "Lose bionic_atomic stuff."
2015-03-03 02:56:19 +00:00
Mark Salyzyn
1f3ac62b44
am ceb9c182
: Merge "bionic: deprecate _PATH_MEM"
...
* commit 'ceb9c182dbb9752004a3d61d872fb3f0cc1c3f9c':
bionic: deprecate _PATH_MEM
2015-03-02 19:41:53 +00:00