OSDN Git Service

android-x86/bionic.git
7 years agoloader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e -s ours am...
Dimitry Ivanov [Sun, 14 May 2017 17:54:35 +0000 (17:54 +0000)]
loader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e  -s ours am: 02b94ea8ff am: 623d83754a am: 254aec13d0 am: c65740f4a5 am: 59abd613d4 am: 2514cb784d
am: f3537c61bf

Change-Id: Ib97ef3be452422f32390457047d64b17c02ac9e0

7 years agoloader: fix leak of child-to-parent links on dlclose() am: 772db5e6d4 am: 78b10daab3...
Dimitry Ivanov [Sun, 14 May 2017 17:54:23 +0000 (17:54 +0000)]
loader: fix leak of child-to-parent links on dlclose() am: 772db5e6d4 am: 78b10daab3  -s ours am: dfb42b364d am: de4e1ef729 am: 62110f9538 am: cb3e51d006
am: b2792c701f

Change-Id: Id90e8ed17cdd2804d6f6534cfbbb70e1892be0cd

7 years agoloader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e -s ours am...
Dimitry Ivanov [Sun, 14 May 2017 17:52:14 +0000 (17:52 +0000)]
loader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e  -s ours am: 02b94ea8ff am: 623d83754a am: 254aec13d0 am: c65740f4a5 am: 59abd613d4
am: 2514cb784d

Change-Id: I333d717351fb970e651260a7ec88d17bc9a1c014

7 years agoloader: fix leak of child-to-parent links on dlclose() am: 772db5e6d4 am: 78b10daab3...
Dimitry Ivanov [Sun, 14 May 2017 17:51:54 +0000 (17:51 +0000)]
loader: fix leak of child-to-parent links on dlclose() am: 772db5e6d4 am: 78b10daab3  -s ours am: dfb42b364d am: de4e1ef729 am: 62110f9538
am: cb3e51d006

Change-Id: I17db0fafc84cda99bb401efcca497342b9ad4d9a

7 years agoloader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e -s ours am...
Dimitry Ivanov [Sun, 14 May 2017 17:49:34 +0000 (17:49 +0000)]
loader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e  -s ours am: 02b94ea8ff am: 623d83754a am: 254aec13d0 am: c65740f4a5
am: 59abd613d4

Change-Id: I1f1fd31090a9a2bc2d3c1472558d2b2dc2993c40

7 years agoloader: fix leak of child-to-parent links on dlclose() am: 772db5e6d4 am: 78b10daab3...
Dimitry Ivanov [Sun, 14 May 2017 17:49:23 +0000 (17:49 +0000)]
loader: fix leak of child-to-parent links on dlclose() am: 772db5e6d4 am: 78b10daab3  -s ours am: dfb42b364d am: de4e1ef729
am: 62110f9538

Change-Id: I93471ac1d92f3e0908744e1c648df1b367d62e7f

7 years agoloader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e -s ours am...
Dimitry Ivanov [Sun, 14 May 2017 17:46:34 +0000 (17:46 +0000)]
loader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e  -s ours am: 02b94ea8ff am: 623d83754a am: 254aec13d0
am: c65740f4a5

Change-Id: I59cea9af44bfa75e1a9f7f4c780396f2d3f606db

7 years agoloader: fix leak of child-to-parent links on dlclose() am: 772db5e6d4 am: 78b10daab3...
Dimitry Ivanov [Sun, 14 May 2017 17:46:23 +0000 (17:46 +0000)]
loader: fix leak of child-to-parent links on dlclose() am: 772db5e6d4 am: 78b10daab3  -s ours am: dfb42b364d
am: de4e1ef729

Change-Id: If332d0da191a7e1671fffe2e4ee1f02dd3bb5845

7 years agoloader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e -s ours am...
Dimitry Ivanov [Sun, 14 May 2017 17:44:04 +0000 (17:44 +0000)]
loader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e  -s ours am: 02b94ea8ff am: 623d83754a
am: 254aec13d0

Change-Id: I3bf9d4ddda2fecb0a1e18b9f7600585118555121

7 years agoloader: fix leak of child-to-parent links on dlclose() am: 772db5e6d4 am: 78b10daab3...
Dimitry Ivanov [Sun, 14 May 2017 17:43:52 +0000 (17:43 +0000)]
loader: fix leak of child-to-parent links on dlclose() am: 772db5e6d4 am: 78b10daab3  -s ours
am: dfb42b364d

Change-Id: I000de0ab7f28fab41b846ff8837669e97d048e26

7 years agoloader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e -s ours am...
Dimitry Ivanov [Sun, 14 May 2017 17:41:34 +0000 (17:41 +0000)]
loader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e  -s ours am: 02b94ea8ff
am: 623d83754a

Change-Id: Ieff24664f41ed85ddb65af28a0f44bdbfb76bee2

7 years agoloader: fix leak of child-to-parent links on dlclose() am: 772db5e6d4
Dimitry Ivanov [Sun, 14 May 2017 17:41:22 +0000 (17:41 +0000)]
loader: fix leak of child-to-parent links on dlclose() am: 772db5e6d4
am: 78b10daab3  -s ours

Change-Id: I6ce0ea6a941043e1271d3a02a1f8dc706716e6c9

7 years agoloader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e -s ours
Dimitry Ivanov [Sun, 14 May 2017 17:33:31 +0000 (17:33 +0000)]
loader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e  -s ours
am: 02b94ea8ff

Change-Id: I0b49c8b7b3d3557f98815e29cd902c29a029a02e

7 years agoloader: fix leak of child-to-parent links on dlclose()
Dimitry Ivanov [Sun, 14 May 2017 17:33:21 +0000 (17:33 +0000)]
loader: fix leak of child-to-parent links on dlclose()
am: 772db5e6d4

Change-Id: I538995372384103dcbd1ca6f3ff5fcd4ae80c972

7 years agoloader: fix leak of child-to-parent links on dlclose()
Dimitry Ivanov [Sun, 14 May 2017 17:30:22 +0000 (17:30 +0000)]
loader: fix leak of child-to-parent links on dlclose()
am: 46c3aa2c0e  -s ours

Change-Id: I41138d893d74f59fc0e888c444e314523a8e7a49

7 years agoloader: fix leak of child-to-parent links on dlclose()
Dimitry Ivanov [Fri, 21 Apr 2017 23:44:48 +0000 (16:44 -0700)]
loader: fix leak of child-to-parent links on dlclose()

Use children instead of parents in is_recursive() - this
allows us to remove code adding links from child to
parent when loading a library.

