OSDN Git Service

android-x86/bionic.git
7 years agoMerge "Remove unnecessary memsets in linker allocators" am: 43801a50b0 am: 6731a65042
Dimitry Ivanov [Fri, 10 Feb 2017 02:42:31 +0000 (02:42 +0000)]
Merge "Remove unnecessary memsets in linker allocators" am: 43801a50b0 am: 6731a65042
am: 4ebd02f4ea

Change-Id: Iddd64ae5fb06669a6feeda3474ccad445a6c01e6

7 years agoMerge "Remove unnecessary memsets in linker allocators" am: 43801a50b0
Dimitry Ivanov [Fri, 10 Feb 2017 02:40:30 +0000 (02:40 +0000)]
Merge "Remove unnecessary memsets in linker allocators" am: 43801a50b0
am: 6731a65042

Change-Id: I6fb7a1142503c3bf6f0b36dd1a48489bc64ed0e5

7 years agoMerge "Remove unnecessary memsets in linker allocators"
Dimitry Ivanov [Fri, 10 Feb 2017 02:38:30 +0000 (02:38 +0000)]
Merge "Remove unnecessary memsets in linker allocators"
am: 43801a50b0

Change-Id: I9916105c744178672b03803234b3c22e64435f8b

7 years agoMerge "Remove unnecessary memsets in linker allocators"
Treehugger Robot [Fri, 10 Feb 2017 02:32:16 +0000 (02:32 +0000)]
Merge "Remove unnecessary memsets in linker allocators"

7 years agoMerge "libc: add clang FORTIFY support" am: 5ac650936f am: eeb4544186
George Burgess IV [Fri, 10 Feb 2017 02:16:03 +0000 (02:16 +0000)]
Merge "libc: add clang FORTIFY support" am: 5ac650936f am: eeb4544186
am: 2cae2dc5d7

Change-Id: I34fc97a1a7e9354899cdf78552388cc6ed07edea

7 years agoMerge "libc: add clang FORTIFY support" am: 5ac650936f
George Burgess IV [Fri, 10 Feb 2017 02:14:01 +0000 (02:14 +0000)]
Merge "libc: add clang FORTIFY support" am: 5ac650936f
am: eeb4544186

Change-Id: I9a658f22d45ec2b002c2086e5f381ee520461b93

7 years agoMerge "libc: add clang FORTIFY support"
George Burgess IV [Fri, 10 Feb 2017 02:11:31 +0000 (02:11 +0000)]
Merge "libc: add clang FORTIFY support"
am: 5ac650936f

Change-Id: Id9b7bc08a9c60f1ce34768063cdc8d61098ffc0e

7 years agoMerge "libc: add clang FORTIFY support"
Treehugger Robot [Fri, 10 Feb 2017 02:07:28 +0000 (02:07 +0000)]
Merge "libc: add clang FORTIFY support"

7 years agoMerge "Add test checking init/fini call order" am: 4e7ab9292d am: 915b6d8d9d
Dimitry Ivanov [Fri, 10 Feb 2017 00:33:01 +0000 (00:33 +0000)]
Merge "Add test checking init/fini call order" am: 4e7ab9292d am: 915b6d8d9d
am: c46af6b708

Change-Id: Ib6459cf3652a4d56ba631629eae8920724ff020d

7 years agoMerge "Add test checking init/fini call order" am: 4e7ab9292d
Dimitry Ivanov [Fri, 10 Feb 2017 00:31:02 +0000 (00:31 +0000)]
Merge "Add test checking init/fini call order" am: 4e7ab9292d
am: 915b6d8d9d

Change-Id: Iaabbb92f09543aaab80dbec71d1919a2d08691b6

7 years agoMerge "Add test checking init/fini call order"
Dimitry Ivanov [Fri, 10 Feb 2017 00:27:32 +0000 (00:27 +0000)]
Merge "Add test checking init/fini call order"
am: 4e7ab9292d

Change-Id: If03d6740dbd8e9202ca39a502854a98c95cb4500

7 years agoMerge "Add test checking init/fini call order"
Treehugger Robot [Fri, 10 Feb 2017 00:21:06 +0000 (00:21 +0000)]
Merge "Add test checking init/fini call order"

7 years agoRemove unnecessary memsets in linker allocators
Dimitry Ivanov [Thu, 9 Feb 2017 23:53:54 +0000 (15:53 -0800)]
Remove unnecessary memsets in linker allocators

Test: linker-unit-tests
Test: bionic-unit-tests --gtest_filter=dl*:Dl*
Change-Id: I96f983dba77c9cb5698a9eb2e51b33bc128c6dd7

