13951 Commits

Author SHA1 Message Date
Yabin Cui
dc93db20a9 Change name of rwlock benchmark.
rw_lock is not easy for me to remember, so I prefer changing it to rwlock.

Change-Id: I0784acaca0c3b46c28184a77eb29ffe696f9ea07
2015-03-17 13:38:57 -07:00
Yabin Cui
a10afcc9cc am 46f9b3e7: am a75771e3: Merge "Fix build: pthread_mutex/pthread_detach."
* commit '46f9b3e7662d946d775d30dbe91828e4cb935af5':
  Fix build: pthread_mutex/pthread_detach.
2015-03-17 19:07:03 +00:00
Yabin Cui
48fc08e1e6 am f7dbefb0: am 94babaee: Merge "Make pthread join_state not protected by g_thread_list_lock."
* commit 'f7dbefb08f974a368d19b482997570e375f2bf84':
  Make pthread join_state not protected by g_thread_list_lock.
2015-03-17 19:06:48 +00:00
Yabin Cui
62059a07da am ca7ac7d3: am 5490bebd: Merge "Remove duplication in pthread_mutex.cpp."
* commit 'ca7ac7d36a3f7f31d65d1a4740f95f43de7ab1e4':
  Remove duplication in pthread_mutex.cpp.
2015-03-17 19:06:46 +00:00
Yabin Cui
46f9b3e766 am a75771e3: Merge "Fix build: pthread_mutex/pthread_detach."
* commit 'a75771e3ab429fae2f9af770416150733264a281':
  Fix build: pthread_mutex/pthread_detach.
2015-03-17 18:52:13 +00:00
Yabin Cui
a75771e3ab Merge "Fix build: pthread_mutex/pthread_detach." 2015-03-17 18:40:39 +00:00
Yabin Cui
ecbfb25c50 Fix build: pthread_mutex/pthread_detach.
Change-Id: I9c7b6297d3bf3ab8004d05d44cc4c95159315c9e
2015-03-17 11:37:51 -07:00
Yabin Cui
f7dbefb08f 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.
2015-03-17 18:21:49 +00:00
Yabin Cui
ca7ac7d36a am 5490bebd: Merge "Remove duplication in pthread_mutex.cpp."
* commit '5490bebd7cdd4406780358f590391b75ab8a7d84':
  Remove duplication in pthread_mutex.cpp.
2015-03-17 18:21:48 +00: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
c331d67d1b am 72c6b79d: am 5f8ddf69: Merge "Fix build: align pthread_cond_t to sizeof(long)"
* commit '72c6b79ddb14bbf185cc3b59adf095ab65e77a06':
  Fix build: align pthread_cond_t to sizeof(long)
2015-03-17 14:30:04 +00:00
Simon Baldwin
aef719510a 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
2015-03-16 17:50:50 -07:00
Dmitriy Ivanov
b3ac2145f4 Fix build: align pthread_cond_t to sizeof(long)
(cherry picked from commit b5cd3c7a7503d8155ea17424c00f7e77603252c0)

Change-Id: I69d8feeda2c8e0423c5626bcd40914e7eb9d85e4
2015-03-16 17:44:05 -07:00
Dmitriy Ivanov
72c6b79ddb am 5f8ddf69: Merge "Fix build: align pthread_cond_t to sizeof(long)"
* commit '5f8ddf69e59b13653d016e236599b95daf6501a8':
  Fix build: align pthread_cond_t to sizeof(long)
2015-03-17 00:25:06 +00:00
Dmitriy Ivanov
5f8ddf69e5 Merge "Fix build: align pthread_cond_t to sizeof(long)" 2015-03-17 00:10:49 +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
28654c922d am 1ffc89e3: am f14fe856: Merge "Add alignment to opaque types."
* commit '1ffc89e301ae167ad5843ae570be0d779e37bec8':
  Add alignment to opaque types.
2015-03-16 23:51:31 +00:00
Christopher Ferris
1ffc89e301 am f14fe856: Merge "Add alignment to opaque types."
* commit 'f14fe856b40afc38540988b408edc508298ec116':
  Add alignment to opaque types.
2015-03-16 23:45:16 +00:00
Christopher Ferris
f14fe856b4 Merge "Add alignment to opaque types." 2015-03-16 23:33:38 +00: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
Dmitriy Ivanov
c6cc6f6312 am 862b088a: am 3d170a6d: Merge "Remove obsolete test_isolated wrapper function"
* commit '862b088ac30881221500122955fc9e13933cbafd':
  Remove obsolete test_isolated wrapper function
2015-03-16 22:40:08 +00:00
Dmitriy Ivanov
1f5ede0a6e am bca13d41: am 3b7239fe: Merge "General purpose memory allocator for linker."
* commit 'bca13d417798ac3bab751d40da25cc4cfba76397':
  General purpose memory allocator for linker.
2015-03-16 22:40:06 +00:00
Yabin Cui
69929b34e7 am 19631034: am 0f3fcd12: Merge "Fix atomic_load on const variable in pthread_cond_t."
* commit '19631034a4e155f5e5ed061a2dcf30b377a8c04b':
  Fix atomic_load on const variable in pthread_cond_t.
2015-03-16 22:39:33 +00:00
Dan Albert
cc42165788 am f13f9ec1: am 169a84f9: Merge "Revert "Revert "Moving StringPrintf to libbase."""
* commit 'f13f9ec12eb10c94473da34fdd736e0c0ed439d1':
  Revert "Revert "Moving StringPrintf to libbase.""