Bug: 36104177
Test: /data/nativetest/bionic-unit-tests/bionic-unit-tests32 --gtest_filter=dl*
Test: manual - dlopen/dlclose libandroid.so 10 times and see how many blocks are
      used after each dlclose() - make sure they are constant.

Change-Id: I776d47de92101c6ba47f400205ccbfe8844a7cb8

7 years agoloader: fix leak of child-to-parent links on dlclose()
Dimitry Ivanov [Sat, 22 Apr 2017 00:44:25 +0000 (17:44 -0700)]
loader: fix leak of child-to-parent links on dlclose()

Remove the code adding link from child to parent. The link is
not used anywhere in the linker for L release.

Bug: 36104177
Test: manual - dlopen/dlclose libandroid.so 10 times and see how many blocks are
      used after each dlclose() - make sure they are constant.

Change-Id: I57039e934ba233253ad7dce2e071833528460116

7 years agoCheck for bad packets in getaddrinfo.c's getanswer. am: 105a0bdfa5 am: 214dd6e0fb...
Elliott Hughes [Thu, 8 Dec 2016 22:48:23 +0000 (22:48 +0000)]
Check for bad packets in getaddrinfo.c's getanswer. am: 105a0bdfa5 am: 214dd6e0fb am: 71e3bb5d42  -s ours am: 170de03123 am: 59c1e60f83 am: 148a06a7c3 am: 16de57d711 am: 7a163f01d0 am: f2ecd5dc25 am: 9b48faee8a
am: 492039369d

Change-Id: I0a3e4b288a282d3a11249bf804161de3f0848bde

7 years agoCheck for bad packets in getaddrinfo.c's getanswer. am: 105a0bdfa5 am: 214dd6e0fb...
Elliott Hughes [Thu, 8 Dec 2016 22:43:24 +0000 (22:43 +0000)]
Check for bad packets in getaddrinfo.c's getanswer. am: 105a0bdfa5 am: 214dd6e0fb am: 71e3bb5d42  -s ours am: 170de03123 am: 59c1e60f83 am: 148a06a7c3 am: 16de57d711 am: 7a163f01d0 am: f2ecd5dc25
am: 9b48faee8a

Change-Id: I814f637cca0c7309d730450e4d3f05aa1b5d684c

7 years agoCheck for bad packets in getaddrinfo.c's getanswer. am: 105a0bdfa5 am: 214dd6e0fb...
Elliott Hughes [Thu, 8 Dec 2016 22:38:23 +0000 (22:38 +0000)]
Check for bad packets in getaddrinfo.c's getanswer. am: 105a0bdfa5 am: 214dd6e0fb am: 71e3bb5d42  -s ours am: 170de03123 am: 59c1e60f83 am: 148a06a7c3 am: 16de57d711 am: 7a163f01d0
am: f2ecd5dc25

Change-Id: I175cc9208a110413eece74afd03476b2776a7a88

7 years agoCheck for bad packets in getaddrinfo.c's getanswer. am: 105a0bdfa5 am: 214dd6e0fb...
Elliott Hughes [Thu, 8 Dec 2016 22:33:52 +0000 (22:33 +0000)]
Check for bad packets in getaddrinfo.c's getanswer. am: 105a0bdfa5 am: 214dd6e0fb am: 71e3bb5d42  -s ours am: 170de03123 am: 59c1e60f83 am: 148a06a7c3 am: 16de57d711
am: 7a163f01d0

Change-Id: I1d37717604f210fbc1c1ddabbd69ec55f118cc48

7 years agoCheck for bad packets in getaddrinfo.c's getanswer. am: 105a0bdfa5 am: 214dd6e0fb...
Elliott Hughes [Thu, 8 Dec 2016 22:29:22 +0000 (22:29 +0000)]
Check for bad packets in getaddrinfo.c's getanswer. am: 105a0bdfa5 am: 214dd6e0fb am: 71e3bb5d42  -s ours am: 170de03123 am: 59c1e60f83 am: 148a06a7c3
am: 16de57d711

Change-Id: I93395c898ac3b1ef6ebeb6ca53c52a057b7d108d

7 years agoCheck for bad packets in getaddrinfo.c's getanswer. am: 105a0bdfa5 am: 214dd6e0fb...
Elliott Hughes [Thu, 8 Dec 2016 22:24:23 +0000 (22:24 +0000)]
Check for bad packets in getaddrinfo.c's getanswer. am: 105a0bdfa5 am: 214dd6e0fb am: 71e3bb5d42  -s ours am: 170de03123 am: 59c1e60f83
am: 148a06a7c3

Change-Id: I2b04ead381c43e5afee710813cff4f1b12d10419

7 years agoCheck for bad packets in getaddrinfo.c's getanswer. am: 105a0bdfa5 am: 214dd6e0fb...
Elliott Hughes [Thu, 8 Dec 2016 22:19:21 +0000 (22:19 +0000)]
Check for bad packets in getaddrinfo.c's getanswer. am: 105a0bdfa5 am: 214dd6e0fb am: 71e3bb5d42  -s ours am: 170de03123
am: 59c1e60f83

Change-Id: I674cdcf370ca9820273aa21fe0b409c0d4351792

7 years agoCheck for bad packets in getaddrinfo.c's getanswer. am: 9ea3f1c8a5 am: 62b2f0523e...
Elliott Hughes [Thu, 8 Dec 2016 22:14:22 +0000 (22:14 +0000)]
Check for bad packets in getaddrinfo.c's getanswer. am: 9ea3f1c8a5 am: 62b2f0523e am: 91b8b9dd71  -s ours am: 2ad4e6e4f6 am: c58d806231 am: ffcf543b9c am: c08dc9cbb3
am: bc9f3827ab

Change-Id: Ib1a2089dd005e2312d46add2da8fd2e38887faa6

7 years agoCheck for bad packets in getaddrinfo.c's getanswer. am: 105a0bdfa5 am: 214dd6e0fb...
Elliott Hughes [Thu, 8 Dec 2016 22:14:21 +0000 (22:14 +0000)]
Check for bad packets in getaddrinfo.c's getanswer. am: 105a0bdfa5 am: 214dd6e0fb am: 71e3bb5d42  -s ours
am: 170de03123

Change-Id: Ib9c8bcb874cdc99c06951102da7cee61b5d09dc2