7 years agolibc: add clang FORTIFY support
George Burgess IV [Thu, 9 Feb 2017 08:00:31 +0000 (00:00 -0800)]
libc: add clang FORTIFY support

This patch adds clang-style FORTIFY to Bionic. For more information on
FORTIFY, please see https://goo.gl/8HS2dW . This implementation works
for versions of clang that don't support diagnose_if, so please see the
"without diagnose_if" sections. We plan to swap to a diagnose_if-based
FORTIFY later this year (since it doesn't really add any features; it
just simplifies the implementation a lot, and it gives us much prettier
diagnostics)

Bug: 32073964
Test: Builds on angler, bullhead, marlin, sailfish. Bionic CTS tests
pass on Angler and Bullhead.

Change-Id: I607aecbeee81529709b1eee7bef5b0836151eb2b

7 years agoAdd test checking init/fini call order
Dimitry Ivanov [Thu, 9 Feb 2017 21:31:57 +0000 (13:31 -0800)]
Add test checking init/fini call order

This test is checking that loader complies with the order described in
http://www.sco.com/developers/gabi/latest/ch5.dynamic.html#init_fini

Bug: http://b/35201832
Test: bionic-unit-tests --gtest_filter=dl*:Dl*
Test: bionic-unit-tests-glibc --gtest_filter=dl*
Change-Id: I4cdf878c043112442c191e82aa9f5d5077e4d8c4

7 years agoMerge "Add "benchmark" to time atomic operations" am: 2bfb8c9180 am: 547a638056
Hans Boehm [Thu, 9 Feb 2017 02:40:39 +0000 (02:40 +0000)]
Merge "Add "benchmark" to time atomic operations" am: 2bfb8c9180 am: 547a638056
am: 07146808c8

Change-Id: I82c2662accdf5cd925865b12860aca1285124eb7

7 years agoMerge "Add "benchmark" to time atomic operations" am: 2bfb8c9180
Hans Boehm [Thu, 9 Feb 2017 02:37:09 +0000 (02:37 +0000)]
Merge "Add "benchmark" to time atomic operations" am: 2bfb8c9180
am: 547a638056

Change-Id: I20b0a6bdf45b10a9c32084354b5a87cfb4fdad85

7 years agoMerge "Add "benchmark" to time atomic operations"
Hans Boehm [Thu, 9 Feb 2017 02:35:39 +0000 (02:35 +0000)]
Merge "Add "benchmark" to time atomic operations"
am: 2bfb8c9180

Change-Id: I2111c967865e706aec9ff2ab2519e0eaee2e4f66

7 years agoMerge "Add "benchmark" to time atomic operations"
Hans Boehm [Thu, 9 Feb 2017 02:03:22 +0000 (02:03 +0000)]
Merge "Add "benchmark" to time atomic operations"

7 years agoMerge "Revert "Stop checking the global thread list in several trivial cases."" am...
Elliott Hughes [Tue, 7 Feb 2017 21:20:40 +0000 (21:20 +0000)]
Merge "Revert "Stop checking the global thread list in several trivial cases."" am: f201c704d6 am: b82f472c66
am: dcaa56e695

Change-Id: I77d870353cd9234a9a1223e2f20caefb59dbb22d

7 years agoMerge "Revert "Stop checking the global thread list in several trivial cases."" am...
Elliott Hughes [Tue, 7 Feb 2017 21:18:41 +0000 (21:18 +0000)]
Merge "Revert "Stop checking the global thread list in several trivial cases."" am: f201c704d6
am: b82f472c66

Change-Id: Ib0054aceacf20ee9b0c586bdb2c6441254f157a7

7 years agoMerge "Revert "Stop checking the global thread list in several trivial cases.""
Elliott Hughes [Tue, 7 Feb 2017 21:16:11 +0000 (21:16 +0000)]
Merge "Revert "Stop checking the global thread list in several trivial cases.""
am: f201c704d6

Change-Id: Ib18af2245909eb8b495c40deb1ca7cea04e73b8f

7 years agoMerge "Revert "Stop checking the global thread list in several trivial cases.""
Elliott Hughes [Tue, 7 Feb 2017 21:12:22 +0000 (21:12 +0000)]
Merge "Revert "Stop checking the global thread list in several trivial cases.""

7 years agoRevert "Stop checking the global thread list in several trivial cases."
Elliott Hughes [Tue, 7 Feb 2017 21:05:30 +0000 (21:05 +0000)]
Revert "Stop checking the global thread list in several trivial cases."

This reverts commit f5a4992b7186c01b98cb9400b2b5b490805a87bb.

