OSDN Git Service

android-x86/bionic.git
7 years agoFix uninitialized variable usage. am: c0f1f552f9
Christopher Ferris [Thu, 17 Nov 2016 00:22:13 +0000 (00:22 +0000)]
Fix uninitialized variable usage. am: c0f1f552f9
am: 4cf7dfd1a4

Change-Id: I592e943272ca48e5544513f25d911586548bd933

7 years agoFix error case to print newlines properly. am: 1dc3ae163e
Christopher Ferris [Thu, 17 Nov 2016 00:22:10 +0000 (00:22 +0000)]
Fix error case to print newlines properly. am: 1dc3ae163e
am: 9012573a23

Change-Id: Id534decf695ffed021bf7603554eac73e2b5ed50

7 years agoMake prctl test check maps. am: f1e44785e5
Christopher Ferris [Thu, 17 Nov 2016 00:22:07 +0000 (00:22 +0000)]
Make prctl test check maps. am: f1e44785e5
am: c7ca9bd6c4  -s ours

Change-Id: I63b1a542ba0c7c92ff973a078dbfb2dfe5cb8e6b

7 years agoFix uninitialized variable usage.
Christopher Ferris [Thu, 17 Nov 2016 00:00:41 +0000 (00:00 +0000)]
Fix uninitialized variable usage.
am: c0f1f552f9

Change-Id: I0c61977adde9af8f3b98505770f19d5f2cb7fb0f

7 years agoFix error case to print newlines properly.
Christopher Ferris [Thu, 17 Nov 2016 00:00:38 +0000 (00:00 +0000)]
Fix error case to print newlines properly.
am: 1dc3ae163e

Change-Id: If9a1f4c601445eb2bbb3cf6264f6ae162090c0ae

7 years agoMake prctl test check maps.
Christopher Ferris [Thu, 17 Nov 2016 00:00:35 +0000 (00:00 +0000)]
Make prctl test check maps.
am: f1e44785e5

Change-Id: I477f9022ee761632e8575454af184a1dcd7b6cd9

7 years agoFix uninitialized variable usage.
Christopher Ferris [Tue, 15 Nov 2016 22:04:16 +0000 (14:04 -0800)]
Fix uninitialized variable usage.

If the dladdr call fails, then info.dli_fname will be unitialized.
Make sure that this can't happen.

Bug: 32907235

Test: Enabled malloc debug on an angler and verified that function names
Test: still work.
Change-Id: I738e66d9f37bce07bc4c10f1f9bac11fbfdae2c7
(cherry picked from commit a19bc2d4edfc261bdccfc5f855c50e83477b3757)
(cherry picked from commit b7f0267f0ddfa2d2ffb71a7980e80b05961401d0)

7 years agoFix error case to print newlines properly.
Christopher Ferris [Tue, 8 Nov 2016 22:05:18 +0000 (14:05 -0800)]
Fix error case to print newlines properly.

Bug: 32640542

Test: Built and ran on a failing device.

(cherry picked from commit 4dd2785f056f885e6dc9a022b867f511c2e83c3c)

Change-Id: I81a578af7608c741819062bd54aa8e348a621b83

7 years agoMake prctl test check maps.
Christopher Ferris [Thu, 3 Nov 2016 23:06:40 +0000 (16:06 -0700)]
Make prctl test check maps.

It turns out that sometimes this kernel bug can be present but not
trigger a crash. Modify the test to check for overlapping maps instead.

Bug: 32640542

Test: Verified that this fails on a device without the kernel patch
Test: (both bionic-unit-tests32 and CtsBionicTestCases32). Verified
Test: this passes on an angler.

(cherry picked from commit f1649d92f7869331ea1c4db7f2bb189489af03e6)

Change-Id: Ia3fae3ee3d01f33d8414c1796fc3e942d5b56ec8

7 years agoFix uninitialized variable usage.
Christopher Ferris [Wed, 16 Nov 2016 21:22:54 +0000 (21:22 +0000)]
Fix uninitialized variable usage.
am: b7f0267f0d

Change-Id: I3b15bccbd4f653feeb6642e5a394a56ed5e3e27c

7 years agoFix uninitialized variable usage.
Christopher Ferris [Tue, 15 Nov 2016 22:04:16 +0000 (14:04 -0800)]
Fix uninitialized variable usage.

If the dladdr call fails, then info.dli_fname will be unitialized.
Make sure that this can't happen.

Bug: 32907235

Test: Enabled malloc debug on an angler and verified that function names
Test: still work.
Change-Id: I738e66d9f37bce07bc4c10f1f9bac11fbfdae2c7
(cherry picked from commit a19bc2d4edfc261bdccfc5f855c50e83477b3757)

7 years agoMerge "Downgrade W+E load segments to a warning unless targeting O." am: 8945d5e43a...
Elliott Hughes [Wed, 16 Nov 2016 19:23:00 +0000 (19:23 +0000)]
Merge "Downgrade W+E load segments to a warning unless targeting O." am: 8945d5e43a am: c1673b087b
am: 2f5552766a