7 years agoCheck for bad packets in getaddrinfo.c's getanswer. am: 9ea3f1c8a5 am: 62b2f0523e...
Elliott Hughes [Thu, 8 Dec 2016 22:09:24 +0000 (22:09 +0000)]
Check for bad packets in getaddrinfo.c's getanswer. am: 9ea3f1c8a5 am: 62b2f0523e am: 91b8b9dd71  -s ours am: 2ad4e6e4f6 am: c58d806231 am: ffcf543b9c
am: c08dc9cbb3

Change-Id: Iea58d7677bfdc67c381dd5e0d415328704f98525

7 years agoCheck for bad packets in getaddrinfo.c's getanswer. am: 105a0bdfa5 am: 214dd6e0fb
Elliott Hughes [Thu, 8 Dec 2016 22:09:21 +0000 (22:09 +0000)]
Check for bad packets in getaddrinfo.c's getanswer. am: 105a0bdfa5 am: 214dd6e0fb
am: 71e3bb5d42  -s ours

Change-Id: I9128113ef3843603ce29409baa375d72a2c70804

7 years agoCheck for bad packets in getaddrinfo.c's getanswer. am: 9ea3f1c8a5 am: 62b2f0523e...
Elliott Hughes [Thu, 8 Dec 2016 22:04:19 +0000 (22:04 +0000)]
Check for bad packets in getaddrinfo.c's getanswer. am: 9ea3f1c8a5 am: 62b2f0523e am: 91b8b9dd71  -s ours am: 2ad4e6e4f6 am: c58d806231
am: ffcf543b9c

Change-Id: I4b1d461cea68db0d8b88a7e0d5755987b8c9c2d3

7 years agoMerge "Check for bad packets in getaddrinfo.c's getanswer." into nyc-dev
Elliott Hughes [Thu, 8 Dec 2016 21:59:20 +0000 (21:59 +0000)]
Merge "Check for bad packets in getaddrinfo.c's getanswer." into nyc-dev
am: 568757393a

Change-Id: I7dd7da0c79692a2773fafbbd7c7583c5404789f4

7 years agoCheck for bad packets in getaddrinfo.c's getanswer. am: 9ea3f1c8a5 am: 62b2f0523e...
Elliott Hughes [Thu, 8 Dec 2016 21:59:19 +0000 (21:59 +0000)]
Check for bad packets in getaddrinfo.c's getanswer. am: 9ea3f1c8a5 am: 62b2f0523e am: 91b8b9dd71  -s ours am: 2ad4e6e4f6
am: c58d806231

Change-Id: Iccad5db8fbed8d449c07fbfcdcbf5fc0d7f160e5

7 years agoCheck for bad packets in getaddrinfo.c's getanswer.
Elliott Hughes [Thu, 8 Dec 2016 21:59:19 +0000 (21:59 +0000)]
Check for bad packets in getaddrinfo.c's getanswer.
am: 418fe1eb1a

Change-Id: Ieb228346980c1718e42aa6673dcee530f54ac2fc

7 years agoMerge "Check for bad packets in getaddrinfo.c's getanswer." into nyc-dev
Elliott Hughes [Thu, 8 Dec 2016 21:55:54 +0000 (21:55 +0000)]
Merge "Check for bad packets in getaddrinfo.c's getanswer." into nyc-dev

7 years agoCheck for bad packets in getaddrinfo.c's getanswer. am: 9ea3f1c8a5 am: 62b2f0523e...
Elliott Hughes [Thu, 8 Dec 2016 21:54:49 +0000 (21:54 +0000)]
Check for bad packets in getaddrinfo.c's getanswer. am: 9ea3f1c8a5 am: 62b2f0523e am: 91b8b9dd71  -s ours
am: 2ad4e6e4f6

Change-Id: I36e2e234308fe8e527acd45c53b918fd4a8f20cf

7 years agoCheck for bad packets in getaddrinfo.c's getanswer. am: 105a0bdfa5
Elliott Hughes [Thu, 8 Dec 2016 21:54:48 +0000 (21:54 +0000)]
Check for bad packets in getaddrinfo.c's getanswer. am: 105a0bdfa5
am: 214dd6e0fb

Change-Id: Icb2a9662e7909d5e9e23fddf632999053398d0f6

7 years agoCheck for bad packets in getaddrinfo.c's getanswer. am: 9ea3f1c8a5 am: 62b2f0523e
Elliott Hughes [Thu, 8 Dec 2016 21:50:18 +0000 (21:50 +0000)]
Check for bad packets in getaddrinfo.c's getanswer. am: 9ea3f1c8a5 am: 62b2f0523e
am: 91b8b9dd71  -s ours

Change-Id: Ifd8532b08f3545aa93561cb73226f116ace49e19

7 years agoCheck for bad packets in getaddrinfo.c's getanswer.
Elliott Hughes [Thu, 8 Dec 2016 21:50:18 +0000 (21:50 +0000)]
Check for bad packets in getaddrinfo.c's getanswer.
am: 105a0bdfa5

Change-Id: I3a6ff59b6b35398f5aa6838995670a6bb9546bc9

7 years agoCheck for bad packets in getaddrinfo.c's getanswer. am: 9ea3f1c8a5
Elliott Hughes [Thu, 8 Dec 2016 21:17:17 +0000 (21:17 +0000)]
Check for bad packets in getaddrinfo.c's getanswer. am: 9ea3f1c8a5
am: 62b2f0523e

Change-Id: I32e6e9d2747364697846ff47ff0622fff260d319

7 years agoCheck for bad packets in getaddrinfo.c's getanswer.
Elliott Hughes [Thu, 8 Dec 2016 21:12:16 +0000 (21:12 +0000)]
Check for bad packets in getaddrinfo.c's getanswer.
am: 9ea3f1c8a5

Change-Id: Id6ba716299450f0f0625750460524fa07f55e708

7 years agoCheck for bad packets in getaddrinfo.c's getanswer. am: 87c0dba7b1 am: dc0492ac4f...
Elliott Hughes [Thu, 8 Dec 2016 21:12:16 +0000 (21:12 +0000)]
Check for bad packets in getaddrinfo.c's getanswer. am: 87c0dba7b1 am: dc0492ac4f am: f277bb86c6 am: 389e3e92e2
am: 0ffd7a5fb1

Change-Id: I286e1860addc1ae571273d2b4a4e1359e990b6aa

7 years agoCheck for bad packets in getaddrinfo.c's getanswer. am: 87c0dba7b1 am: dc0492ac4f...
Elliott Hughes [Thu, 8 Dec 2016 21:07:17 +0000 (21:07 +0000)]
Check for bad packets in getaddrinfo.c's getanswer. am: 87c0dba7b1 am: dc0492ac4f am: f277bb86c6
am: 389e3e92e2

