OSDN Git Service

android-x86/bionic.git
9 years agoam b9232c94: Merge "Remove PTHREAD_RECURSIVE_MUTEX_INITIALIZER and PTHREAD_ERRORCHECK...
Yabin Cui [Thu, 26 Mar 2015 04:36:16 +0000 (04:36 +0000)]
am b9232c94: Merge "Remove PTHREAD_RECURSIVE_MUTEX_INITIALIZER and PTHREAD_ERRORCHECK_MUTEX_INITIALIZER."

* commit 'b9232c94da831d485b3896580a3d1ac9abc46a4f':
  Remove PTHREAD_RECURSIVE_MUTEX_INITIALIZER and PTHREAD_ERRORCHECK_MUTEX_INITIALIZER.

9 years agoMerge "Remove PTHREAD_RECURSIVE_MUTEX_INITIALIZER and PTHREAD_ERRORCHECK_MUTEX_INITIA...
Yabin Cui [Thu, 26 Mar 2015 04:21:15 +0000 (04:21 +0000)]
Merge "Remove PTHREAD_RECURSIVE_MUTEX_INITIALIZER and PTHREAD_ERRORCHECK_MUTEX_INITIALIZER."

9 years agoam 69847bc2: Merge "Hide internal of pthread_mutex_t."
Yabin Cui [Thu, 26 Mar 2015 04:19:40 +0000 (04:19 +0000)]
am 69847bc2: Merge "Hide internal of pthread_mutex_t."

* commit '69847bc298de62917663d22b6733ef75b57124fa':
  Hide internal of pthread_mutex_t.

9 years agoam fa3dcecc: Merge "Fix in error handling in pthread_create.cpp."
Yabin Cui [Thu, 26 Mar 2015 04:19:39 +0000 (04:19 +0000)]
am fa3dcecc: Merge "Fix in error handling in pthread_create.cpp."

* commit 'fa3dcecc0fd7bbbf04234e41be690a5d33277870':
  Fix in error handling in pthread_create.cpp.

9 years agoRemove PTHREAD_RECURSIVE_MUTEX_INITIALIZER and PTHREAD_ERRORCHECK_MUTEX_INITIALIZER.
Yabin Cui [Thu, 26 Mar 2015 02:59:00 +0000 (19:59 -0700)]
Remove PTHREAD_RECURSIVE_MUTEX_INITIALIZER and PTHREAD_ERRORCHECK_MUTEX_INITIALIZER.

These macros are also not used in glibc. And we should use
PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
and PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP instead.

Change-Id: I35195e2f499712dcde9305bbb93622d0f7ca874b

9 years agoMerge "Hide internal of pthread_mutex_t."
Yabin Cui [Thu, 26 Mar 2015 02:10:06 +0000 (02:10 +0000)]
Merge "Hide internal of pthread_mutex_t."

9 years agoHide internal of pthread_mutex_t.
Yabin Cui [Sat, 21 Mar 2015 22:08:25 +0000 (15:08 -0700)]
Hide internal of pthread_mutex_t.

Bug: 19249079
Change-Id: Iffb79c8d861b698d474f212dc80c638fc2cf1620

9 years agoMerge "Fix in error handling in pthread_create.cpp."
Yabin Cui [Thu, 26 Mar 2015 00:26:59 +0000 (00:26 +0000)]
Merge "Fix in error handling in pthread_create.cpp."

9 years agoFix in error handling in pthread_create.cpp.
Yabin Cui [Wed, 25 Mar 2015 23:18:21 +0000 (16:18 -0700)]
Fix in error handling in pthread_create.cpp.

It is due to a previous change "Let g_thread_list_lock only protect g_thread_list".
We need to add the newly created thread to thread_list even if
__init_thread fails, so the thread can exit successfully.

Change-Id: I0332df11acfdd181350bcc092b12d90d679057a4

9 years agoam 36d5b6f4: Merge "Cause Fatal error when invalid pthread_id is detected."
Yabin Cui [Wed, 25 Mar 2015 23:04:27 +0000 (23:04 +0000)]
am 36d5b6f4: Merge "Cause Fatal error when invalid pthread_id is detected."

* commit '36d5b6f47dd14fd9733d935174d2b8e0deb979c6':
  Cause Fatal error when invalid pthread_id is detected.