Change-Id: I15e7068cf3b6405fe194125636814c67c43d129b

7 years agoMerge "Fix uninitialized variable usage." am: bd15515cfc am: 304e321e19
Christopher Ferris [Wed, 16 Nov 2016 19:22:47 +0000 (19:22 +0000)]
Merge "Fix uninitialized variable usage." am: bd15515cfc am: 304e321e19
am: 5ed1cdf668

Change-Id: I8462c4c5f91dde850ff9ee777ed048486dfdb589

7 years agoMerge "Downgrade W+E load segments to a warning unless targeting O." am: 8945d5e43a
Elliott Hughes [Wed, 16 Nov 2016 19:15:36 +0000 (19:15 +0000)]
Merge "Downgrade W+E load segments to a warning unless targeting O." am: 8945d5e43a
am: c1673b087b

Change-Id: Ib4349cf479484fbe63f88ec593b12050f29c0d7b

7 years agoMerge "Fix uninitialized variable usage." am: bd15515cfc
Christopher Ferris [Wed, 16 Nov 2016 19:15:20 +0000 (19:15 +0000)]
Merge "Fix uninitialized variable usage." am: bd15515cfc
am: 304e321e19

Change-Id: I952355b8fd26c30e8bcb8f83d2eb6243af322690

7 years agoMerge "Downgrade W+E load segments to a warning unless targeting O."
Elliott Hughes [Wed, 16 Nov 2016 19:08:28 +0000 (19:08 +0000)]
Merge "Downgrade W+E load segments to a warning unless targeting O."
am: 8945d5e43a

Change-Id: I9e3c5b16ed24ec263519435c43e18b9e700238b7

7 years agoMerge "Fix uninitialized variable usage."
Christopher Ferris [Wed, 16 Nov 2016 19:08:15 +0000 (19:08 +0000)]
Merge "Fix uninitialized variable usage."
am: bd15515cfc

Change-Id: I8822c72b24572a07ef4c813df8b750cf8428e4b8

7 years agoMerge "Downgrade W+E load segments to a warning unless targeting O."
Elliott Hughes [Wed, 16 Nov 2016 19:04:17 +0000 (19:04 +0000)]
Merge "Downgrade W+E load segments to a warning unless targeting O."

7 years agoMerge "Fix uninitialized variable usage."
Christopher Ferris [Wed, 16 Nov 2016 18:59:02 +0000 (18:59 +0000)]
Merge "Fix uninitialized variable usage."

7 years agoFix uninitialized variable usage.
Christopher Ferris [Tue, 15 Nov 2016 22:04:16 +0000 (14:04 -0800)]
Fix uninitialized variable usage.

If the dladdr call fails, then info.dli_fname will be unitialized.
Make sure that this can't happen.

Bug: 32907235

Test: Enabled malloc debug on an angler and verified that function names
Test: still work.
Change-Id: I738e66d9f37bce07bc4c10f1f9bac11fbfdae2c7

7 years agoMerge "Fix deprecated range_x() calls." am: 7afafce831 am: 56ff0cbe00
Martijn Coenen [Wed, 16 Nov 2016 10:17:45 +0000 (10:17 +0000)]
Merge "Fix deprecated range_x() calls." am: 7afafce831 am: 56ff0cbe00
am: 021837df02

Change-Id: I3e9bcfdaab36b7557d7a039ed38c877096479af7

7 years agoMerge "Fix deprecated range_x() calls." am: 7afafce831
Martijn Coenen [Wed, 16 Nov 2016 10:06:57 +0000 (10:06 +0000)]
Merge "Fix deprecated range_x() calls." am: 7afafce831
am: 56ff0cbe00

Change-Id: I391b9a690e691b9c4d7be1712565f5e94303795b

7 years agoMerge "Fix deprecated range_x() calls."
Martijn Coenen [Wed, 16 Nov 2016 09:59:31 +0000 (09:59 +0000)]
Merge "Fix deprecated range_x() calls."
am: 7afafce831

Change-Id: Ie930f4ebc7167b755bdea3cd6c9535f90ebcfa08

7 years agoMerge "Fix deprecated range_x() calls."
Martijn Coenen [Wed, 16 Nov 2016 09:48:30 +0000 (09:48 +0000)]
Merge "Fix deprecated range_x() calls."

7 years agoMerge "Fix getrandom syscall checking" am: 5a073a18f3 am: 68f3c3e31a
Wei Wang [Wed, 16 Nov 2016 03:46:52 +0000 (03:46 +0000)]
Merge "Fix getrandom syscall checking" am: 5a073a18f3 am: 68f3c3e31a
am: 729aa32615

Change-Id: If881c7ed224d1f1a3c1a19952b5d4b1f79d35b34

