14211 Commits

Author SHA1 Message Date
Yabin Cui
673b15e4ee Let g_thread_list_lock only protect g_thread_list.
As glibc/netbsd don't protect access to thread struct members by a global
lock, we don't want to do it either. This change reduces the
responsibility of g_thread_list_lock to only protect g_thread_list.

Bug: 19636317
Change-Id: I897890710653dac165d8fa4452c7ecf74abdbf2b
2015-03-23 19:03:49 -07:00
Dmitriy Ivanov
efaf8ff6e4 am 32b039e4: Merge "RTLD_LAZY is not supported, use RTLD_NOW instead."
* commit '32b039e46eee4d40b9979eab873a957e86fbf969':
  RTLD_LAZY is not supported, use RTLD_NOW instead.
2015-03-24 01:00:49 +00:00
Dmitriy Ivanov
32b039e46e Merge "RTLD_LAZY is not supported, use RTLD_NOW instead." 2015-03-24 00:48:58 +00:00
Yabin Cui
ecf010ed41 am f8246ac6: Merge "Add test for pthread types alignment check."
* commit 'f8246ac65f1985e23023df12112a6ce47057a4dd':
  Add test for pthread types alignment check.
2015-03-23 23:28:49 +00:00
Yabin Cui
d1fe16f448 am adebbfc9: am 7f1e2068: Merge "Fix alignment error for pthread_internal_t/pthread stack."
* commit 'adebbfc994e56b53e0c8ae420373b6ee57a9d4d3':
  Fix alignment error for pthread_internal_t/pthread stack.
2015-03-23 23:24:18 +00:00
Yabin Cui
f8246ac65f Merge "Add test for pthread types alignment check." 2015-03-23 23:18:27 +00:00
Dmitriy Ivanov
84c10c2e79 RTLD_LAZY is not supported, use RTLD_NOW instead.
Change-Id: Ia08ed6416aef686435224b50b3e58955d09f04e2
2015-03-23 14:58:45 -07:00
Dan Albert
7472b500a3 am 27b38599: Merge "Work around a bug in the Jenkins queue API."
* commit '27b38599dc4b0b4941906d8da30022f516abf143':
  Work around a bug in the Jenkins queue API.
2015-03-23 20:44:52 +00:00
Dan Albert
27b38599dc Merge "Work around a bug in the Jenkins queue API." 2015-03-23 20:32:15 +00:00
Dan Albert
c889f13493 Work around a bug in the Jenkins queue API.
https://issues.jenkins-ci.org/browse/JENKINS-27256

1.601 broke the ability to get a build's URL before the build had
actually started. The bug is pseudo-fixed, but would require
installing a new plugin and fixing the python jenkinsapi plugin for
the time being to use /queuefix/ rather than /queue/.

Just avoiding logging a URL for now.

Change-Id: Ibf90e5887fc4532dac688082ad7729787897da11
2015-03-23 13:29:15 -07:00
Yabin Cui
adebbfc994 am 7f1e2068: Merge "Fix alignment error for pthread_internal_t/pthread stack."
* commit '7f1e206815032aa152e9f181e477ae2a3f128d67':
  Fix alignment error for pthread_internal_t/pthread stack.
2015-03-21 17:11:22 +00:00
Yabin Cui
b584572213 Add test for pthread types alignment check.
Bug: 19249079
Change-Id: I83c4f0d11ec5d82a346ae0057d02a92bb1d519e8
2015-03-20 17:42:09 -07:00
Yabin Cui
7f1e206815 Merge "Fix alignment error for pthread_internal_t/pthread stack." 2015-03-20 23:26:24 +00:00
Yabin Cui
a2db50d5d7 Fix alignment error for pthread_internal_t/pthread stack.
aligned attribute can only control compiler's behavior, but we
are manually allocating pthread_internal_t. So we need to make
sure of alignment manually.

Change-Id: Iea4c46eadf10dfd15dc955c5f41cf6063cfd8536
2015-03-20 14:41:52 -07:00
Dmitriy Ivanov
52d092b140 am e0423890: am 9bc8ce7c: Merge "Limit soinfo compatibility fields to arm32"
* commit 'e0423890778668403562f1f0afc6d3ebec4dc4fa':
  Limit soinfo compatibility fields to arm32