9 years agoMerge "Cause Fatal error when invalid pthread_id is detected."
Yabin Cui [Wed, 25 Mar 2015 22:53:49 +0000 (22:53 +0000)]
Merge "Cause Fatal error when invalid pthread_id is detected."

9 years agoCause Fatal error when invalid pthread_id is detected.
Yabin Cui [Wed, 25 Mar 2015 00:43:14 +0000 (17:43 -0700)]
Cause Fatal error when invalid pthread_id is detected.

This is a patch testing whether we can use abort() instead of
returning ESRCH for invalid pthread ids. It is an intermediate
step to remove g_thread_list/g_thread_list_lock.

Bug: 19636317
Change-Id: Idd8e4a346c7ce91e1be0c2ebcb78ce51c0d0a31d

9 years agoam 0c3b632b: Merge "Add O_APPEND flag for __libc_write_stderr."
Yabin Cui [Wed, 25 Mar 2015 20:28:51 +0000 (20:28 +0000)]
am 0c3b632b: Merge "Add O_APPEND flag for __libc_write_stderr."

* commit '0c3b632bd6570064bab1055d2b8a51cfb85e60bb':
  Add O_APPEND flag for __libc_write_stderr.

9 years agoMerge "Add O_APPEND flag for __libc_write_stderr."
Yabin Cui [Wed, 25 Mar 2015 20:17:34 +0000 (20:17 +0000)]
Merge "Add O_APPEND flag for __libc_write_stderr."

9 years agoAdd O_APPEND flag for __libc_write_stderr.
Yabin Cui [Wed, 25 Mar 2015 19:36:18 +0000 (12:36 -0700)]
Add O_APPEND flag for __libc_write_stderr.

For DeathTests, we are testing the output of stderr to check if it is the
death we are expecting. To collect the output, Gtest redirects stderr to
a temporary file. But in __libc_write_stderr in libc_logging.cpp, we are
writing to stderr without a O_APPEND flag, so a new message will overwrite
a previous message.
The above situation makes almost all the DeathTests fail on host. Because
the expected message are always overwritten in host DeathTests. So I add
O_APPEND flag in __libc_write_stderr, which makes all host DeathTests pass.

Change-Id: Ic2f6044fdb181eebe132a6f170b57db43c5c3289

9 years agoam f6364486: Merge "Use ALIAS_SYMBOL for assembler aliasing."
Christopher Ferris [Wed, 25 Mar 2015 18:59:06 +0000 (18:59 +0000)]
am f6364486: Merge "Use ALIAS_SYMBOL for assembler aliasing."

* commit 'f6364486fb0fcd2891094a871041a3dc6c2334f8':
  Use ALIAS_SYMBOL for assembler aliasing.

9 years agoMerge "Use ALIAS_SYMBOL for assembler aliasing."
Christopher Ferris [Wed, 25 Mar 2015 17:52:49 +0000 (17:52 +0000)]
Merge "Use ALIAS_SYMBOL for assembler aliasing."

9 years agoUse ALIAS_SYMBOL for assembler aliasing.
Christopher Ferris [Wed, 25 Mar 2015 16:12:00 +0000 (09:12 -0700)]
Use ALIAS_SYMBOL for assembler aliasing.

Change-Id: I8d04d2da0a1ac440cc9044fc819c9a8eda5ff17d

9 years agoam f5e0ba94: Merge "Make gensyscalls.py use the ALIAS_SYMBOL macro."
Christopher Ferris [Wed, 25 Mar 2015 04:31:15 +0000 (04:31 +0000)]
am f5e0ba94: Merge "Make gensyscalls.py use the ALIAS_SYMBOL macro."

* commit 'f5e0ba94d911ef2622ecfd3f7fabc4432a4806d3':
  Make gensyscalls.py use the ALIAS_SYMBOL macro.

9 years agoMerge "Make gensyscalls.py use the ALIAS_SYMBOL macro."
Christopher Ferris [Wed, 25 Mar 2015 04:20:45 +0000 (04:20 +0000)]
Merge "Make gensyscalls.py use the ALIAS_SYMBOL macro."

9 years agoMake gensyscalls.py use the ALIAS_SYMBOL macro.
Christopher Ferris [Tue, 24 Mar 2015 23:50:46 +0000 (16:50 -0700)]
Make gensyscalls.py use the ALIAS_SYMBOL macro.