7 years agoMerge "Fix getrandom syscall checking" am: 5a073a18f3
Wei Wang [Wed, 16 Nov 2016 03:39:20 +0000 (03:39 +0000)]
Merge "Fix getrandom syscall checking" am: 5a073a18f3
am: 68f3c3e31a

Change-Id: Ic8859d86f8d8ff14b11aab66846b403b2d612280

7 years agoMerge "Fix getrandom syscall checking"
Wei Wang [Wed, 16 Nov 2016 03:32:20 +0000 (03:32 +0000)]
Merge "Fix getrandom syscall checking"
am: 5a073a18f3

Change-Id: I0300bdb1257c77c8c5820f9bef19932d99fe5632

7 years agoMerge "Fix getrandom syscall checking"
Treehugger Robot [Wed, 16 Nov 2016 03:23:43 +0000 (03:23 +0000)]
Merge "Fix getrandom syscall checking"

7 years agoDowngrade W+E load segments to a warning unless targeting O.
Elliott Hughes [Wed, 16 Nov 2016 00:54:16 +0000 (16:54 -0800)]
Downgrade W+E load segments to a warning unless targeting O.

I don't think we're getting any value from more dupes of the same dodgy
middleware, and I worry that we're hiding other, more subtle, compatibility
issues behind this one.

Test: bionic tests
Change-Id: I556cf36eac96c90976bae32621d1c133bbb8fcc7

7 years agoFix getrandom syscall checking
Wei Wang [Wed, 16 Nov 2016 00:42:53 +0000 (16:42 -0800)]
Fix getrandom syscall checking

Test: angler
Bug: 32838381
(cherry-picked from commit 46289b4c0211fc48d8719b385a7e56d765510ebd)

Change-Id: I102ffa26d7f39a8d3572b31f04b66ae31a9e752c

7 years agoMerge "Don't pack relocations in libc.so" am: d5aa03600e am: 26b9dfe9d4
Colin Cross [Wed, 16 Nov 2016 00:03:38 +0000 (00:03 +0000)]
Merge "Don't pack relocations in libc.so" am: d5aa03600e am: 26b9dfe9d4
am: 27f172458a

Change-Id: I3d5fe748087091762947e3d525041982b14f535a

7 years agoMerge "Don't pack relocations in libc.so" am: d5aa03600e
Colin Cross [Tue, 15 Nov 2016 23:57:08 +0000 (23:57 +0000)]
Merge "Don't pack relocations in libc.so" am: d5aa03600e
am: 26b9dfe9d4

Change-Id: I0a97859a7a272c73c586e1d0dccb0f1202388b86

7 years agoMerge "Don't pack relocations in libc.so"
Colin Cross [Tue, 15 Nov 2016 23:49:37 +0000 (23:49 +0000)]
Merge "Don't pack relocations in libc.so"
am: d5aa03600e

Change-Id: I384080d14ca3415a4cf604d836161efaf58c9137

7 years agoMerge "Don't pack relocations in libc.so"
Colin Cross [Tue, 15 Nov 2016 23:38:01 +0000 (23:38 +0000)]
Merge "Don't pack relocations in libc.so"

7 years agoDon't pack relocations in libc.so
Colin Cross [Tue, 15 Nov 2016 21:15:43 +0000 (13:15 -0800)]
Don't pack relocations in libc.so

Ic9125cc1bc4c9ba9eb20d030de72e3ce1fb86fa6 disabled relocation packing
in libc.so, but the flag was dropped when we switched to Android.bp
in Ib0ba2d28bff88483b505426ba61606da314e03ab.

Bug: 20645321
Bug: 20655855
Bug: 32750616
Test: builds
Test: inspect out/build-aosp_angler.ninja
Test: run app that crashes with packed libc.so
Change-Id: Ib0630f2e342afa543bb88303fec8f9695ac583e9

7 years agoMerge "Differentiate the wctype functions we need to improve." am: f97b27a9c0 am...
Elliott Hughes [Tue, 15 Nov 2016 19:38:22 +0000 (19:38 +0000)]
Merge "Differentiate the wctype functions we need to improve." am: f97b27a9c0 am: bf2556dc72
am: 9428d23e19

Change-Id: I5bbe5552edd75fb7819078a8e89e03bff9690e3a

7 years agoMerge "Differentiate the wctype functions we need to improve." am: f97b27a9c0
Elliott Hughes [Tue, 15 Nov 2016 19:31:20 +0000 (19:31 +0000)]
Merge "Differentiate the wctype functions we need to improve." am: f97b27a9c0
am: bf2556dc72

Change-Id: If661da3b7d84f80e2b0d923e666074dfced55cb1

7 years agoMerge "Differentiate the wctype functions we need to improve."
Elliott Hughes [Tue, 15 Nov 2016 19:23:51 +0000 (19:23 +0000)]
Merge "Differentiate the wctype functions we need to improve."
am: f97b27a9c0