2015-03-20 04:23:44 +00:00
Dmitriy Ivanov
e042389077 am 9bc8ce7c: Merge "Limit soinfo compatibility fields to arm32"
* commit '9bc8ce7c6a8abc09e76b0f35064d881385861537':
  Limit soinfo compatibility fields to arm32
2015-03-20 04:18:23 +00:00
Dmitriy Ivanov
9bc8ce7c6a Merge "Limit soinfo compatibility fields to arm32" 2015-03-20 04:05:51 +00:00
Dmitriy Ivanov
e631f91a01 Limit soinfo compatibility fields to arm32
Change-Id: I3924cd68397c223c0d206295d587f9dd8ebdc086
2015-03-19 17:50:29 -07:00
Yabin Cui
23c719f940 am 2e7617f2: am 4149dc94: Merge "Return EINVAL when calling pthread_detach for joined thread."
* commit '2e7617f2a0a703ae8dd0ba1b090464279482f893':
  Return EINVAL when calling pthread_detach for joined thread.
2015-03-20 00:21:22 +00:00
Yabin Cui
2e7617f2a0 am 4149dc94: Merge "Return EINVAL when calling pthread_detach for joined thread."
* commit '4149dc944bbe3c5f1c14fc998106975e68bdd6bf':
  Return EINVAL when calling pthread_detach for joined thread.
2015-03-20 00:11:58 +00:00
Yabin Cui
4149dc944b Merge "Return EINVAL when calling pthread_detach for joined thread." 2015-03-20 00:00:30 +00:00
Yabin Cui
07d9fe9c16 am 09170b99: am 7875b506: Merge "Fix two errors in pthread_detach.cpp."
* commit '09170b9968ac1c778026777f76d000a2afdd7459':
  Fix two errors in pthread_detach.cpp.
2015-03-19 23:58:51 +00:00
Yabin Cui
09170b9968 am 7875b506: Merge "Fix two errors in pthread_detach.cpp."
* commit '7875b506edfb1fe593034eaf4bc9aa156179fbd2':
  Fix two errors in pthread_detach.cpp.
2015-03-19 23:53:04 +00:00
Yabin Cui
bbb0432a33 Return EINVAL when calling pthread_detach for joined thread.
Change-Id: I717015132187e087e0ad485284a13c8801e25e77
2015-03-19 16:48:19 -07:00
Yabin Cui
7875b506ed Merge "Fix two errors in pthread_detach.cpp." 2015-03-19 23:38:40 +00:00
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
Dmitriy Ivanov
39b079d25e am cdc02185: am 2e495081: Merge "Move open from zip tests to dlext"
* commit 'cdc02185fe6254ddd68cb7a6c0938892b007f2a7':
  Move open from zip tests to dlext
2015-03-19 17:32:17 +00:00
Dmitriy Ivanov
cdc02185fe am 2e495081: Merge "Move open from zip tests to dlext"
* commit '2e49508187254903943b83df7bb241d5fb6a8593':
  Move open from zip tests to dlext
2015-03-19 17:19:32 +00:00
Dmitriy Ivanov
2e49508187 Merge "Move open from zip tests to dlext" 2015-03-19 17:06:16 +00:00
Dmitriy Ivanov
52393a5633 Move open from zip tests to dlext
To avoid building them for glibc.

 Also replace snprintf with std::string

Change-Id: I12e1d2e4ab46ff5af6c05453da67842e0d838fc5
2015-03-18 22:50:01 -07:00
Yabin Cui
2f251f146f am 436310c3: am 6943f296: Merge "Make __get_thread inlined."
* commit '436310c3d5835725afc498c23a788eab0cf7afc2':
  Make __get_thread inlined.
2015-03-19 03:11:21 +00:00
Yabin Cui
436310c3d5 am 6943f296: Merge "Make __get_thread inlined."
* commit '6943f2968cb6054f8874e30b309985b41a37e2e0':
  Make __get_thread inlined.
2015-03-19 03:03:21 +00:00
Dmitriy Ivanov
b9d1539fa8 am 16ac4ee7: am 6420fb46: Merge "Implement lookup by DT_SONAME"
* commit '16ac4ee7c468d11bb53265a16c7fd16bed3e2232':
  Implement lookup by DT_SONAME