Change-Id: Ib94c0abb6fc85126ecc5ed3f1962b2b8b90b9952

9 years agoam 70cafb16: Merge "Replace fixed arrays with vectors"
Dmitriy Ivanov [Wed, 25 Mar 2015 00:55:44 +0000 (00:55 +0000)]
am 70cafb16: Merge "Replace fixed arrays with vectors"

* commit '70cafb16ec9ab23ad65542534af5a1ac7d6e70e4':
  Replace fixed arrays with vectors

9 years agoMerge "Replace fixed arrays with vectors"
Dmitriy Ivanov [Wed, 25 Mar 2015 00:45:19 +0000 (00:45 +0000)]
Merge "Replace fixed arrays with vectors"

9 years agoReplace fixed arrays with vectors
Dmitriy Ivanov [Tue, 24 Mar 2015 01:43:02 +0000 (18:43 -0700)]
Replace fixed arrays with vectors

  This effectively removes limit on length and count
  of LD_LIBRARY_PATH and LD_PRELOAD entries.

Change-Id: Ie7ea34a50d99c4018f9dd1a33aaebc4049a7f424

9 years agoam ee4997ec: Merge "Convert result of a call to JSON."
Dan Albert [Tue, 24 Mar 2015 21:41:56 +0000 (21:41 +0000)]
am ee4997ec: Merge "Convert result of a call to JSON."

* commit 'ee4997ecc3daeb9af110d932ddb27f969cc7271a':
  Convert result of a call to JSON.

9 years agoMerge "Convert result of a call to JSON."
Dan Albert [Tue, 24 Mar 2015 21:28:30 +0000 (21:28 +0000)]
Merge "Convert result of a call to JSON."

9 years agoConvert result of a call to JSON.
Dan Albert [Tue, 24 Mar 2015 18:43:55 +0000 (11:43 -0700)]
Convert result of a call to JSON.

I still had the service that was relying on this running on top of
local changes, so this hadn't been a problem yet.

Change-Id: I63b45b8c7cf81972dbb7128013c1c777a2342d4c

9 years agoam 93d44ff2: Merge "Let g_thread_list_lock only protect g_thread_list."
Yabin Cui [Tue, 24 Mar 2015 02:51:53 +0000 (02:51 +0000)]
am 93d44ff2: Merge "Let g_thread_list_lock only protect g_thread_list."

* commit '93d44ff2a6e0febe18d42d5690e85023545318b4':
  Let g_thread_list_lock only protect g_thread_list.

9 years agoMerge "Let g_thread_list_lock only protect g_thread_list."
Yabin Cui [Tue, 24 Mar 2015 02:39:50 +0000 (02:39 +0000)]
Merge "Let g_thread_list_lock only protect g_thread_list."

9 years agoLet g_thread_list_lock only protect g_thread_list.
Yabin Cui [Thu, 19 Mar 2015 21:19:19 +0000 (14:19 -0700)]
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

9 years agoam 32b039e4: Merge "RTLD_LAZY is not supported, use RTLD_NOW instead."
Dmitriy Ivanov [Tue, 24 Mar 2015 01:00:49 +0000 (01:00 +0000)]
am 32b039e4: Merge "RTLD_LAZY is not supported, use RTLD_NOW instead."

* commit '32b039e46eee4d40b9979eab873a957e86fbf969':
  RTLD_LAZY is not supported, use RTLD_NOW instead.

9 years agoMerge "RTLD_LAZY is not supported, use RTLD_NOW instead."
Dmitriy Ivanov [Tue, 24 Mar 2015 00:48:57 +0000 (00:48 +0000)]
Merge "RTLD_LAZY is not supported, use RTLD_NOW instead."

9 years agoam f8246ac6: Merge "Add test for pthread types alignment check."
Yabin Cui [Mon, 23 Mar 2015 23:28:49 +0000 (23:28 +0000)]
am f8246ac6: Merge "Add test for pthread types alignment check."

* commit 'f8246ac65f1985e23023df12112a6ce47057a4dd':
  Add test for pthread types alignment check.

9 years agoMerge "Add test for pthread types alignment check."
Yabin Cui [Mon, 23 Mar 2015 23:18:27 +0000 (23:18 +0000)]
Merge "Add test for pthread types alignment check."