Change-Id: I078de2d9b7c8e58640c9d2847a88dbea970c893d

7 years agoMerge "Differentiate the wctype functions we need to improve."
Elliott Hughes [Tue, 15 Nov 2016 19:04:25 +0000 (19:04 +0000)]
Merge "Differentiate the wctype functions we need to improve."

7 years agoFix deprecated range_x() calls.
Martijn Coenen [Mon, 14 Nov 2016 13:16:08 +0000 (14:16 +0100)]
Fix deprecated range_x() calls.

Test: builds with new libbenchmark.
Change-Id: I91c0e5c1b5cf75b8e551f3c59d83ac9352817c4a

7 years agoMerge changes I72d37b7c,I7d254a10,I2e967acf am: b3321c9614 am: f4a13b1feb
Josh Gao [Tue, 15 Nov 2016 01:18:03 +0000 (01:18 +0000)]
Merge changes I72d37b7c,I7d254a10,I2e967acf am: b3321c9614 am: f4a13b1feb
am: cf2d23fb0c

Change-Id: I5f7e0ed06bed3cc0363e165919bd929751f92a2c

7 years agoversioner: use a virtual filesystem for input files. am: 78b8a1430d am: 64541e2cc3
Josh Gao [Tue, 15 Nov 2016 01:18:00 +0000 (01:18 +0000)]
versioner: use a virtual filesystem for input files. am: 78b8a1430d am: 64541e2cc3
am: 2a9e5bfcea

Change-Id: I52d6a3031d6c68db874b8d6eafb4957261b9d4c4

7 years agoversioner: cache -cc1 flags generated by the clang Driver. am: b5c496346f am: 0aa3ed5170
Josh Gao [Tue, 15 Nov 2016 01:17:56 +0000 (01:17 +0000)]
versioner: cache -cc1 flags generated by the clang Driver. am: b5c496346f am: 0aa3ed5170
am: d01e518f7e

Change-Id: I8ee76a8d4220d8e98cd7398f00c4795de1f4863d

7 years agoversioner: refactor to use CompilerInstance directly. am: 16016df79f am: cdfd128911
Josh Gao [Tue, 15 Nov 2016 01:17:51 +0000 (01:17 +0000)]
versioner: refactor to use CompilerInstance directly. am: 16016df79f am: cdfd128911
am: 2d09cfcbea

Change-Id: Ib88008e1a63045d414678776de7a0116fbcf4948

7 years agoMerge changes I72d37b7c,I7d254a10,I2e967acf am: b3321c9614
Josh Gao [Tue, 15 Nov 2016 01:10:34 +0000 (01:10 +0000)]
Merge changes I72d37b7c,I7d254a10,I2e967acf am: b3321c9614
am: f4a13b1feb

Change-Id: I04a9dafaaa9f61e5b8aaa43110170a6eb8d7de1f

7 years agoversioner: use a virtual filesystem for input files. am: 78b8a1430d
Josh Gao [Tue, 15 Nov 2016 01:10:30 +0000 (01:10 +0000)]
versioner: use a virtual filesystem for input files. am: 78b8a1430d
am: 64541e2cc3

Change-Id: Icdf75426a9e4139973200bffabcb86a38c428740

7 years agoversioner: cache -cc1 flags generated by the clang Driver. am: b5c496346f
Josh Gao [Tue, 15 Nov 2016 01:10:25 +0000 (01:10 +0000)]
versioner: cache -cc1 flags generated by the clang Driver. am: b5c496346f
am: 0aa3ed5170

Change-Id: Iea9fd7d67537ec29a3d4b0c063ca6cf1cc4a4653

7 years agoversioner: refactor to use CompilerInstance directly. am: 16016df79f
Josh Gao [Tue, 15 Nov 2016 01:10:21 +0000 (01:10 +0000)]
versioner: refactor to use CompilerInstance directly. am: 16016df79f
am: cdfd128911

Change-Id: I79c4805fb3651c9eaabd2e3379c223f3df9c71fc

7 years agoMerge changes I72d37b7c,I7d254a10,I2e967acf
Josh Gao [Tue, 15 Nov 2016 01:03:00 +0000 (01:03 +0000)]
Merge changes I72d37b7c,I7d254a10,I2e967acf
am: b3321c9614

Change-Id: Ibb764c5a1b0481b2402a0f584e5c6334378cf350

7 years agoversioner: use a virtual filesystem for input files.
Josh Gao [Tue, 15 Nov 2016 01:02:59 +0000 (01:02 +0000)]
versioner: use a virtual filesystem for input files.
am: 78b8a1430d

Change-Id: I457fcb0d2a8bc421b776ab8f2d385844ccfa5218

7 years agoversioner: cache -cc1 flags generated by the clang Driver.
Josh Gao [Tue, 15 Nov 2016 01:02:54 +0000 (01:02 +0000)]
versioner: cache -cc1 flags generated by the clang Driver.
am: b5c496346f