Change-Id: Ie935c8491aa18867a5087ca4cf707eec318b85f6

7 years agoCheck for bad packets in getaddrinfo.c's getanswer. am: 87c0dba7b1 am: dc0492ac4f
Elliott Hughes [Thu, 8 Dec 2016 21:02:16 +0000 (21:02 +0000)]
Check for bad packets in getaddrinfo.c's getanswer. am: 87c0dba7b1 am: dc0492ac4f
am: f277bb86c6

Change-Id: I93c52807f84160dee04c93a0cdeee0ddf758db1b

7 years agoCheck for bad packets in getaddrinfo.c's getanswer. am: 87c0dba7b1
Elliott Hughes [Thu, 8 Dec 2016 20:57:15 +0000 (20:57 +0000)]
Check for bad packets in getaddrinfo.c's getanswer. am: 87c0dba7b1
am: dc0492ac4f

Change-Id: I949b993b8490d27ec180257fcca06d8984940f0f

7 years agoCheck for bad packets in getaddrinfo.c's getanswer.
Elliott Hughes [Thu, 8 Dec 2016 20:52:15 +0000 (20:52 +0000)]
Check for bad packets in getaddrinfo.c's getanswer.
am: 87c0dba7b1

Change-Id: I3a09f86362797881b4e7cc0ee807d28addf7b342

7 years agoCheck for bad packets in getaddrinfo.c's getanswer.
Elliott Hughes [Mon, 14 Nov 2016 21:56:32 +0000 (13:56 -0800)]
Check for bad packets in getaddrinfo.c's getanswer.

The near duplicate in gethnamaddr.c was already doing so (this fix
is basically copy and pasted from there, but with both copies modified
to avoid skirting undefined behavior).

Bug: http://b/32322088
Test: browser still works
Change-Id: Ied6662be567fb1bddc7ceb138cae1da77fb57976
(cherry picked from commit 27a4459d945e34fabd7166791a5b862ccea83f23)

7 years agoCheck for bad packets in getaddrinfo.c's getanswer.
Elliott Hughes [Tue, 15 Nov 2016 20:31:01 +0000 (12:31 -0800)]
Check for bad packets in getaddrinfo.c's getanswer.

The near duplicate in gethnamaddr.c was already doing so (this fix
is basically copy and pasted from there, but with both copies modified
to avoid skirting undefined behavior).

(cherrypick of 27a4459d945e34fabd7166791a5b862ccea83f23 from master.)

Bug: http://b/32322088
Change-Id: I9668b1515ad87665e47cae962812474bb480f205

7 years agoCheck for bad packets in getaddrinfo.c's getanswer.
Elliott Hughes [Mon, 14 Nov 2016 21:56:32 +0000 (13:56 -0800)]
Check for bad packets in getaddrinfo.c's getanswer.

The near duplicate in gethnamaddr.c was already doing so (this fix
is basically copy and pasted from there, but with both copies modified
to avoid skirting undefined behavior).

(cherrypick of 27a4459d945e34fabd7166791a5b862ccea83f23 from master.)

Bug: http://b/32322088
Test: browser still works
Change-Id: I16950bb0ff9dc806cc5405b913ca4ef96e43c19f

7 years agoCheck for bad packets in getaddrinfo.c's getanswer.
Elliott Hughes [Mon, 14 Nov 2016 21:56:32 +0000 (13:56 -0800)]
Check for bad packets in getaddrinfo.c's getanswer.

The near duplicate in gethnamaddr.c was already doing so (this fix
is basically copy and pasted from there, but with both copies modified
to avoid skirting undefined behavior).

Bug: http://b/32322088
Test: browser still works
Change-Id: Ied6662be567fb1bddc7ceb138cae1da77fb57976
(cherry picked from commit 27a4459d945e34fabd7166791a5b862ccea83f23)

7 years agoFix a linking error in bionic/tests
Tianjie Xu [Fri, 7 Oct 2016 04:22:45 +0000 (04:22 +0000)]
Fix a linking error in bionic/tests
am: 3656958a16

Change-Id: I5636ecc4e0a5ff4e1ee0a6cd0f1d182d444e63f9

7 years agoFix a linking error in bionic/tests
Tianjie Xu [Fri, 7 Oct 2016 02:23:05 +0000 (19:23 -0700)]
Fix a linking error in bionic/tests

Fix the following linking error by adding liblog in the makefile:
"system/core/libziparchive/zip_archive.cc:277: error: undefined reference to
'__android_log_error_write'"

The error happens because libziparchive has dependency on liblog. This
error affects the downstream branches of nyc-dev.

Bug: 31251826
Test: mma -j32
Change-Id: Ia42909bbbd150ae0ca9f6aa6b14372f2e0aedccf

7 years agolinker: stat /proc/self/exe instead of executable_path
Dimitry Ivanov [Thu, 25 Aug 2016 21:53:35 +0000 (14:53 -0700)]
linker: stat /proc/self/exe instead of executable_path

The absolute path to an executable may no longer be valid for
example when the file is unlinked immediately after exec.
Using /proc/self/exe instead of absolute path solves this problem.

Bug: http://b/31084669
Test: Run the app from http://b/31084669 make sure executable starts
Test: by checking ps and /proc/<pid>/exe
Change-Id: I5c819f39ef0fc4fc71b05de71e8af9ede611f04c
(cherry picked from commit 7da4bbbe87a7eca742c6c45a76aaf191aa70d948)

7 years agolinker_asan: Translate absolute dlopen paths to use asan-libraries.
Dimitry Ivanov [Wed, 10 Aug 2016 02:38:43 +0000 (19:38 -0700)]
linker_asan: Translate absolute dlopen paths to use asan-libraries.

This patch enables absolute path translation to instrumented library
when linker_asan is in use.

Test: adb shell cat /proc/<rlid pid>/maps | grep libril-qc-qmi-1.so
      check that it is mapped from /data/vendor/lib64 and not /vendor/lib64
Bug: http://b/30320104
Change-Id: I3bc24754b192afc0a72d6f3801f7b42141ce715b

7 years agoCheck alignment along with range of mapped file fragments
Dimitry Ivanov [Tue, 9 Aug 2016 00:12:18 +0000 (17:12 -0700)]
Check alignment along with range of mapped file fragments

Improve sanity-checks of elf-file by adding alignment check
of mapped sections and section headers.

Bug: http://b/30687964
Change-Id: I7f06ddaa56a13989ce7be847b3a73c352e32c008