9 years agoRTLD_LAZY is not supported, use RTLD_NOW instead.
Dmitriy Ivanov [Mon, 23 Mar 2015 21:58:45 +0000 (14:58 -0700)]
RTLD_LAZY is not supported, use RTLD_NOW instead.

Change-Id: Ia08ed6416aef686435224b50b3e58955d09f04e2

9 years agoam 27b38599: Merge "Work around a bug in the Jenkins queue API."
Dan Albert [Mon, 23 Mar 2015 20:44:52 +0000 (20:44 +0000)]
am 27b38599: Merge "Work around a bug in the Jenkins queue API."

* commit '27b38599dc4b0b4941906d8da30022f516abf143':
  Work around a bug in the Jenkins queue API.

9 years agoMerge "Work around a bug in the Jenkins queue API."
Dan Albert [Mon, 23 Mar 2015 20:32:15 +0000 (20:32 +0000)]
Merge "Work around a bug in the Jenkins queue API."

9 years agoWork around a bug in the Jenkins queue API.
Dan Albert [Mon, 23 Mar 2015 20:29:15 +0000 (13:29 -0700)]
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

9 years agoam 7f1e2068: Merge "Fix alignment error for pthread_internal_t/pthread stack."
Yabin Cui [Sat, 21 Mar 2015 17:11:22 +0000 (17:11 +0000)]
am 7f1e2068: Merge "Fix alignment error for pthread_internal_t/pthread stack."

* commit '7f1e206815032aa152e9f181e477ae2a3f128d67':
  Fix alignment error for pthread_internal_t/pthread stack.

9 years agoAdd test for pthread types alignment check.
Yabin Cui [Tue, 17 Mar 2015 05:46:42 +0000 (22:46 -0700)]
Add test for pthread types alignment check.

Bug: 19249079
Change-Id: I83c4f0d11ec5d82a346ae0057d02a92bb1d519e8

9 years agoMerge "Fix alignment error for pthread_internal_t/pthread stack."
Yabin Cui [Fri, 20 Mar 2015 23:26:23 +0000 (23:26 +0000)]
Merge "Fix alignment error for pthread_internal_t/pthread stack."

9 years agoFix alignment error for pthread_internal_t/pthread stack.
Yabin Cui [Fri, 20 Mar 2015 17:58:04 +0000 (10:58 -0700)]
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

9 years agoam 9bc8ce7c: Merge "Limit soinfo compatibility fields to arm32"
Dmitriy Ivanov [Fri, 20 Mar 2015 04:18:23 +0000 (04:18 +0000)]
am 9bc8ce7c: Merge "Limit soinfo compatibility fields to arm32"

* commit '9bc8ce7c6a8abc09e76b0f35064d881385861537':
  Limit soinfo compatibility fields to arm32

9 years agoMerge "Limit soinfo compatibility fields to arm32"
Dmitriy Ivanov [Fri, 20 Mar 2015 04:05:51 +0000 (04:05 +0000)]
Merge "Limit soinfo compatibility fields to arm32"

9 years agoLimit soinfo compatibility fields to arm32
Dmitriy Ivanov [Fri, 20 Mar 2015 00:50:29 +0000 (17:50 -0700)]
Limit soinfo compatibility fields to arm32

Change-Id: I3924cd68397c223c0d206295d587f9dd8ebdc086

9 years agoam 4149dc94: Merge "Return EINVAL when calling pthread_detach for joined thread."
Yabin Cui [Fri, 20 Mar 2015 00:11:58 +0000 (00:11 +0000)]
am 4149dc94: Merge "Return EINVAL when calling pthread_detach for joined thread."

* commit '4149dc944bbe3c5f1c14fc998106975e68bdd6bf':
  Return EINVAL when calling pthread_detach for joined thread.

9 years agoMerge "Return EINVAL when calling pthread_detach for joined thread."
Yabin Cui [Fri, 20 Mar 2015 00:00:29 +0000 (00:00 +0000)]
Merge "Return EINVAL when calling pthread_detach for joined thread."

9 years agoam 7875b506: Merge "Fix two errors in pthread_detach.cpp."
Yabin Cui [Thu, 19 Mar 2015 23:53:04 +0000 (23:53 +0000)]
am 7875b506: Merge "Fix two errors in pthread_detach.cpp."