2015-03-16 22:39:23 +00:00
Dmitriy Ivanov
862b088ac3 am 3d170a6d: Merge "Remove obsolete test_isolated wrapper function"
* commit '3d170a6d6c650cb81260ea9157d6f4df99e41e8c':
  Remove obsolete test_isolated wrapper function
2015-03-16 22:03:53 +00:00
Dmitriy Ivanov
bca13d4177 am 3b7239fe: Merge "General purpose memory allocator for linker."
* commit '3b7239feb9265f0b677e845dec0514583de9c6be':
  General purpose memory allocator for linker.
2015-03-16 22:03:52 +00:00
Yabin Cui
6b865a7a83 am 533bc4a0: am d3e2a207: Merge "Hide content of pthread_cond_t in pthread_cond_internal_t."
* commit '533bc4a09cebbecd1c871f0d8481e9449216f5f5':
  Hide content of pthread_cond_t in pthread_cond_internal_t.
2015-03-16 21:58:43 +00:00
Dmitriy Ivanov
970dd7d985 am a5bd2a10: am 9923c8cd: Merge "Fix typo"
* commit 'a5bd2a1039d545cbcb0fe187f76240ecaa84e45f':
  Fix typo
2015-03-16 21:58:33 +00:00
Dmitriy Ivanov
3d170a6d6c Merge "Remove obsolete test_isolated wrapper function" 2015-03-16 21:50:16 +00:00
Dmitriy Ivanov
3b7239feb9 Merge "General purpose memory allocator for linker." 2015-03-16 21:49:59 +00:00
Yabin Cui
19631034a4 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.
2015-03-16 21:43:21 +00:00
Yabin Cui
0f3fcd12dd Merge "Fix atomic_load on const variable in pthread_cond_t." 2015-03-16 21:31:09 +00: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
Dmitriy Ivanov
cb0443c0fa Remove obsolete test_isolated wrapper function
We already run all of our tests in isolated mode.

Change-Id: I8236baa302b1026a9b4a1c33a4aa65e223771bc7
2015-03-16 14:20:57 -07:00
Dan Albert
f13f9ec12e am 169a84f9: Merge "Revert "Revert "Moving StringPrintf to libbase."""
* commit '169a84f980d7a55c5f829cdd53a3eaba8f968442':
  Revert "Revert "Moving StringPrintf to libbase.""
2015-03-16 21:16:48 +00:00
Yabin Cui
533bc4a09c am d3e2a207: Merge "Hide content of pthread_cond_t in pthread_cond_internal_t."
* commit 'd3e2a207ffcaefedf2d3baaaad3d62be1abdb33c':
  Hide content of pthread_cond_t in pthread_cond_internal_t.
2015-03-16 21:09:26 +00:00
Dan Albert
169a84f980 Merge "Revert "Revert "Moving StringPrintf to libbase.""" 2015-03-16 21:02:51 +00:00
Yabin Cui
d3e2a207ff Merge "Hide content of pthread_cond_t in pthread_cond_internal_t." 2015-03-16 20:58:02 +00:00
Dan Albert
4c1dbb4000 Revert "Revert "Moving StringPrintf to libbase.""
This reverts commit d2dad2b24fb82604f9dbe7a082e630a524f1473d.

(cherry picked from commit 3e87c785434fdfed2fb00496cb391c411a426bdd)
2015-03-16 13:50:15 -07:00
Dmitriy Ivanov
a5bd2a1039 am 9923c8cd: Merge "Fix typo"
* commit '9923c8cd13d1e8305a908ef23712c7d3e4d4131d':
  Fix typo
2015-03-16 20:39:00 +00:00
Dmitriy Ivanov
9923c8cd13 Merge "Fix typo" 2015-03-16 20:30:01 +00:00
Dmitriy Ivanov
b1ada3dd3f Fix typo
Change-Id: Ie6dad7d09873c88f6bbb2d45c2780e3b0c618bd6
2015-03-16 13:20:23 -07:00
Dmitriy Ivanov
19656ce537 General purpose memory allocator for linker.
Add basic general purpose memory allocator to
 linker in order to enable usage of other libraries
 like libziparchive.

Change-Id: I4a680ebb36ed5ba67c61249f81dba9f567808434
2015-03-16 11:19:53 -07: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
Dan Albert
3e87c78543 Revert "Revert "Moving StringPrintf to libbase.""
This reverts commit d2dad2b24fb82604f9dbe7a082e630a524f1473d.
2015-03-16 10:06:29 -07:00
Nicolas Geoffray
e5fff0831c am 645621ec: am 11a06c73: Merge "Revert "Moving StringPrintf to libbase.""
* commit '645621ec8bbd8c6ffca7c3b48580b20feb3b76a2':
  Revert "Moving StringPrintf to libbase."
2015-03-16 12:37:10 +00:00
Nicolas Geoffray
645621ec8b am 11a06c73: Merge "Revert "Moving StringPrintf to libbase.""
* commit '11a06c73f6e7d31442429a58a346d881b0a8a441':
  Revert "Moving StringPrintf to libbase."
2015-03-16 12:30:48 +00:00
Nicolas Geoffray
11a06c73f6 Merge "Revert "Moving StringPrintf to libbase."" 2015-03-16 12:20:27 +00:00
Nicolas Geoffray
d2dad2b24f Revert "Moving StringPrintf to libbase."
libbase has been reverted

This reverts commit 7ed5fa1e4d37722a644518594bf2b0e1529c05e9.

Change-Id: I5d8ff8c38ff8c9123e6cee5dc15a101a79e94b2e
2015-03-16 12:19:26 +00:00