Change-Id: Ied6670cbee3bbcf91c13f39be2e0eae68a692aee

7 years agoversioner: refactor to use CompilerInstance directly.
Josh Gao [Tue, 15 Nov 2016 01:02:51 +0000 (01:02 +0000)]
versioner: refactor to use CompilerInstance directly.
am: 16016df79f

Change-Id: I142f75a381307b71c0893b04e943d65e0dbea844

7 years agoMerge changes I72d37b7c,I7d254a10,I2e967acf
Treehugger Robot [Tue, 15 Nov 2016 00:54:08 +0000 (00:54 +0000)]
Merge changes I72d37b7c,I7d254a10,I2e967acf

* changes:
  versioner: use a virtual filesystem for input files.
  versioner: cache -cc1 flags generated by the clang Driver.
  versioner: refactor to use CompilerInstance directly.

7 years agoDifferentiate the wctype functions we need to improve.
Elliott Hughes [Mon, 14 Nov 2016 20:55:59 +0000 (12:55 -0800)]
Differentiate the wctype functions we need to improve.

Some of these are genuinely fine as-is.

Test: bionic tests still pass
Change-Id: Iab6d86d818dcc5857e7932a9effa04001195386f

7 years agoMerge changes I7f32dc9f,I9d88ddb1 am: cd9ce19e9c am: e250aff83f
Josh Gao [Fri, 11 Nov 2016 22:43:33 +0000 (22:43 +0000)]
Merge changes I7f32dc9f,I9d88ddb1 am: cd9ce19e9c am: e250aff83f
am: 0fdf46eeae

Change-Id: I1a45683e67da52881a0e050c6957b4402aa47013

7 years agoRevert "Revert "Attempt to use arc4random where getauxval(AT_RANDOM) is used."" am...
Josh Gao [Fri, 11 Nov 2016 22:43:28 +0000 (22:43 +0000)]
Revert "Revert "Attempt to use arc4random where getauxval(AT_RANDOM) is used."" am: a170d9bfc5 am: 98edd972d0
am: 78d78d95ec

Change-Id: Ia0dbcc1ff5190f46e9073098be960f904b63f923

7 years agoRevert "Revert "Update getentropy_linux.c from upstream."" am: 98d655ce96 am: 61f15f07c0
Josh Gao [Fri, 11 Nov 2016 22:43:24 +0000 (22:43 +0000)]
Revert "Revert "Update getentropy_linux.c from upstream."" am: 98d655ce96 am: 61f15f07c0
am: 969523c439

Change-Id: I9ceeaa4af38a19d7aa718b874e993660c80329a2

7 years agoMerge changes I7f32dc9f,I9d88ddb1 am: cd9ce19e9c
Josh Gao [Fri, 11 Nov 2016 22:37:33 +0000 (22:37 +0000)]
Merge changes I7f32dc9f,I9d88ddb1 am: cd9ce19e9c
am: e250aff83f

Change-Id: I791318d45b8bf1885209fdff5ff9df6a7bc4b214

7 years agoRevert "Revert "Attempt to use arc4random where getauxval(AT_RANDOM) is used."" am...
Josh Gao [Fri, 11 Nov 2016 22:37:29 +0000 (22:37 +0000)]
Revert "Revert "Attempt to use arc4random where getauxval(AT_RANDOM) is used."" am: a170d9bfc5
am: 98edd972d0

Change-Id: I60089293a7eed18002db84931024374bff53719c

7 years agoRevert "Revert "Update getentropy_linux.c from upstream."" am: 98d655ce96
Josh Gao [Fri, 11 Nov 2016 22:37:25 +0000 (22:37 +0000)]
Revert "Revert "Update getentropy_linux.c from upstream."" am: 98d655ce96
am: 61f15f07c0

Change-Id: I3648f9e32a1caefd762d8ae8a8948c548e2577a1

7 years agoMerge changes I7f32dc9f,I9d88ddb1
Josh Gao [Fri, 11 Nov 2016 22:30:57 +0000 (22:30 +0000)]
Merge changes I7f32dc9f,I9d88ddb1
am: cd9ce19e9c

Change-Id: I3294cceacf564de140e374068c5ed3974df1875c

7 years agoRevert "Revert "Attempt to use arc4random where getauxval(AT_RANDOM) is used.""
Josh Gao [Fri, 11 Nov 2016 22:30:56 +0000 (22:30 +0000)]
Revert "Revert "Attempt to use arc4random where getauxval(AT_RANDOM) is used.""
am: a170d9bfc5

Change-Id: I2f72f07b59c8e5e0e7e19b41ce40a2c874a24330

7 years agoRevert "Revert "Update getentropy_linux.c from upstream.""
Josh Gao [Fri, 11 Nov 2016 22:30:53 +0000 (22:30 +0000)]
Revert "Revert "Update getentropy_linux.c from upstream.""
am: 98d655ce96