* commit '7875b506edfb1fe593034eaf4bc9aa156179fbd2':
  Fix two errors in pthread_detach.cpp.

9 years agoReturn EINVAL when calling pthread_detach for joined thread.
Yabin Cui [Thu, 19 Mar 2015 22:19:25 +0000 (15:19 -0700)]
Return EINVAL when calling pthread_detach for joined thread.

Change-Id: I717015132187e087e0ad485284a13c8801e25e77

9 years agoMerge "Fix two errors in pthread_detach.cpp."
Yabin Cui [Thu, 19 Mar 2015 23:38:40 +0000 (23:38 +0000)]
Merge "Fix two errors in pthread_detach.cpp."

9 years agoFix two errors in pthread_detach.cpp.
Yabin Cui [Thu, 19 Mar 2015 23:28:19 +0000 (16:28 -0700)]
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

9 years agoam 2e495081: Merge "Move open from zip tests to dlext"
Dmitriy Ivanov [Thu, 19 Mar 2015 17:19:32 +0000 (17:19 +0000)]
am 2e495081: Merge "Move open from zip tests to dlext"

* commit '2e49508187254903943b83df7bb241d5fb6a8593':
  Move open from zip tests to dlext

9 years agoMerge "Move open from zip tests to dlext"
Dmitriy Ivanov [Thu, 19 Mar 2015 17:06:15 +0000 (17:06 +0000)]
Merge "Move open from zip tests to dlext"

9 years agoMove open from zip tests to dlext
Dmitriy Ivanov [Thu, 19 Mar 2015 05:50:01 +0000 (22:50 -0700)]
Move open from zip tests to dlext

 To avoid building them for glibc.

 Also replace snprintf with std::string

Change-Id: I12e1d2e4ab46ff5af6c05453da67842e0d838fc5

9 years agoam 6943f296: Merge "Make __get_thread inlined."
Yabin Cui [Thu, 19 Mar 2015 03:03:21 +0000 (03:03 +0000)]
am 6943f296: Merge "Make __get_thread inlined."

* commit '6943f2968cb6054f8874e30b309985b41a37e2e0':
  Make __get_thread inlined.

9 years agoam 6420fb46: Merge "Implement lookup by DT_SONAME"
Dmitriy Ivanov [Thu, 19 Mar 2015 02:53:57 +0000 (02:53 +0000)]
am 6420fb46: Merge "Implement lookup by DT_SONAME"

* commit '6420fb467f52f7c27c921b1bf53dc95ad5851077':
  Implement lookup by DT_SONAME

9 years agoMerge "Make __get_thread inlined."
Yabin Cui [Thu, 19 Mar 2015 02:50:19 +0000 (02:50 +0000)]
Merge "Make __get_thread inlined."

9 years agoMerge "Implement lookup by DT_SONAME"
Dmitriy Ivanov [Thu, 19 Mar 2015 02:40:30 +0000 (02:40 +0000)]
Merge "Implement lookup by DT_SONAME"

9 years agoMake __get_thread inlined.
Yabin Cui [Wed, 18 Mar 2015 21:14:02 +0000 (14:14 -0700)]
Make __get_thread inlined.

Bug: 19825434

Change-Id: Ifb672a45a5776b83625a25654ed0d6f7fc368ae3

9 years agoImplement lookup by DT_SONAME
Dmitriy Ivanov [Wed, 18 Mar 2015 03:06:36 +0000 (20:06 -0700)]
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

9 years agoam c6fbbb42: Merge "Hide statfs/fstatfs\' ST_VALID flag from userspace."
Elliott Hughes [Wed, 18 Mar 2015 23:22:56 +0000 (23:22 +0000)]
am c6fbbb42: Merge "Hide statfs/fstatfs\' ST_VALID flag from userspace."

* commit 'c6fbbb42e69bef4f058d0cbfaaaf3cbf51f95694':
  Hide statfs/fstatfs' ST_VALID flag from userspace.

9 years agoMerge "Hide statfs/fstatfs' ST_VALID flag from userspace."
Elliott Hughes [Wed, 18 Mar 2015 23:11:51 +0000 (23:11 +0000)]
Merge "Hide statfs/fstatfs' ST_VALID flag from userspace."

9 years agoHide statfs/fstatfs' ST_VALID flag from userspace.
Elliott Hughes [Wed, 18 Mar 2015 22:46:48 +0000 (15:46 -0700)]
Hide statfs/fstatfs' ST_VALID flag from userspace.