Breaks OMX_ImgEnc in cameraserver (http://b/35088254).

Change-Id: I6dcf12706a184b0b8b72451584567a42dfa1bb4f

7 years agoMerge "Improve a comment." am: a1fa522927 am: 7272909a9e
Elliott Hughes [Tue, 7 Feb 2017 17:07:57 +0000 (17:07 +0000)]
Merge "Improve a comment." am: a1fa522927 am: 7272909a9e
am: 6244abf143

Change-Id: Ibb39396ee32a9c9517ff21d2e2381d915d3d16c2

7 years agoMerge "Improve a comment." am: a1fa522927
Elliott Hughes [Tue, 7 Feb 2017 17:05:55 +0000 (17:05 +0000)]
Merge "Improve a comment." am: a1fa522927
am: 7272909a9e

Change-Id: Ib941aa88d74a8f8bea23a149df57dd8ce981795a

7 years agoMerge "Improve a comment."
Elliott Hughes [Tue, 7 Feb 2017 17:03:56 +0000 (17:03 +0000)]
Merge "Improve a comment."
am: a1fa522927

Change-Id: Ia3c2609527c9631aa92f3a030978215f97811c9e

7 years agoMerge "Improve a comment."
Elliott Hughes [Tue, 7 Feb 2017 17:01:15 +0000 (17:01 +0000)]
Merge "Improve a comment."

7 years agoMerge "Stop checking the global thread list in several trivial cases." am: 4708f435f5...
Elliott Hughes [Tue, 7 Feb 2017 00:41:27 +0000 (00:41 +0000)]
Merge "Stop checking the global thread list in several trivial cases." am: 4708f435f5 am: 56209f0dd4
am: ffb2bddcb9

Change-Id: I4aaafd2e4a2e338d89f9efd9fb309974e97cdf20

7 years agoMerge "Stop checking the global thread list in several trivial cases." am: 4708f435f5
Elliott Hughes [Tue, 7 Feb 2017 00:38:58 +0000 (00:38 +0000)]
Merge "Stop checking the global thread list in several trivial cases." am: 4708f435f5
am: 56209f0dd4

Change-Id: If798296ea508f4f72d202948357e2816581e3977

7 years agoMerge "Stop checking the global thread list in several trivial cases."
Elliott Hughes [Tue, 7 Feb 2017 00:36:27 +0000 (00:36 +0000)]
Merge "Stop checking the global thread list in several trivial cases."
am: 4708f435f5

Change-Id: I1b3ba92036b68a94f342579ea34c385e3496a84b

7 years agoMerge "Stop checking the global thread list in several trivial cases."
Treehugger Robot [Tue, 7 Feb 2017 00:29:02 +0000 (00:29 +0000)]
Merge "Stop checking the global thread list in several trivial cases."

7 years agoStop checking the global thread list in several trivial cases.
Elliott Hughes [Mon, 6 Feb 2017 22:09:53 +0000 (14:09 -0800)]
Stop checking the global thread list in several trivial cases.

Since removing the global thread is hard, let's take the different
groups of functions individually.

The existing code was racy anyway, because the thread might still be
on the list but have exited (leaving tid == 0).

Bug: http://b/19636317
Test: ran tests
Change-Id: Icc0986ff124d5f9b8a653edf718c549d1563973b

7 years agoImprove a comment.
Elliott Hughes [Mon, 6 Feb 2017 18:26:20 +0000 (10:26 -0800)]
Improve a comment.

Bug: http://b/23675822
Test: builds
Change-Id: Ia58ffabf38012035076e4c682faa4c93f3690e24

7 years agoMerge "Create seccomp policy without TRAP for further processing" am: 4a47d2c436...
Paul Lawrence [Fri, 3 Feb 2017 20:26:23 +0000 (20:26 +0000)]
Merge "Create seccomp policy without TRAP for further processing" am: 4a47d2c436 am: b62e0a316f
am: 28d7378390

Change-Id: Id39d0b8c3f5c418262b3648cea370b44ee41a407

7 years agoMerge "Create seccomp policy without TRAP for further processing" am: 4a47d2c436
Paul Lawrence [Fri, 3 Feb 2017 20:21:50 +0000 (20:21 +0000)]
Merge "Create seccomp policy without TRAP for further processing" am: 4a47d2c436
am: b62e0a316f

Change-Id: Ibcd4a63aa3175bd94eef7d0cd5197d1fa2b9807d

7 years agoMerge "Create seccomp policy without TRAP for further processing"
Paul Lawrence [Fri, 3 Feb 2017 20:18:06 +0000 (20:18 +0000)]
Merge "Create seccomp policy without TRAP for further processing"
am: 4a47d2c436

Change-Id: Ib16e18901aac6dbe91ffb326bb8bb31b9d9116e2

7 years agoMerge "Create seccomp policy without TRAP for further processing"
Paul Lawrence [Fri, 3 Feb 2017 20:14:14 +0000 (20:14 +0000)]
Merge "Create seccomp policy without TRAP for further processing"

7 years agoCreate seccomp policy without TRAP for further processing
Paul Lawrence [Wed, 25 Jan 2017 23:20:52 +0000 (15:20 -0800)]
Create seccomp policy without TRAP for further processing

Bug: 34946764
Test: Make sure boots, seccomp still blocks, and is faster
Change-Id: Ib4abf4307ae545ee69a3fb9328f62c760a1b40f7

7 years agoMerge "Fix CFI initialization crash on x86." am: 9886ea3e2d am: ba5e2634df
Evgenii Stepanov [Fri, 3 Feb 2017 01:58:20 +0000 (01:58 +0000)]
Merge "Fix CFI initialization crash on x86." am: 9886ea3e2d am: ba5e2634df
am: 3b00fcf727

Change-Id: I4eded9a2978e04d8773cc35509584ebcd70de048

7 years agoMerge "Fix CFI initialization crash on x86." am: 9886ea3e2d
Evgenii Stepanov [Fri, 3 Feb 2017 01:55:51 +0000 (01:55 +0000)]
Merge "Fix CFI initialization crash on x86." am: 9886ea3e2d
am: ba5e2634df

Change-Id: I525f5a1eeda1739031525de7fcf39a7048c78185

7 years agoMerge "Fix CFI initialization crash on x86."
Evgenii Stepanov [Fri, 3 Feb 2017 01:53:22 +0000 (01:53 +0000)]
Merge "Fix CFI initialization crash on x86."
am: 9886ea3e2d

Change-Id: I115c36331b2e531d3e33848e5251847e47f1a8b1

7 years agoMerge "Fix CFI initialization crash on x86."
Evgenii Stepanov [Fri, 3 Feb 2017 01:47:14 +0000 (01:47 +0000)]
Merge "Fix CFI initialization crash on x86."

7 years agoMerge "isnan and isinf aren't functions." am: 33ae5a97f2 am: 9184128819
Elliott Hughes [Fri, 3 Feb 2017 00:50:36 +0000 (00:50 +0000)]
Merge "isnan and isinf aren't functions." am: 33ae5a97f2 am: 9184128819
am: a5e949b4b6

Change-Id: I6538e8a06c4388d3fe6e2274f1d6d74c47d5ed74

7 years agoMerge "isnan and isinf aren't functions." am: 33ae5a97f2
Elliott Hughes [Fri, 3 Feb 2017 00:43:06 +0000 (00:43 +0000)]
Merge "isnan and isinf aren't functions." am: 33ae5a97f2
am: 9184128819

Change-Id: I2a80969ecfcbab1c5cb8ec03ba4cd8028d9160b6

7 years agoMerge "isnan and isinf aren't functions."
Elliott Hughes [Fri, 3 Feb 2017 00:40:37 +0000 (00:40 +0000)]
Merge "isnan and isinf aren't functions."
am: 33ae5a97f2

Change-Id: Ibdfdec89d9e7bd04f0b42b74b20d3a2b7521e63c

7 years agoMerge "isnan and isinf aren't functions."
Elliott Hughes [Fri, 3 Feb 2017 00:32:00 +0000 (00:32 +0000)]
Merge "isnan and isinf aren't functions."

7 years agoFix CFI initialization crash on x86.
Evgenii Stepanov [Tue, 31 Jan 2017 21:19:30 +0000 (13:19 -0800)]
Fix CFI initialization crash on x86.

Third try.

Bug: 34752378
Test: bionic tests
Change-Id: I247c127489a8ee38404e104f28d916a704e35f36

7 years agoisnan and isinf aren't functions.
Elliott Hughes [Thu, 2 Feb 2017 22:02:49 +0000 (14:02 -0800)]
isnan and isinf aren't functions.

isnan was a function in POSIX in 1997, but changed to a macro only in 2004
to align with the C standard. isinf wasn't in POSIX until 2004, where it
appeared as a macro only (but other C libraries already had it as a
function).

Now the C++ standard has added ::isnan and ::isinf functions with different
signatures from the historical ones, so we need to move our historical cruft
out of the way.

We'll keep the implementations for backwards compatibility.

Bug: http://b/34724220
Test: ran tests
Change-Id: Id665f0344af6fe6ed245106e60231f4ef2027f41

7 years agoMerge "Revert "Remove the global thread list."" am: a187a6f12e am: 5124a0e635
David James [Thu, 2 Feb 2017 02:54:38 +0000 (02:54 +0000)]
Merge "Revert "Remove the global thread list."" am: a187a6f12e am: 5124a0e635
am: 91fbf754fc

Change-Id: I4d35f999d5cb689c4b2b426e2bf45992447e0f0a

7 years agoMerge "Revert "Remove the global thread list."" am: a187a6f12e
David James [Thu, 2 Feb 2017 02:52:38 +0000 (02:52 +0000)]
Merge "Revert "Remove the global thread list."" am: a187a6f12e
am: 5124a0e635

Change-Id: Id8be9184e92bb7e6a06d9da9fc1efcf06ed927b9

7 years agoMerge "Revert "Remove the global thread list.""
David James [Thu, 2 Feb 2017 02:50:08 +0000 (02:50 +0000)]
Merge "Revert "Remove the global thread list.""
am: a187a6f12e

Change-Id: I3df28298769f7f83aadad09a80166ce9a150e540

7 years agoMerge "Revert "Remove the global thread list.""
David James [Thu, 2 Feb 2017 02:46:40 +0000 (02:46 +0000)]
Merge "Revert "Remove the global thread list.""

7 years agoRevert "Remove the global thread list."
Elliott Hughes [Thu, 2 Feb 2017 02:41:38 +0000 (02:41 +0000)]
Revert "Remove the global thread list."

This reverts commit b0e8c565a622b5519e03d4416b0b5b1a5f20d7f5.

Breaks swiftshader (http:/b/34883464).

Change-Id: I7b21193ba8a78f07d7ac65e41d0fe8516940a83b

7 years agoMerge "Exit failure if trying to load non-PIE." am: 1fedfedda8 am: 2336959d89
Dan Albert [Wed, 1 Feb 2017 23:46:57 +0000 (23:46 +0000)]
Merge "Exit failure if trying to load non-PIE." am: 1fedfedda8 am: 2336959d89
am: bda8e82475

Change-Id: I94edb6ca60df13a0489a9d6ef1b16f31f4e25a58

7 years agoMerge "Exit failure if trying to load non-PIE." am: 1fedfedda8
Dan Albert [Wed, 1 Feb 2017 23:44:56 +0000 (23:44 +0000)]
Merge "Exit failure if trying to load non-PIE." am: 1fedfedda8
am: 2336959d89

Change-Id: I94783491c75183afb12c6761643d65d5b9c24f20

7 years agoMerge "Exit failure if trying to load non-PIE."
Dan Albert [Wed, 1 Feb 2017 23:42:28 +0000 (23:42 +0000)]
Merge "Exit failure if trying to load non-PIE."
am: 1fedfedda8

Change-Id: I55eaba81f182ff854e81d7de2b882b4dc26a7c23

7 years agoMerge "Exit failure if trying to load non-PIE."
Dan Albert [Wed, 1 Feb 2017 23:38:33 +0000 (23:38 +0000)]
Merge "Exit failure if trying to load non-PIE."

7 years agoMerge "Check overflows in c-tor instead of doing it in d-tor" am: 118b198af6 am:...
Dimitry Ivanov [Wed, 1 Feb 2017 23:09:22 +0000 (23:09 +0000)]
Merge "Check overflows in c-tor instead of doing it in d-tor" am: 118b198af6 am: 23c131b7b6
am: 3374f70213

Change-Id: Ie3984dfaf7acc7af527e13892b6c5e86b6014f5a

7 years agoMerge "Check overflows in c-tor instead of doing it in d-tor" am: 118b198af6
Dimitry Ivanov [Wed, 1 Feb 2017 23:07:23 +0000 (23:07 +0000)]
Merge "Check overflows in c-tor instead of doing it in d-tor" am: 118b198af6
am: 23c131b7b6

Change-Id: I30c12bce2d2b5fc1bf16fbde071f3f4fa96ba84d

7 years agoMerge "Check overflows in c-tor instead of doing it in d-tor"
Dimitry Ivanov [Wed, 1 Feb 2017 23:05:22 +0000 (23:05 +0000)]
Merge "Check overflows in c-tor instead of doing it in d-tor"
am: 118b198af6

Change-Id: Ia6d3e43724799103b287bab09d7e7bfd2ba7b5ab

7 years agoMerge "Check overflows in c-tor instead of doing it in d-tor"
Treehugger Robot [Wed, 1 Feb 2017 22:58:22 +0000 (22:58 +0000)]
Merge "Check overflows in c-tor instead of doing it in d-tor"

7 years agoCheck overflows in c-tor instead of doing it in d-tor
Dimitry Ivanov [Wed, 1 Feb 2017 20:55:11 +0000 (12:55 -0800)]
Check overflows in c-tor instead of doing it in d-tor

Test: bionic-unit-tests --gtest_filter=dl*:Dl*
Change-Id: Id3b17a79732155b4e469c43c764afef1dfc59057

7 years agoMerge "Do not load second copy of a library into same namespace" am: 3c838bbb4a am...
Dimitry Ivanov [Wed, 1 Feb 2017 19:32:51 +0000 (19:32 +0000)]
Merge "Do not load second copy of a library into same namespace" am: 3c838bbb4a am: 1713736c8a
am: 222393c7df

Change-Id: Ic57e67c427a8c54011a9340afa8d2347e050481d

7 years agoDo not load second copy of a library into same namespace am: 3bd906146b am: dac77f6315
Dimitry Ivanov [Wed, 1 Feb 2017 19:32:38 +0000 (19:32 +0000)]
Do not load second copy of a library into same namespace am: 3bd906146b am: dac77f6315
am: a090a9609c

Change-Id: Ic514b57df1731a3642748f740e646981df4a8e28

7 years agoMerge "Do not load second copy of a library into same namespace" am: 3c838bbb4a
Dimitry Ivanov [Wed, 1 Feb 2017 19:30:52 +0000 (19:30 +0000)]
Merge "Do not load second copy of a library into same namespace" am: 3c838bbb4a
am: 1713736c8a

Change-Id: I98df7a11332e836210de5a3c9217c8563574777f

7 years agoDo not load second copy of a library into same namespace am: 3bd906146b
Dimitry Ivanov [Wed, 1 Feb 2017 19:30:39 +0000 (19:30 +0000)]
Do not load second copy of a library into same namespace am: 3bd906146b
am: dac77f6315

Change-Id: I57655867ee2f48c854ebd69492c4202b3c482e31

7 years agoMerge "Do not load second copy of a library into same namespace"
Dimitry Ivanov [Wed, 1 Feb 2017 19:28:09 +0000 (19:28 +0000)]
Merge "Do not load second copy of a library into same namespace"
am: 3c838bbb4a

Change-Id: If1effbf7f7591bc0759b55d8dc0fcaafbf651e17

7 years agoDo not load second copy of a library into same namespace
Dimitry Ivanov [Wed, 1 Feb 2017 19:28:08 +0000 (19:28 +0000)]
Do not load second copy of a library into same namespace
am: 3bd906146b

Change-Id: I11498855ff95af2af4b0edcc3a5712d957470b55

7 years agoMerge "Do not load second copy of a library into same namespace"
Treehugger Robot [Wed, 1 Feb 2017 19:23:55 +0000 (19:23 +0000)]
Merge "Do not load second copy of a library into same namespace"

7 years agoDo not load second copy of a library into same namespace
Dimitry Ivanov [Wed, 1 Feb 2017 16:54:43 +0000 (08:54 -0800)]
Do not load second copy of a library into same namespace

This workaround was introduced in M in order to make sure
that linker loads libraries provided in apk in case a library
with the same name was loaded by the system.

This is no longer a problem starting with Android N because
app is using different namespace and therefore does not see
libraries loaded by the system.

Test: bionic-unit-tests --gtest_filter=dl*:Dl*
Change-Id: I9995258c0f361e8df35420682b84e85a0cb924b4

7 years agoMerge "Remove the global thread list." am: 9b9d4ebc8b am: 959ef64b41
Elliott Hughes [Wed, 1 Feb 2017 16:23:59 +0000 (16:23 +0000)]
Merge "Remove the global thread list." am: 9b9d4ebc8b am: 959ef64b41
am: 7922c13fb6

Change-Id: Ia4e2e26e203dae0fb27c5f1e9a09894a667c8b99

7 years agoMerge "Remove the global thread list." am: 9b9d4ebc8b
Elliott Hughes [Wed, 1 Feb 2017 16:21:58 +0000 (16:21 +0000)]
Merge "Remove the global thread list." am: 9b9d4ebc8b
am: 959ef64b41

Change-Id: I84d9a72adaac8baee9e241062c2c974d7dacc61b

7 years agoMerge "Remove the global thread list."
Elliott Hughes [Wed, 1 Feb 2017 16:19:27 +0000 (16:19 +0000)]
Merge "Remove the global thread list."
am: 9b9d4ebc8b

Change-Id: I590ffebd5bfa287fdc4c7018e487c7c086f8ae7e

7 years agoMerge "Remove the global thread list."
Elliott Hughes [Wed, 1 Feb 2017 16:16:41 +0000 (16:16 +0000)]
Merge "Remove the global thread list."

7 years agoMerge "bionic: move ADF uapi header out of bionic" am: b88112dcfc am: 04951b227c
Greg Hackmann [Wed, 1 Feb 2017 04:47:53 +0000 (04:47 +0000)]
Merge "bionic: move ADF uapi header out of bionic" am: b88112dcfc am: 04951b227c
am: 7a9c8515d7

Change-Id: Ic9b371d82d516435f4e367fc10d125d8ba7af40d

7 years agoMerge "bionic: move ADF uapi header out of bionic" am: b88112dcfc
Greg Hackmann [Wed, 1 Feb 2017 04:45:27 +0000 (04:45 +0000)]
Merge "bionic: move ADF uapi header out of bionic" am: b88112dcfc
am: 04951b227c

Change-Id: Idd9987f6cf8c1454064d021d3699eaea73170038

7 years agoMerge "bionic: move ADF uapi header out of bionic"
Greg Hackmann [Wed, 1 Feb 2017 04:42:54 +0000 (04:42 +0000)]
Merge "bionic: move ADF uapi header out of bionic"
am: b88112dcfc

Change-Id: I9e8d80152b5b43fbf6a0544de5f4d957785be891

7 years agoMerge "bionic: move ADF uapi header out of bionic"
Treehugger Robot [Wed, 1 Feb 2017 04:38:12 +0000 (04:38 +0000)]
Merge "bionic: move ADF uapi header out of bionic"

7 years agoMerge "Revert "Fix CFI initialization crash on x86."" am: 9586fe2744 am: 567965435f
Evgenii Stepanov [Wed, 1 Feb 2017 01:24:06 +0000 (01:24 +0000)]
Merge "Revert "Fix CFI initialization crash on x86."" am: 9586fe2744 am: 567965435f
am: f1507405ef

Change-Id: I0113d0c06622a3be669dcf458f24711d5a25802b

7 years agoMerge "Revert "Fix CFI initialization crash on x86."" am: 9586fe2744
Evgenii Stepanov [Wed, 1 Feb 2017 01:21:36 +0000 (01:21 +0000)]
Merge "Revert "Fix CFI initialization crash on x86."" am: 9586fe2744
am: 567965435f

Change-Id: I6db0e14856137f28c9234b2ce8203b3432ad146b

7 years agoMerge "Revert "Fix CFI initialization crash on x86.""
Evgenii Stepanov [Wed, 1 Feb 2017 01:19:36 +0000 (01:19 +0000)]
Merge "Revert "Fix CFI initialization crash on x86.""
am: 9586fe2744

Change-Id: Iae5548dea289cd77b406d37ecb13e9123d9f490f

7 years agoMerge "Revert "Fix CFI initialization crash on x86.""
Evgenii Stepanov [Wed, 1 Feb 2017 01:14:48 +0000 (01:14 +0000)]
Merge "Revert "Fix CFI initialization crash on x86.""

7 years agoRevert "Fix CFI initialization crash on x86."
Evgenii Stepanov [Wed, 1 Feb 2017 01:10:03 +0000 (17:10 -0800)]
Revert "Fix CFI initialization crash on x86."

Breaks aosp-master/sdk.

This reverts commit 4ccd4317f9301ec9b32aa0d3317a0439b994d7bf.

7 years agoMerge "Fix CFI initialization crash on x86." am: dd76f744e7 am: 291d11c8c8
Evgenii Stepanov [Wed, 1 Feb 2017 00:39:05 +0000 (00:39 +0000)]
Merge "Fix CFI initialization crash on x86." am: dd76f744e7 am: 291d11c8c8
am: 8d37634f76

Change-Id: I37a31852eb38503f5e36492a95d76538cb573055

7 years agoMerge "Fix CFI initialization crash on x86." am: dd76f744e7
Evgenii Stepanov [Wed, 1 Feb 2017 00:36:33 +0000 (00:36 +0000)]
Merge "Fix CFI initialization crash on x86." am: dd76f744e7
am: 291d11c8c8

Change-Id: I3b0b306caac31d16e9d5e2e4cfe8c94750ede95c

7 years agoMerge "Fix CFI initialization crash on x86."
Evgenii Stepanov [Wed, 1 Feb 2017 00:34:04 +0000 (00:34 +0000)]
Merge "Fix CFI initialization crash on x86."
am: dd76f744e7

Change-Id: I66175dd9bc705a64a5ad59edf26d471b4f304ea3

7 years agoMerge "Fix CFI initialization crash on x86."
Evgenii Stepanov [Wed, 1 Feb 2017 00:29:57 +0000 (00:29 +0000)]
Merge "Fix CFI initialization crash on x86."

7 years agoExit failure if trying to load non-PIE.
Dan Albert [Wed, 1 Feb 2017 00:02:43 +0000 (16:02 -0800)]
Exit failure if trying to load non-PIE.

Amazingly this was actually breaking the NDK's ability to build
libstdc++ for x86.

Test: mma
Bug: None
Change-Id: Iafa55c31fdeb35caca7d7d7a39a3e7afa0713557

7 years agoFix CFI initialization crash on x86.
Evgenii Stepanov [Tue, 31 Jan 2017 21:19:30 +0000 (13:19 -0800)]
Fix CFI initialization crash on x86.

Second try.

Bug: 34752378
Test: bionic tests
Change-Id: I0a7453154671918b2e6e72f0bb9074c29ceb0f34

7 years agoMerge "s/NULL/nullptr/ in system properties code." am: eb35144e58 am: 5f7024d846
Elliott Hughes [Tue, 31 Jan 2017 18:33:29 +0000 (18:33 +0000)]
Merge "s/NULL/nullptr/ in system properties code." am: eb35144e58 am: 5f7024d846
am: f25a113f53

Change-Id: Ibbf50ccf5c052ab44e1d4c3cf8e9165e1b1976f2

7 years agoMerge "s/NULL/nullptr/ in system properties code." am: eb35144e58
Elliott Hughes [Tue, 31 Jan 2017 18:29:28 +0000 (18:29 +0000)]
Merge "s/NULL/nullptr/ in system properties code." am: eb35144e58
am: 5f7024d846

Change-Id: I78324168525b0bd4fb676fa794139abc4806624d

7 years agoMerge "s/NULL/nullptr/ in system properties code."
Elliott Hughes [Tue, 31 Jan 2017 18:25:30 +0000 (18:25 +0000)]
Merge "s/NULL/nullptr/ in system properties code."
am: eb35144e58

Change-Id: Ibfa128262eacf89b20f58c6de88b744978e6087d

7 years agoAdd "benchmark" to time atomic operations
Hans Boehm [Tue, 24 Jan 2017 01:30:44 +0000 (17:30 -0800)]
Add "benchmark" to time atomic operations

The intent here is to confirm that the compiler behaves as expected,
and to guide optimization efforts, particularly where there is a
choice between primitives.

Test: Built and ran benchmark on Angler repeatedly. Manually confirmed
that the compiler behaves roughly as expected.

Change-Id: I059b245d1ba8296e9b28602559b53eafafe0a30f

7 years agoMerge "s/NULL/nullptr/ in system properties code."
Treehugger Robot [Tue, 31 Jan 2017 18:19:46 +0000 (18:19 +0000)]
Merge "s/NULL/nullptr/ in system properties code."

7 years agos/NULL/nullptr/ in system properties code.
Elliott Hughes [Tue, 31 Jan 2017 16:24:43 +0000 (08:24 -0800)]
s/NULL/nullptr/ in system properties code.

gerrit still hasn't sent out the mail asking for this in an earlier code
review...

Bug: http://b/33926793
Test: builds and boots.
Change-Id: I080de633e50e47f9a052211d47da96b971b16424

7 years agoMerge "clang-format system_properties.cpp." am: 44bea80d31 am: 7048f79b2a
Elliott Hughes [Tue, 31 Jan 2017 15:26:53 +0000 (15:26 +0000)]
Merge "clang-format system_properties.cpp." am: 44bea80d31 am: 7048f79b2a
am: fcd192e64f

Change-Id: Icb44eb07bb19371a39a5c00b1ca2db9028628332

7 years agoMerge "clang-format system_properties.cpp." am: 44bea80d31
Elliott Hughes [Tue, 31 Jan 2017 15:24:54 +0000 (15:24 +0000)]
Merge "clang-format system_properties.cpp." am: 44bea80d31
am: 7048f79b2a

Change-Id: Ic7955005e1b60440338d24eef23f197fb4e19f01

7 years agoMerge "clang-format system_properties.cpp."
Elliott Hughes [Tue, 31 Jan 2017 15:22:23 +0000 (15:22 +0000)]
Merge "clang-format system_properties.cpp."
am: 44bea80d31

Change-Id: Ib3365fbb65588d6e7f65212a9e764714cc64616b

7 years agoMerge "clang-format system_properties.cpp."
Treehugger Robot [Tue, 31 Jan 2017 15:20:19 +0000 (15:20 +0000)]
Merge "clang-format system_properties.cpp."