7 years agoAdd a test for a known kernel bug.
Elliott Hughes [Fri, 15 Jul 2016 00:07:17 +0000 (17:07 -0700)]
Add a test for a known kernel bug.

Bug: http://b/27265969

(cherry picked from commit 4a253496b86522ec732a89f19d4ca534d71d53f2)

Change-Id: Ibf0b6457b02e89b90bc86c9367e14021c606356b

8 years agoForce pthread_cond_timedwait_relative_np using CLOCK_MONOTONIC.
Yabin Cui [Wed, 13 Jul 2016 22:53:25 +0000 (15:53 -0700)]
Force pthread_cond_timedwait_relative_np using CLOCK_MONOTONIC.

Previous patch changed pthread_cond_timedwait_relative_np to use
CLOCK_REALTIME, which causes app compatibility problem. So change
it back to CLOCK_MONOTONIC.

Bug: 30106240
Change-Id: I8e04058e92ede098f4f9f8d133f094001921441e
(cherry picked from commit fe4a4d8f67cf84b0b10d6c689f356229e057603b)

8 years agoUpdate timezone data to 2016f am: 88d23859e0 am: 6c4968a6e7 am: a884aa8df7
Neil Fuller [Thu, 7 Jul 2016 16:07:46 +0000 (16:07 +0000)]
Update timezone data to 2016f am: 88d23859e0 am: 6c4968a6e7 am: a884aa8df7
am: bc1ce3b828

Change-Id: I7cfc0bb7755fb4c0559c79ec458610a59c398482

8 years agoUpdate timezone data to 2016f am: 88d23859e0 am: 6c4968a6e7
Neil Fuller [Thu, 7 Jul 2016 16:05:31 +0000 (16:05 +0000)]
Update timezone data to 2016f am: 88d23859e0 am: 6c4968a6e7
am: a884aa8df7

Change-Id: I84612c410e4fea54733ed340b6a6695771bba4d9

8 years agoUpdate timezone data to 2016f am: 88d23859e0
Neil Fuller [Thu, 7 Jul 2016 15:58:57 +0000 (15:58 +0000)]
Update timezone data to 2016f am: 88d23859e0
am: 6c4968a6e7

Change-Id: I2b7bbc586b55719fd80d985c0972084dd25c7ada

8 years agoUpdate timezone data to 2016f
Neil Fuller [Thu, 7 Jul 2016 15:55:47 +0000 (15:55 +0000)]
Update timezone data to 2016f
am: 88d23859e0

Change-Id: I3d0a9287cad7f6ec39174d58bf78f5c4b7e3d3e8

8 years agoUpdate timezone data to 2016f
Neil Fuller [Wed, 6 Jul 2016 18:00:26 +0000 (18:00 +0000)]
Update timezone data to 2016f
am: 510ac40370

Change-Id: Ifcf36728c70db9432ce3d61bf56355b62a5a5bca

8 years agoUpdate timezone data to 2016f
Neil Fuller [Wed, 6 Jul 2016 14:26:15 +0000 (15:26 +0100)]
Update timezone data to 2016f

The 2016f release of the tz code and data is available. It reflects the
following changes, which were either circulated on the tz mailing list
or are relatively minor technical or administrative changes:

   Changes affecting future time stamps

     The Egyptian government changed its mind on short notice, and
     Africa/Cairo will not introduce DST starting 2016-07-07 after all.
     (Thanks to Mina Samuel.)

     Asia/Novosibirsk switches from +06 to +07 on 2016-07-24 at 02:00.
     (Thanks to Stepan Golosunov.)

   Changes to past and future time stamps

     Asia/Novokuznetsk and Asia/Novosibirsk now use numeric time zone
     abbreviations instead of invented ones.

   Changes affecting past time stamps

     Europe/Minsk's 1992-03-29 spring-forward transition was at 02:00
not 00:00.
     (Thanks to Stepan Golosunov.)

Note: Paul Eggert changed the key used to sign the tzdata bundle and
the new public key cannot be found. The changes to the data since
2016e have been verified visually.

Change-Id: I30fd2a57fce7473b22ec80f713863ce502293ab9
Test: Ran CTS/android.core.tests.libcore.package.harmony_java_util
Test: Ran CTS/android.core.tests.libcore.package.harmony_java_text
Test: Ran CTS/android.core.tests.libcore.package.libcore
Bug: 29991153

8 years agoUpdate timezone data to 2016f
Neil Fuller [Wed, 6 Jul 2016 14:26:15 +0000 (15:26 +0100)]
Update timezone data to 2016f

The 2016f release of the tz code and data is available. It reflects the
following changes, which were either circulated on the tz mailing list
or are relatively minor technical or administrative changes:

   Changes affecting future time stamps

     The Egyptian government changed its mind on short notice, and
     Africa/Cairo will not introduce DST starting 2016-07-07 after all.
     (Thanks to Mina Samuel.)

     Asia/Novosibirsk switches from +06 to +07 on 2016-07-24 at 02:00.
     (Thanks to Stepan Golosunov.)

   Changes to past and future time stamps

     Asia/Novokuznetsk and Asia/Novosibirsk now use numeric time zone
     abbreviations instead of invented ones.

   Changes affecting past time stamps

     Europe/Minsk's 1992-03-29 spring-forward transition was at 02:00
not 00:00.
     (Thanks to Stepan Golosunov.)

Note: Paul Eggert changed the key used to sign the tzdata bundle and
the new public key cannot be found. The changes to the data since
2016e have been verified visually.

Change-Id: I1767b5d0f7a11349ecd85c1c16942f4d73172dd0
Test: Ran CTS/android.core.tests.libcore.package.harmony_java_util
Test: Ran CTS/android.core.tests.libcore.package.harmony_java_text
Test: Ran CTS/android.core.tests.libcore.package.libcore
Bug: 29984514

8 years agoMerge \\\\\\"DO NOT MERGE: push out fix for data dir.\\\\\\" into marshmallow-cts...
Daniel Xie [Wed, 22 Jun 2016 21:43:30 +0000 (21:43 +0000)]
Merge \\\\\\"DO NOT MERGE: push out fix for data dir.\\\\\\" into marshmallow-cts-dev am: f09a2ff2e6  -s ours am: d986ba2659 am: 99a49f5417 am: 9ced3475be am: e8be35da77  -s ours
am: 3593c2fa62

Change-Id: I602665fc0786a47555fb2a2b8d36d0d2127a70e7