Spotted while debugging the strace 4.10 upgrade.

Change-Id: I1af1be9c9440151f55f74a835e1df71529b0e4fe

9 years agoam 0cf2657b: Merge "Fix library lookup for filenames with slash."
Dmitriy Ivanov [Wed, 18 Mar 2015 22:22:59 +0000 (22:22 +0000)]
am 0cf2657b: Merge "Fix library lookup for filenames with slash."

* commit '0cf2657bc25242c097d42346d17eaae4107b1d55':
  Fix library lookup for filenames with slash.

9 years agoMerge "Fix library lookup for filenames with slash."
Dmitriy Ivanov [Wed, 18 Mar 2015 22:09:07 +0000 (22:09 +0000)]
Merge "Fix library lookup for filenames with slash."

9 years agoam c0eaa732: Merge "Support loading shared libraries from zip files"
Dimitry Ivanov [Wed, 18 Mar 2015 17:37:58 +0000 (17:37 +0000)]
am c0eaa732: Merge "Support loading shared libraries from zip files"

* commit 'c0eaa732844a8397d40a7ec82641f709e4b47a61':
  Support loading shared libraries from zip files

9 years agoFix library lookup for filenames with slash.
Dmitriy Ivanov [Wed, 18 Mar 2015 00:12:18 +0000 (17:12 -0700)]
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

9 years agoMerge "Support loading shared libraries from zip files"
Dimitry Ivanov [Wed, 18 Mar 2015 17:25:32 +0000 (17:25 +0000)]
Merge "Support loading shared libraries from zip files"

9 years agoam ab12dc70: Merge "Fix _PATH_DEFPATH to correspond to the actual default path."
Elliott Hughes [Wed, 18 Mar 2015 01:24:59 +0000 (01:24 +0000)]
am ab12dc70: Merge "Fix _PATH_DEFPATH to correspond to the actual default path."

* commit 'ab12dc70f3ef551c490dcfede76033e57ceee64d':
  Fix _PATH_DEFPATH to correspond to the actual default path.

9 years agoam b380b7d7: Merge "set errno to ENOENT in getauxval per glibc 2.19"
Elliott Hughes [Wed, 18 Mar 2015 01:18:01 +0000 (01:18 +0000)]
am b380b7d7: Merge "set errno to ENOENT in getauxval per glibc 2.19"

* commit 'b380b7d78cf4dbd034f51fcf7fc8ebdb037330c3':
  set errno to ENOENT in getauxval per glibc 2.19

9 years agoMerge "Fix _PATH_DEFPATH to correspond to the actual default path."
Elliott Hughes [Wed, 18 Mar 2015 01:15:04 +0000 (01:15 +0000)]
Merge "Fix _PATH_DEFPATH to correspond to the actual default path."

9 years agoMerge "set errno to ENOENT in getauxval per glibc 2.19"
Elliott Hughes [Wed, 18 Mar 2015 01:05:23 +0000 (01:05 +0000)]
Merge "set errno to ENOENT in getauxval per glibc 2.19"

9 years agoFix _PATH_DEFPATH to correspond to the actual default path.
Elliott Hughes [Wed, 18 Mar 2015 00:34:14 +0000 (17:34 -0700)]
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

9 years agoset errno to ENOENT in getauxval per glibc 2.19
Daniel Micay [Mon, 16 Mar 2015 01:39:25 +0000 (21:39 -0400)]
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>
9 years agoam d917b20b: Merge "Change name of rwlock benchmark."
Yabin Cui [Tue, 17 Mar 2015 21:33:33 +0000 (21:33 +0000)]
am d917b20b: Merge "Change name of rwlock benchmark."

* commit 'd917b20b613fd51e5f1056c8648fe8769ae8161e':
  Change name of rwlock benchmark.

9 years agoMerge "Change name of rwlock benchmark."
Yabin Cui [Tue, 17 Mar 2015 21:20:52 +0000 (21:20 +0000)]
Merge "Change name of rwlock benchmark."

9 years agoChange name of rwlock benchmark.
Yabin Cui [Tue, 17 Mar 2015 18:19:07 +0000 (11:19 -0700)]
Change name of rwlock benchmark.