Change-Id: I4c41ee2b003790549f934c73644dcaee9efa9ba9

7 years agoMerge changes I7f32dc9f,I9d88ddb1
Treehugger Robot [Fri, 11 Nov 2016 22:20:17 +0000 (22:20 +0000)]
Merge changes I7f32dc9f,I9d88ddb1

* changes:
  Revert "Revert "Attempt to use arc4random where getauxval(AT_RANDOM) is used.""
  Revert "Revert "Update getentropy_linux.c from upstream.""

7 years agoRevert "Revert "Attempt to use arc4random where getauxval(AT_RANDOM) is used.""
Josh Gao [Fri, 11 Nov 2016 00:08:29 +0000 (16:08 -0800)]
Revert "Revert "Attempt to use arc4random where getauxval(AT_RANDOM) is used.""

This reverts commit 60d052dda600f26fdb6180ac1a2c53e97df5a58a.

Bug: http://b/27729263
Change-Id: I7f32dc9f9a1f21fda3213f10da940821e1bdd63f

7 years agoRevert "Revert "Update getentropy_linux.c from upstream.""
Josh Gao [Fri, 11 Nov 2016 00:08:20 +0000 (16:08 -0800)]
Revert "Revert "Update getentropy_linux.c from upstream.""

This reverts commit b3fbee449c314aee4bdc2f1720a931ea56c32f62.

Bug: http://b/27729263
Change-Id: I9d88ddb11466d203514ae805f4681c92e4b63c24

7 years agoDO NOT MERGE : Update timezone data to 2016i.
Neil Fuller [Thu, 10 Nov 2016 14:35:53 +0000 (14:35 +0000)]
DO NOT MERGE : Update timezone data to 2016i.
am: dd0155f7d4

Change-Id: Ic7148f07431257aeb798732eaaca79a21d24ea03

7 years agoversioner: use a virtual filesystem for input files.
Josh Gao [Wed, 9 Nov 2016 09:00:41 +0000 (01:00 -0800)]
versioner: use a virtual filesystem for input files.

Use an InMemoryFileSystem to store and share input files across
compilations.

This improves the result of `time versioner` further, from:
    versioner  109.12s user 17.43s system 2433% cpu 5.201 total
to:
    versioner  112.20s user 1.38s system 2416% cpu 4.700 total

Bug: http://b/32748936
Test: python run_tests.py
Change-Id: I72d37b7c30850b8399cc40338247700fe3e7b2f9

7 years agoversioner: cache -cc1 flags generated by the clang Driver.
Josh Gao [Wed, 9 Nov 2016 06:21:31 +0000 (22:21 -0800)]
versioner: cache -cc1 flags generated by the clang Driver.

Profiling showed that majority of time spent by versioner was being
spent in the x86 and x86_64 driver statting random files in /usr/lib,
looking for a toolchain. Hardcode a list of per-target flags which
correspond to a subset of the ones generated by clang, and use those
instead of calling out to Driver.

This changes the result of `time versioner` from:
    versioner  156.57s user 1180.08s system 4109% cpu 32.525 total
to:
    versioner  109.12s user 17.43s system 2433% cpu 5.201 total

Bug: http://b/32748936
Test: python run_tests.py
Change-Id: I7d254a105bf1a283cbba0546321b04e308e703d1

7 years agoversioner: refactor to use CompilerInstance directly.
Josh Gao [Tue, 8 Nov 2016 02:27:16 +0000 (18:27 -0800)]
versioner: refactor to use CompilerInstance directly.

This will make it easier to switch over to a virtual filesystem,
which should drastically improve performance.

This also fixes an issue with warning/error reporting.

Bug: http://b/32748936
Test: python run_tests.py
Change-Id: I2e967acf75db29c95f3a03f4f94cccd22c367ad5

7 years agoMerge "versioner: don't always hide future decls." am: 84e269d5af am: 73a4998c7d
Josh Gao [Wed, 9 Nov 2016 02:26:07 +0000 (02:26 +0000)]
Merge "versioner: don't always hide future decls." am: 84e269d5af am: 73a4998c7d
am: 3ba973a7dd

Change-Id: Ic2ed50f5018a784e970a0d5b9ca4bea557988e87

7 years agoMerge "versioner: don't always hide future decls." am: 84e269d5af
Josh Gao [Wed, 9 Nov 2016 02:20:37 +0000 (02:20 +0000)]
Merge "versioner: don't always hide future decls." am: 84e269d5af
am: 73a4998c7d

Change-Id: I55005e7f8f64d8b3b11ea7f341ff8dcf534b3694

7 years agoMerge "versioner: don't always hide future decls."
Josh Gao [Wed, 9 Nov 2016 02:15:37 +0000 (02:15 +0000)]
Merge "versioner: don't always hide future decls."
am: 84e269d5af