8 years agoMerge \\\\\"DO NOT MERGE: push out fix for data dir.\\\\\" into marshmallow-cts-dev...
Daniel Xie [Wed, 22 Jun 2016 21:41:07 +0000 (21:41 +0000)]
Merge \\\\\"DO NOT MERGE: push out fix for data dir.\\\\\" into marshmallow-cts-dev am: f09a2ff2e6  -s ours am: d986ba2659 am: 99a49f5417 am: 9ced3475be
am: e8be35da77  -s ours

Change-Id: I177ca0c55de3b54bd764f6eddf8749325b6cb3f4

8 years agoMerge \\\\"DO NOT MERGE: push out fix for data dir.\\\\" into marshmallow-cts-dev...
Daniel Xie [Wed, 22 Jun 2016 21:38:36 +0000 (21:38 +0000)]
Merge \\\\"DO NOT MERGE: push out fix for data dir.\\\\" into marshmallow-cts-dev am: f09a2ff2e6  -s ours am: d986ba2659 am: 99a49f5417
am: 9ced3475be

Change-Id: Ie4afe19fe05d760ce22246fb98ef9f5a8a8a88d2

8 years agoMerge \\\"DO NOT MERGE: push out fix for data dir.\\\" into marshmallow-cts-dev am...
Daniel Xie [Wed, 22 Jun 2016 21:36:06 +0000 (21:36 +0000)]
Merge \\\"DO NOT MERGE: push out fix for data dir.\\\" into marshmallow-cts-dev am: f09a2ff2e6  -s ours am: d986ba2659
am: 99a49f5417

Change-Id: I60161d61084359f0ae74c2fdfd9e75b6af5b24d3

8 years agoMerge \\"DO NOT MERGE: push out fix for data dir.\\" into marshmallow-cts-dev am...
Daniel Xie [Wed, 22 Jun 2016 21:33:39 +0000 (21:33 +0000)]
Merge \\"DO NOT MERGE: push out fix for data dir.\\" into marshmallow-cts-dev am: f09a2ff2e6  -s ours
am: d986ba2659

Change-Id: I670ae33ee552d13a25f1071ce042015baf470e22

8 years agoMerge \"DO NOT MERGE: push out fix for data dir.\" into marshmallow-cts-dev
Daniel Xie [Wed, 22 Jun 2016 21:31:10 +0000 (21:31 +0000)]
Merge \"DO NOT MERGE: push out fix for data dir.\" into marshmallow-cts-dev
am: f09a2ff2e6  -s ours

Change-Id: Icdb05b897a4877b86581b41d1dd7d1a14031172b

8 years agoMerge "DO NOT MERGE: push out fix for data dir." into marshmallow-cts-dev
Daniel Xie [Wed, 22 Jun 2016 21:22:03 +0000 (21:22 +0000)]
Merge "DO NOT MERGE: push out fix for data dir." into marshmallow-cts-dev

8 years agoDO NOT MERGE: push out fix for data dir.
Daniel Xie [Wed, 22 Jun 2016 21:19:01 +0000 (14:19 -0700)]
DO NOT MERGE: push out fix for data dir.

Change-Id: I97ff02676e7f6008c26ddb5c41eb113b4b62280f

8 years agoUpdate timezone data to 2016e am: 930bdf8e8c am: 65f57e4cea am: 6a0a02efab
Neil Fuller [Wed, 22 Jun 2016 10:48:27 +0000 (10:48 +0000)]
Update timezone data to 2016e am: 930bdf8e8c am: 65f57e4cea am: 6a0a02efab
am: 378eb66e6c

Change-Id: I71ce699be9c888029f0881af5f26d0b005c47d86

8 years agoUpdate timezone data to 2016e am: 930bdf8e8c am: 65f57e4cea
Neil Fuller [Wed, 22 Jun 2016 10:46:09 +0000 (10:46 +0000)]
Update timezone data to 2016e am: 930bdf8e8c am: 65f57e4cea
am: 6a0a02efab

Change-Id: I4bba4d1fd498cfe5f30d623940ab385a16146ab4

8 years agoUpdate timezone data to 2016e am: 930bdf8e8c
Neil Fuller [Wed, 22 Jun 2016 10:24:38 +0000 (10:24 +0000)]
Update timezone data to 2016e am: 930bdf8e8c
am: 65f57e4cea

Change-Id: I8f38716470915ebd3d2f266d4e5a102c44c13263

8 years agoUpdate timezone data to 2016e
Neil Fuller [Wed, 22 Jun 2016 10:21:57 +0000 (10:21 +0000)]
Update timezone data to 2016e
am: 930bdf8e8c

Change-Id: I85d734d7c7d02f1d999b536745ae8fc323c9b66c

8 years agoUpdate timezone data to 2016d am: 8a35704bea -s ours
Neil Fuller [Wed, 22 Jun 2016 09:00:13 +0000 (09:00 +0000)]
Update timezone data to 2016d am: 8a35704bea  -s ours
am: 140a65866f

Change-Id: I96e94a2e9b75f4e6fcbcf0a80a2109a8b9b48039

8 years agoUpdate timezone data to 2016d
Neil Fuller [Wed, 22 Jun 2016 08:57:35 +0000 (08:57 +0000)]
Update timezone data to 2016d
am: 8a35704bea  -s ours

Change-Id: I5df7a5c49c79f4a784433a2849f7a01a58f6bf68

8 years agoRevert \\"Update timezone data to 2016b\\" am: 5ed031daa3 -s ours
Neil Fuller [Wed, 22 Jun 2016 08:44:25 +0000 (08:44 +0000)]
Revert \\"Update timezone data to 2016b\\" am: 5ed031daa3  -s ours
am: 371b718a0b

Change-Id: I1bcca4982750ac839c3e69866245aea58c824827

8 years agoRevert \"Update timezone data to 2016b\"
Neil Fuller [Wed, 22 Jun 2016 08:42:07 +0000 (08:42 +0000)]
Revert \"Update timezone data to 2016b\"
am: 5ed031daa3  -s ours

Change-Id: Ic4a684359f4e73f1c0c91cad12c0762b3eac3b8b

8 years agoUpdate timezone data to 2016d
Neil Fuller [Fri, 10 Jun 2016 12:07:43 +0000 (13:07 +0100)]
Update timezone data to 2016d

This change is effectively a cherry-pick of aosp/master commit:
60200a74113bf2da23072523b52aa15490d0b07e