rw_lock is not easy for me to remember, so I prefer changing it to rwlock.

Change-Id: I0784acaca0c3b46c28184a77eb29ffe696f9ea07

9 years agoam a75771e3: Merge "Fix build: pthread_mutex/pthread_detach."
Yabin Cui [Tue, 17 Mar 2015 18:52:13 +0000 (18:52 +0000)]
am a75771e3: Merge "Fix build: pthread_mutex/pthread_detach."

* commit 'a75771e3ab429fae2f9af770416150733264a281':
  Fix build: pthread_mutex/pthread_detach.

9 years agoMerge "Fix build: pthread_mutex/pthread_detach."
Yabin Cui [Tue, 17 Mar 2015 18:40:38 +0000 (18:40 +0000)]
Merge "Fix build: pthread_mutex/pthread_detach."

9 years agoFix build: pthread_mutex/pthread_detach.
Yabin Cui [Tue, 17 Mar 2015 18:34:57 +0000 (11:34 -0700)]
Fix build: pthread_mutex/pthread_detach.

Change-Id: I9c7b6297d3bf3ab8004d05d44cc4c95159315c9e

9 years agoam 94babaee: Merge "Make pthread join_state not protected by g_thread_list_lock."
Yabin Cui [Tue, 17 Mar 2015 18:21:49 +0000 (18:21 +0000)]
am 94babaee: Merge "Make pthread join_state not protected by g_thread_list_lock."

* commit '94babaee1b6598b15bd807461055d4dcaaa52f10':
  Make pthread join_state not protected by g_thread_list_lock.

9 years agoam 5490bebd: Merge "Remove duplication in pthread_mutex.cpp."
Yabin Cui [Tue, 17 Mar 2015 18:21:48 +0000 (18:21 +0000)]
am 5490bebd: Merge "Remove duplication in pthread_mutex.cpp."

* commit '5490bebd7cdd4406780358f590391b75ab8a7d84':
  Remove duplication in pthread_mutex.cpp.

9 years agoMerge "Make pthread join_state not protected by g_thread_list_lock."
Yabin Cui [Tue, 17 Mar 2015 18:12:58 +0000 (18:12 +0000)]
Merge "Make pthread join_state not protected by g_thread_list_lock."

9 years agoMerge "Remove duplication in pthread_mutex.cpp."
Yabin Cui [Tue, 17 Mar 2015 18:12:32 +0000 (18:12 +0000)]
Merge "Remove duplication in pthread_mutex.cpp."

9 years agoSupport loading shared libraries from zip files
Simon Baldwin [Fri, 16 Jan 2015 13:22:54 +0000 (13:22 +0000)]
Support loading shared libraries from zip files

Add code to support loading shared libraries directly from within
APK files.

Extends the linker's handling of LD_LIBRARY_PATH, DT_RUNPATH, etc
to allow elements to be either directories as normal, or ZIP
format files.  For ZIP, the ZIP subdirectory string is separated
from the path to file by '!'.

For example, if DT_NEEDED is libchrome.so and Chrome.apk is the
Android ARM APK then the path element

  /system/app/Chrome.apk!lib/armeabi-v7a

would cause the linker to load lib/armeabi-v7a/libchrome.so
directly from inside Chrome.apk.  For loading to succeed,
libchrome.so must be 'stored' and not compressed in Chrome.apk,
and must be page aligned within the file.

Motivation:
  Chromium tracking issue:
  https://code.google.com/p/chromium/issues/detail?id=390618

Bug: 8076853
Change-Id: Ic49046600b1417eae3ee8f37ee98c8ac1ecc19e7

9 years agoam 5f8ddf69: Merge "Fix build: align pthread_cond_t to sizeof(long)"
Dmitriy Ivanov [Tue, 17 Mar 2015 00:25:06 +0000 (00:25 +0000)]
am 5f8ddf69: Merge "Fix build: align pthread_cond_t to sizeof(long)"

* commit '5f8ddf69e59b13653d016e236599b95daf6501a8':
  Fix build: align pthread_cond_t to sizeof(long)

9 years agoMerge "Fix build: align pthread_cond_t to sizeof(long)"
Dmitriy Ivanov [Tue, 17 Mar 2015 00:10:49 +0000 (00:10 +0000)]
Merge "Fix build: align pthread_cond_t to sizeof(long)"