2015-03-19 03:00:36 +00:00
Dmitriy Ivanov
16ac4ee7c4 am 6420fb46: Merge "Implement lookup by DT_SONAME"
* commit '6420fb467f52f7c27c921b1bf53dc95ad5851077':
  Implement lookup by DT_SONAME
2015-03-19 02:53:57 +00:00
Yabin Cui
6943f2968c Merge "Make __get_thread inlined." 2015-03-19 02:50:20 +00:00
Dmitriy Ivanov
6420fb467f Merge "Implement lookup by DT_SONAME" 2015-03-19 02:40:31 +00:00
Yabin Cui
2f836d4989 Make __get_thread inlined.
Bug: 19825434

Change-Id: Ifb672a45a5776b83625a25654ed0d6f7fc368ae3
2015-03-18 19:35:34 -07:00
Dmitriy Ivanov
618f1a36f8 Implement lookup by DT_SONAME
This CL also fixes SEARCH_NAME hack and resolves
  https://code.google.com/p/android/issues/detail?id=6670
  once and for all.

Bug: https://code.google.com/p/android/issues/detail?id=6670
Change-Id: I9b8d6a672cd722f30fbfbb40cdee8d9b39cfe56e
2015-03-18 18:14:30 -07:00
Elliott Hughes
b7e03b98f1 am 6cd7d024: am c6fbbb42: Merge "Hide statfs/fstatfs\' ST_VALID flag from userspace."
* commit '6cd7d02478588069c964ca6c783fa458a718abe7':
  Hide statfs/fstatfs' ST_VALID flag from userspace.
2015-03-18 23:51:15 +00:00
Dmitriy Ivanov
f5e1acef2c am 10d70143: am 0cf2657b: Merge "Fix library lookup for filenames with slash."
* commit '10d70143eac283bf5206d1b6e48170dbd83882c8':
  Fix library lookup for filenames with slash.
2015-03-18 23:50:18 +00:00
Elliott Hughes
6cd7d02478 am c6fbbb42: Merge "Hide statfs/fstatfs\' ST_VALID flag from userspace."
* commit 'c6fbbb42e69bef4f058d0cbfaaaf3cbf51f95694':
  Hide statfs/fstatfs' ST_VALID flag from userspace.
2015-03-18 23:22:56 +00:00
Elliott Hughes
c6fbbb42e6 Merge "Hide statfs/fstatfs' ST_VALID flag from userspace." 2015-03-18 23:11:52 +00: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
Dmitriy Ivanov
10d70143ea am 0cf2657b: Merge "Fix library lookup for filenames with slash."
* commit '0cf2657bc25242c097d42346d17eaae4107b1d55':
  Fix library lookup for filenames with slash.
2015-03-18 22:22:59 +00:00
Dmitriy Ivanov
0cf2657bc2 Merge "Fix library lookup for filenames with slash." 2015-03-18 22:09:07 +00:00
Dimitry Ivanov
feb41625b4 am 02f528f3: am c0eaa732: Merge "Support loading shared libraries from zip files"
* commit '02f528f3adeaf1227d178e426fca7482e85866af':
  Support loading shared libraries from zip files
2015-03-18 17:46:15 +00:00
Dimitry Ivanov
02f528f3ad am c0eaa732: Merge "Support loading shared libraries from zip files"
* commit 'c0eaa732844a8397d40a7ec82641f709e4b47a61':
  Support loading shared libraries from zip files
2015-03-18 17:37:58 +00:00
Dmitriy Ivanov
e44fffd7f9 Fix library lookup for filenames with slash.
If filename contains a slash, then it is interpreted
  as a (relative or absolute) pathname.

Bug: https://code.google.com/p/android/issues/detail?id=6670
Change-Id: Iba57d638301f3089ad47ba083edca2dd36b801ed
2015-03-18 10:32:11 -07:00
Dimitry Ivanov
c0eaa73284 Merge "Support loading shared libraries from zip files" 2015-03-18 17:25:33 +00:00
Elliott Hughes
bcd0f553b9 am 46950420: am ab12dc70: Merge "Fix _PATH_DEFPATH to correspond to the actual default path."
* commit '469504209489350a4cbf5a9018e74af367aa3acf':
  Fix _PATH_DEFPATH to correspond to the actual default path.
2015-03-18 10:58:19 +00:00