Change-Id: Id889cddcb180ad3d485ff80ac475658df9ac402f

7 years agoMerge "versioner: don't always hide future decls."
Treehugger Robot [Wed, 9 Nov 2016 02:07:17 +0000 (02:07 +0000)]
Merge "versioner: don't always hide future decls."

7 years agoMerge "Document how to run the benchmarks." am: 64fc6b5e20 am: 1245ee0d03
Elliott Hughes [Wed, 9 Nov 2016 01:42:16 +0000 (01:42 +0000)]
Merge "Document how to run the benchmarks." am: 64fc6b5e20 am: 1245ee0d03
am: cf969e7c16

Change-Id: I775e35f6a536133f6169dcf638c40bf450c9d348

7 years agoMerge "Fix error case to print newlines properly." am: b08fde95cb am: 452d4d3db5
Christopher Ferris [Wed, 9 Nov 2016 01:42:04 +0000 (01:42 +0000)]
Merge "Fix error case to print newlines properly." am: b08fde95cb am: 452d4d3db5
am: aa04c39081

Change-Id: I423f84ea896742fc8bd6a4e1cbeaa2fd133211db

7 years agoMerge "Document how to run the benchmarks." am: 64fc6b5e20
Elliott Hughes [Wed, 9 Nov 2016 01:37:19 +0000 (01:37 +0000)]
Merge "Document how to run the benchmarks." am: 64fc6b5e20
am: 1245ee0d03

Change-Id: I431f87117a92cf55f6d34519d37ef7e93de5e27d

7 years agoMerge "Fix error case to print newlines properly." am: b08fde95cb
Christopher Ferris [Wed, 9 Nov 2016 01:37:04 +0000 (01:37 +0000)]
Merge "Fix error case to print newlines properly." am: b08fde95cb
am: 452d4d3db5

Change-Id: Ic13bb12bc2bad19333c86ba2943ecbf7e2f270d6

7 years agoMerge "Document how to run the benchmarks."
Elliott Hughes [Wed, 9 Nov 2016 01:31:44 +0000 (01:31 +0000)]
Merge "Document how to run the benchmarks."
am: 64fc6b5e20

Change-Id: Ie5ff7630f3e647240c7b170ad255ed0268814837

7 years agoMerge "Fix error case to print newlines properly."
Christopher Ferris [Wed, 9 Nov 2016 01:31:33 +0000 (01:31 +0000)]
Merge "Fix error case to print newlines properly."
am: b08fde95cb

Change-Id: I2987196ad6bb4e3ccf0c19b8e6b450903cf691f6

7 years agoMerge "Document how to run the benchmarks."
Treehugger Robot [Wed, 9 Nov 2016 01:20:58 +0000 (01:20 +0000)]
Merge "Document how to run the benchmarks."

7 years agoMerge "Fix error case to print newlines properly."
Treehugger Robot [Wed, 9 Nov 2016 00:33:12 +0000 (00:33 +0000)]
Merge "Fix error case to print newlines properly."

7 years agoversioner: don't always hide future decls.
Josh Gao [Wed, 9 Nov 2016 00:17:45 +0000 (16:17 -0800)]
versioner: don't always hide future decls.

Bug: http://b/32748732
Test: python run_tests.py
Change-Id: I8f799015ebb1017f5e7d1324fb4c724e12a268bc

7 years agoDocument how to run the benchmarks.
Elliott Hughes [Tue, 8 Nov 2016 23:38:26 +0000 (15:38 -0800)]
Document how to run the benchmarks.

Test: N/A
Change-Id: I13bf4f1b5a218e06e68ff8eb8156843175f2648a

7 years agoFix error case to print newlines properly.
Christopher Ferris [Tue, 8 Nov 2016 22:05:18 +0000 (14:05 -0800)]
Fix error case to print newlines properly.

Bug: 32640542

Test: Built and ran on a failing device.
Change-Id: I81a578af7608c741819062bd54aa8e348a621b83

7 years agoMerge "Eliminate deadlock in forked child due to delayed resetting mutex lock" am...
Dimitry Ivanov [Tue, 8 Nov 2016 21:23:44 +0000 (21:23 +0000)]
Merge "Eliminate deadlock in forked child due to delayed resetting mutex lock" am: 8bfaac0f8a am: 7676c3494a
am: 36fac159ed

Change-Id: Iceab33584cb2ddd6c6565a7e5746dc6c4b2a76a3

7 years agoMerge "Eliminate deadlock in forked child due to delayed resetting mutex lock" am...
Dimitry Ivanov [Tue, 8 Nov 2016 21:18:43 +0000 (21:18 +0000)]
Merge "Eliminate deadlock in forked child due to delayed resetting mutex lock" am: 8bfaac0f8a
am: 7676c3494a