9 years agoFix build: align pthread_cond_t to sizeof(long)
Dmitriy Ivanov [Tue, 17 Mar 2015 00:06:59 +0000 (17:06 -0700)]
Fix build: align pthread_cond_t to sizeof(long)

Change-Id: Ieaee6d09089b161ec516ba22cafaee1ecb4342da

9 years agoam f14fe856: Merge "Add alignment to opaque types."
Christopher Ferris [Mon, 16 Mar 2015 23:45:16 +0000 (23:45 +0000)]
am f14fe856: Merge "Add alignment to opaque types."

* commit 'f14fe856b40afc38540988b408edc508298ec116':
  Add alignment to opaque types.

9 years agoMerge "Add alignment to opaque types."
Christopher Ferris [Mon, 16 Mar 2015 23:33:34 +0000 (23:33 +0000)]
Merge "Add alignment to opaque types."

9 years agoAdd alignment to opaque types.
Christopher Ferris [Mon, 16 Mar 2015 23:21:08 +0000 (16:21 -0700)]
Add alignment to opaque types.

If there is no alignment forced, then the compiler might put these
structures at any alignment.

Change-Id: I6416db72433504e0ec1178bfae6f5b18b6e363fb

9 years agoam 3d170a6d: Merge "Remove obsolete test_isolated wrapper function"
Dmitriy Ivanov [Mon, 16 Mar 2015 22:03:53 +0000 (22:03 +0000)]
am 3d170a6d: Merge "Remove obsolete test_isolated wrapper function"

* commit '3d170a6d6c650cb81260ea9157d6f4df99e41e8c':
  Remove obsolete test_isolated wrapper function

9 years agoam 3b7239fe: Merge "General purpose memory allocator for linker."
Dmitriy Ivanov [Mon, 16 Mar 2015 22:03:52 +0000 (22:03 +0000)]
am 3b7239fe: Merge "General purpose memory allocator for linker."

* commit '3b7239feb9265f0b677e845dec0514583de9c6be':
  General purpose memory allocator for linker.

9 years agoMerge "Remove obsolete test_isolated wrapper function"
Dmitriy Ivanov [Mon, 16 Mar 2015 21:50:16 +0000 (21:50 +0000)]
Merge "Remove obsolete test_isolated wrapper function"

9 years agoMerge "General purpose memory allocator for linker."
Dmitriy Ivanov [Mon, 16 Mar 2015 21:49:58 +0000 (21:49 +0000)]
Merge "General purpose memory allocator for linker."

9 years agoam 0f3fcd12: Merge "Fix atomic_load on const variable in pthread_cond_t."
Yabin Cui [Mon, 16 Mar 2015 21:43:21 +0000 (21:43 +0000)]
am 0f3fcd12: Merge "Fix atomic_load on const variable in pthread_cond_t."

* commit '0f3fcd12ddde0e10fbeab0a98cf0efb9d64bea76':
  Fix atomic_load on const variable in pthread_cond_t.

9 years agoMerge "Fix atomic_load on const variable in pthread_cond_t."
Yabin Cui [Mon, 16 Mar 2015 21:31:08 +0000 (21:31 +0000)]
Merge "Fix atomic_load on const variable in pthread_cond_t."

9 years agoFix atomic_load on const variable in pthread_cond_t.
Yabin Cui [Mon, 16 Mar 2015 21:26:53 +0000 (14:26 -0700)]
Fix atomic_load on const variable in pthread_cond_t.

Change-Id: I60f55a53294a09332a3fbec669ed793359d1bdf5

9 years agoRemove obsolete test_isolated wrapper function
Dmitriy Ivanov [Mon, 16 Mar 2015 21:15:46 +0000 (14:15 -0700)]
Remove obsolete test_isolated wrapper function

 We already run all of our tests in isolated mode.

Change-Id: I8236baa302b1026a9b4a1c33a4aa65e223771bc7

9 years agoam 169a84f9: Merge "Revert "Revert "Moving StringPrintf to libbase."""
Dan Albert [Mon, 16 Mar 2015 21:16:48 +0000 (21:16 +0000)]
am 169a84f9: Merge "Revert "Revert "Moving StringPrintf to libbase."""

* commit '169a84f980d7a55c5f829cdd53a3eaba8f968442':
  Revert "Revert "Moving StringPrintf to libbase.""