Changes affecting future time stamps

    America/Caracas switches from -0430 to -04 on 2016-05-01 at 02:30.
    (Thanks to Alexander Krivenyshev for the heads-up.)

    Asia/Magadan switches from +10 to +11 on 2016-04-24 at 02:00.
    (Thanks to Alexander Krivenyshev and Matt Johnson.)

    New zone Asia/Tomsk, split off from Asia/Novosibirsk. It covers
    Tomsk Oblast, Russia, which switches from +06 to +07 on 2016-05-29
    at 02:00.  (Thanks to Stepan Golosunov.)

  Changes affecting past time stamps

    New zone Europe/Kirov, split off from Europe/Volgograd.  It covers
    Kirov Oblast, Russia, which switched from +04/+05 to +03/+04 on
    1989-03-26 at 02:00, roughly a year after Europe/Volgograd made
    the same change.  (Thanks to Stepan Golosunov.)

    Russia and nearby locations had daylight-saving transitions on
    1992-03-29 at 02:00 and 1992-09-27 at 03:00, instead of on
    1992-03-28 at 23:00 and 1992-09-26 at 23:00.  (Thanks to Stepan
    Golosunov.)

    Many corrections to historical time in Kazakhstan from 1991
    through 2005.  (Thanks to Stepan Golosunov.)  Replace Kazakhstan's
    invented time zone abbreviations with numeric abbreviations.

Bug: 29240433
Bug: 29528355
(cherry picked from commit 2880a020e3859c5febde03be4921e2fbb37f06bf)

Change-Id: I4353a9689e0a21c459259eb5d488ed177acca848

8 years agoRevert "Update timezone data to 2016b"
Neil Fuller [Tue, 21 Jun 2016 10:43:14 +0000 (11:43 +0100)]
Revert "Update timezone data to 2016b"

This reverts commit 7bcee86edcc8cb0f969c719fed9bc3bd04de142f.

This is in preparation for applying the 2016a -> 2016d update
to mnc-dr1.5-dev (commit 2880a020e3859c5febde03be4921e2fbb37f06bf)
which cannot currently be applied because the 2016b update is
present in mnc-dr1.5-dev.

Bug: 29528355

8 years agoUpdate timezone data to 2016e
Neil Fuller [Tue, 21 Jun 2016 10:30:57 +0000 (11:30 +0100)]
Update timezone data to 2016e

  Changes affecting future time stamps

    Africa/Cairo observes DST in 2016 from July 7 to the end of October.
    Guess October 27 and 24:00 transitions. (Thanks to Steffen Thorsen.)
    For future years, guess April's last Thursday to October's last
    Thursday except for Ramadan.

  Changes affecting past time stamps

    Locations while uninhabited now use '-00', not 'zzz', as a
    placeholder time zone abbreviation.  This is inspired by Internet
    RFC 3339 and is more consistent with numeric time zone
    abbreviations already used elsewhere.  The change affects several
    arctic and antarctic locations, e.g., America/Cambridge_Bay before
    1920 and Antarctica/Troll before 2005.

    Asia/Baku's 1992-09-27 transition from +04 (DST) to +04 (non-DST) was
    at 03:00, not 23:00 the previous day.  (Thanks to Michael Deckers.)

Bug: 29354265
Bug: 29240433
Change-Id: I2098aec360bd1ac911e9514fe9dcdf87bdc8778a

8 years agoMake missing public soname error message clear.
Christopher Ferris [Fri, 17 Jun 2016 20:46:36 +0000 (13:46 -0700)]
Make missing public soname error message clear.

If a public library is missing, make it clear that there is no
library with that soname that is missing. This can help diagnose
problems if a library exists, but the library doesn't have the right
soname.

Bug: 29400363
Change-Id: I6e782c76ef892fb18385d720b531e5177598a2b0

8 years agoUpdate timezone data to 2016e
Neil Fuller [Thu, 16 Jun 2016 15:09:41 +0000 (15:09 +0000)]
Update timezone data to 2016e
am: 1b0ee2041c

Change-Id: I1ed224fe898c147b0c10373bc811ad5c91643efd

8 years agoMerge "Add test for a pty kernel bug." into nyc-mr1-dev
Yabin Cui [Wed, 15 Jun 2016 21:25:48 +0000 (21:25 +0000)]
Merge "Add test for a pty kernel bug." into nyc-mr1-dev

8 years agoAdd test for a pty kernel bug.
Yabin Cui [Thu, 9 Jun 2016 23:36:28 +0000 (16:36 -0700)]
Add test for a pty kernel bug.

Bug: 28979140
Change-Id: Iad79fcb7a3c5b068f625c7902785cc6e696fe9a1

8 years agoUpdate timezone data to 2016e
Neil Fuller [Wed, 15 Jun 2016 13:55:44 +0000 (14:55 +0100)]
Update timezone data to 2016e

  Changes affecting future time stamps

    Africa/Cairo observes DST in 2016 from July 7 to the end of October.
    Guess October 27 and 24:00 transitions. (Thanks to Steffen Thorsen.)
    For future years, guess April's last Thursday to October's last
    Thursday except for Ramadan.

  Changes affecting past time stamps

    Locations while uninhabited now use '-00', not 'zzz', as a
    placeholder time zone abbreviation.  This is inspired by Internet
    RFC 3339 and is more consistent with numeric time zone
    abbreviations already used elsewhere.  The change affects several
    arctic and antarctic locations, e.g., America/Cambridge_Bay before
    1920 and Antarctica/Troll before 2005.

    Asia/Baku's 1992-09-27 transition from +04 (DST) to +04 (non-DST) was
    at 03:00, not 23:00 the previous day.  (Thanks to Michael Deckers.)

Bug: 29354265
Change-Id: Iad332b686410c54277fe8efc83b38a1b5e90aeb2

8 years agoUpdate timezone data to 2016d am: 2880a020e3 am: 9958dc9fe8 -s ours am: d9523aac7c
Neil Fuller [Mon, 13 Jun 2016 09:31:12 +0000 (09:31 +0000)]
Update timezone data to 2016d am: 2880a020e3 am: 9958dc9fe8  -s ours am: d9523aac7c
am: 5bdac2156c

Change-Id: I5b508e09b60d17f812f7b85569486dca0c5549ba

8 years agoUpdate timezone data to 2016d am: 2880a020e3 am: 9958dc9fe8 -s ours
Neil Fuller [Mon, 13 Jun 2016 09:27:23 +0000 (09:27 +0000)]
Update timezone data to 2016d am: 2880a020e3 am: 9958dc9fe8  -s ours
am: d9523aac7c

Change-Id: I191ed4f9c1088a44e9130683236cba8e7947e132