Change-Id: Iddb15d6135177028c39e9a244e9c36f9fcb4ed39

7 years agoMerge "Eliminate deadlock in forked child due to delayed resetting mutex lock"
Dimitry Ivanov [Tue, 8 Nov 2016 21:13:44 +0000 (21:13 +0000)]
Merge "Eliminate deadlock in forked child due to delayed resetting mutex lock"
am: 8bfaac0f8a

Change-Id: I7db0e466f3ea8af90fe9ec7c103ec3ddff3a7da9

7 years agoMerge "Eliminate deadlock in forked child due to delayed resetting mutex lock"
Dimitry Ivanov [Tue, 8 Nov 2016 20:59:42 +0000 (20:59 +0000)]
Merge "Eliminate deadlock in forked child due to delayed resetting mutex lock"

7 years agoMerge "Remove bogus OPEN_MAX and CHILD_MAX constants." am: bfc6ce6424 am: df8bccafdc
Elliott Hughes [Tue, 8 Nov 2016 01:26:02 +0000 (01:26 +0000)]
Merge "Remove bogus OPEN_MAX and CHILD_MAX constants." am: bfc6ce6424 am: df8bccafdc
am: 3dc5fd70ed

Change-Id: Ibf3f6e0b2991ba96b163695e264ce0c7be119505

7 years agoMerge "Remove bogus OPEN_MAX and CHILD_MAX constants." am: bfc6ce6424
Elliott Hughes [Tue, 8 Nov 2016 01:21:02 +0000 (01:21 +0000)]
Merge "Remove bogus OPEN_MAX and CHILD_MAX constants." am: bfc6ce6424
am: df8bccafdc

Change-Id: Ib27b5b4156a85262354d5fc98e7edce7b2ae3ddb

7 years agoMerge "Remove bogus OPEN_MAX and CHILD_MAX constants."
Elliott Hughes [Tue, 8 Nov 2016 01:16:01 +0000 (01:16 +0000)]
Merge "Remove bogus OPEN_MAX and CHILD_MAX constants."
am: bfc6ce6424

Change-Id: I5b05ef9af8a6ab128ddaf9daed4262fc64cfe623

7 years agoMerge "Remove bogus OPEN_MAX and CHILD_MAX constants."
Elliott Hughes [Tue, 8 Nov 2016 01:05:47 +0000 (01:05 +0000)]
Merge "Remove bogus OPEN_MAX and CHILD_MAX constants."

7 years agoMerge "Add legacy inlines for fenv APIs." am: 59a3439fe8 am: 3638492dba
Dan Albert [Tue, 8 Nov 2016 00:13:57 +0000 (00:13 +0000)]
Merge "Add legacy inlines for fenv APIs." am: 59a3439fe8 am: 3638492dba
am: 109e3a24b6

Change-Id: I8b0bae9d1ab8daca390c76539782020759c596ef

7 years agoMerge "Add legacy inlines for fenv APIs." am: 59a3439fe8
Dan Albert [Tue, 8 Nov 2016 00:08:56 +0000 (00:08 +0000)]
Merge "Add legacy inlines for fenv APIs." am: 59a3439fe8
am: 3638492dba

Change-Id: I056397bd972442526326b4545be35cdf169458a7

7 years agoMerge "Add legacy inlines for fenv APIs."
Dan Albert [Tue, 8 Nov 2016 00:04:00 +0000 (00:04 +0000)]
Merge "Add legacy inlines for fenv APIs."
am: 59a3439fe8

Change-Id: I527cc2d3dc974260e5f81b9fd45e246454841ce3

7 years agoMerge "Add legacy inlines for fenv APIs."
Treehugger Robot [Mon, 7 Nov 2016 23:51:40 +0000 (23:51 +0000)]
Merge "Add legacy inlines for fenv APIs."

7 years agoMerge "Show amount of parallelism in gtest output." am: 15ae549658 am: 34637a7865
Elliott Hughes [Mon, 7 Nov 2016 23:07:23 +0000 (23:07 +0000)]
Merge "Show amount of parallelism in gtest output." am: 15ae549658 am: 34637a7865
am: ffc6e1feb3

Change-Id: Ie13397aa0fa8145d972cedd4b662e93e86e8101f

7 years agoMerge "Show amount of parallelism in gtest output." am: 15ae549658
Elliott Hughes [Mon, 7 Nov 2016 23:02:22 +0000 (23:02 +0000)]
Merge "Show amount of parallelism in gtest output." am: 15ae549658
am: 34637a7865

Change-Id: If0fb9136142357eaf6bfad0eba79e1ab06dc038c

7 years agoMerge "Show amount of parallelism in gtest output."
Elliott Hughes [Mon, 7 Nov 2016 22:56:52 +0000 (22:56 +0000)]
Merge "Show amount of parallelism in gtest output."
am: 15ae549658

Change-Id: I397a9f303b650445608480551ba863cb5cdc78fd