8 years agoUpdate timezone data to 2016d am: 2880a020e3
Neil Fuller [Mon, 13 Jun 2016 09:23:04 +0000 (09:23 +0000)]
Update timezone data to 2016d am: 2880a020e3
am: 9958dc9fe8  -s ours

Change-Id: I1cbbea60adebecefa5aa2d80e75e41d9fe4ec4dc

8 years agoUpdate timezone data to 2016d
Neil Fuller [Mon, 13 Jun 2016 09:04:01 +0000 (09:04 +0000)]
Update timezone data to 2016d
am: 2880a020e3

Change-Id: I38ef0c08d2c63a3510b9c80442f85c1f14bf06d0

8 years agoUpdate timezone data to 2016d
Neil Fuller [Fri, 10 Jun 2016 12:07:43 +0000 (13:07 +0100)]
Update timezone data to 2016d

This change is effectively a cherry-pick of aosp/master commit:
60200a74113bf2da23072523b52aa15490d0b07e

Changes affecting future time stamps

    America/Caracas switches from -0430 to -04 on 2016-05-01 at 02:30.
    (Thanks to Alexander Krivenyshev for the heads-up.)

    Asia/Magadan switches from +10 to +11 on 2016-04-24 at 02:00.
    (Thanks to Alexander Krivenyshev and Matt Johnson.)

    New zone Asia/Tomsk, split off from Asia/Novosibirsk. It covers
    Tomsk Oblast, Russia, which switches from +06 to +07 on 2016-05-29
    at 02:00.  (Thanks to Stepan Golosunov.)

  Changes affecting past time stamps

    New zone Europe/Kirov, split off from Europe/Volgograd.  It covers
    Kirov Oblast, Russia, which switched from +04/+05 to +03/+04 on
    1989-03-26 at 02:00, roughly a year after Europe/Volgograd made
    the same change.  (Thanks to Stepan Golosunov.)

    Russia and nearby locations had daylight-saving transitions on
    1992-03-29 at 02:00 and 1992-09-27 at 03:00, instead of on
    1992-03-28 at 23:00 and 1992-09-26 at 23:00.  (Thanks to Stepan
    Golosunov.)

    Many corrections to historical time in Kazakhstan from 1991
    through 2005.  (Thanks to Stepan Golosunov.)  Replace Kazakhstan's
    invented time zone abbreviations with numeric abbreviations.

Bug: 29240433
Change-Id: I1a5491f01e0aae8b571c1ed1fddc1995086b6812

8 years agoCorrectly handle the case of empty LD_PRELOAD entries
Dimitry Ivanov [Wed, 25 May 2016 06:53:23 +0000 (06:53 +0000)]
Correctly handle the case of empty LD_PRELOAD entries
am: bda20e78f0

* commit 'bda20e78f0f314dbbf0f0bbcf0740cf2d6a4b85e':
  Correctly handle the case of empty LD_PRELOAD entries

Change-Id: I8278e77864b0b85af94e527ec0d34eba052ec13a

8 years agoCorrectly handle the case of empty LD_PRELOAD entries
Dimitry Ivanov [Tue, 24 May 2016 21:29:56 +0000 (14:29 -0700)]
Correctly handle the case of empty LD_PRELOAD entries

Previous android versions ignored empty entries for LD_PRELOAD

Bug: http://b/28936779
Change-Id: I757478fe0c604ee378186511cb13b757fd9a9864
(cherry picked from commit d799b2bb7e9335786ab4596757d871e4a7722ff0)

8 years agoFix comments since we are keeping grey-list in N
Dimitry Ivanov [Tue, 24 May 2016 15:46:24 +0000 (15:46 +0000)]
Fix comments since we are keeping grey-list in N
am: f1d4a49598

* commit 'f1d4a4959880eaf0f9c789c43c1bae383a605d9f':
  Fix comments since we are keeping grey-list in N

Change-Id: If8dff6fe47514a1906720e24a82ed3ea91c25b9d

8 years agoFix comments since we are keeping grey-list in N
Dimitry Ivanov [Tue, 24 May 2016 00:33:27 +0000 (17:33 -0700)]
Fix comments since we are keeping grey-list in N

Also add warning about removing access to greylisted libs
in the future Android releases.

Bug: http://b/26427993
Change-Id: I1aaa94e3bde09ab0f6594e9170d479cdb3e77d42

8 years agoMerge "Do not resolve caller_ns when it is not needed" into nyc-dev
Dimitry Ivanov [Mon, 23 May 2016 21:09:02 +0000 (21:09 +0000)]
Merge "Do not resolve caller_ns when it is not needed" into nyc-dev
am: 5b19771009

* commit '5b19771009d4eb6dfc1e560ceff608cc06050137':
  Do not resolve caller_ns when it is not needed

Change-Id: I8a9cff79a15699a9806e26b2efbdbb390280fdf6

8 years agoMerge "Do not resolve caller_ns when it is not needed" into nyc-dev
TreeHugger Robot [Mon, 23 May 2016 21:01:17 +0000 (21:01 +0000)]
Merge "Do not resolve caller_ns when it is not needed" into nyc-dev

8 years agoDo not resolve caller_ns when it is not needed
Dimitry Ivanov [Mon, 23 May 2016 17:31:11 +0000 (10:31 -0700)]
Do not resolve caller_ns when it is not needed

create_namespace resolves caller namespace only
when caller did not explicitly specify parent namespace.

This saves about 25 microseconds for the case when
parent_namepsace is not null (for example when creating
second classloader for the app).

Bug: http://b/28801010
Change-Id: I50ded272c931db701e5a1d8c88ed5ffb13416539
(cherry picked from commit 5240863ed559cb4c2b121ddfbf6b3d78ac15e38f)

8 years agoChange use of /data to /data/local/tmp.
Christopher Ferris [Mon, 23 May 2016 19:43:28 +0000 (19:43 +0000)]
Change use of /data to /data/local/tmp.
am: 7e53843f7b

* commit '7e53843f7b4c061920d1742c8e70a50509d83a53':
  Change use of /data to /data/local/tmp.

Change-Id: I52700483c25f5386324b57cf8a094b7d565761f8

8 years agoChange use of /data to /data/local/tmp.
Christopher Ferris [Fri, 20 May 2016 22:32:47 +0000 (15:32 -0700)]
Change use of /data to /data/local/tmp.

The unistd fsync/fdatasync were changed to use /data from /.
Unfortunately, this directory is unreadable unless you are root, so
change this path to /data/local/tmp.

Bug: 28885777
Change-Id: Ia88da7a05c8f1b05fbd45ef2e8c55ba0c3368164