Commit graph

28308 commits

Author SHA1 Message Date
Pirama Arumuga Nainar
b993b94d41 Merge "Move bionic-unit-tests-static to libclang_rt.builtins"
am: 96c21e43b4

Change-Id: I79c2c06cd179d6cb1fa63e69735ae4bff0559145
2019-04-03 08:06:09 -07:00
Treehugger Robot
96c21e43b4 Merge "Move bionic-unit-tests-static to libclang_rt.builtins" 2019-04-03 14:45:47 +00:00
Pirama Arumuga Nainar
0d16a31664 Move bionic-unit-tests-static to libclang_rt.builtins
Bug: http://b/129728267
Bug: http://b/117167374

This test is now built with XOM (because libm now uses XOM) but it
should also use libclang_rt.builtins since libgcc is not built with XOM.

Test: bionic-unit-tests-static passes (but used to segfault with XOM
exceptions without this change).

Change-Id: I0b1dfe52e48db5f5e9386c7722ecd91e155be56f
2019-04-02 22:45:29 -07:00
Christopher Ferris
f2905f4ce3 Merge "Disable info messages by default for malloc debug."
am: e6fd53b751

Change-Id: I088f92572a5b0af474a311f6bf73b48924b2960a
2019-04-02 13:06:53 -07:00
Christopher Ferris
e6fd53b751 Merge "Disable info messages by default for malloc debug." 2019-04-02 19:46:29 +00:00
Christopher Ferris
c328e4465d Disable info messages by default for malloc debug.
Add a new option verbose for malloc debug that is not enabled by default.
This disables all of the info log messages. It turns out these log
messages can add a measurable amount of time and can change the boot up.

Bug: 129239269

Test: Adjusted unit tests pass.
Test: Verified no messages unless verbose option used.
Change-Id: I805cb7c8ecb44de88119574e59d784877cacc383
2019-04-02 10:55:21 -07:00
Vic Yang
b325aaa0d1 Merge "libc: Update symbol_ordering file"
am: 4fbe126643

Change-Id: I65533c8e42cbc630d14fa3f62a70a4af9a652875
2019-04-01 21:10:50 -07:00
Treehugger Robot
4fbe126643 Merge "libc: Update symbol_ordering file" 2019-04-02 03:51:51 +00:00
Christopher Ferris
b525ee4a11 Merge "Create a lib that uses scudo instead of jemalloc."
am: d486e024c6

Change-Id: I181015004ab7c1f74112048395173d0067ba1753
2019-04-01 18:54:22 -07:00
Christopher Ferris
d486e024c6 Merge "Create a lib that uses scudo instead of jemalloc." 2019-04-02 01:37:07 +00:00
Christopher Ferris
fc26d71af1 Create a lib that uses scudo instead of jemalloc.
The media processes already use scudo as their allocator. However, it
doesn't really correctly replace the normal allocation functions, so create
a set of wrappers that allow us to use scudo closer to how jemalloc is used.

This is only a temporary change, and should be removed for the next
release of Android. In that version, we will be using standalone
scudo which won't require this wrapper code.

Bug: 123689570

Test: Ran new bionic unit tests. There are failures, but only with
Test: extensions that scudo does not support.

Change-Id: I0516c23d654a9b6c69b157c5501245d2e0b3d264
2019-04-01 13:02:49 -07:00
Vic Yang
90cca40111 libc: Update symbol_ordering file
There have been several changes since the file was created.  Update the
file with latest build.  We also sort the symbols by names when they
have the same size so that future updates are easier to review.

Bug: 124521408
Test: Build and inspect symbol ordering
Change-Id: Iedd885b9a87d882ae278a1f117f40b20d064c384
2019-04-01 12:08:50 -07:00
Yi Kong
2e3a19d5b4 Merge "Modernise code to use override specifier"
am: 4699cf6174

Change-Id: Ia22c546feed8711579cc5aaf4833cf29652506c2
2019-03-29 19:34:20 -07:00
Yi Kong
4699cf6174 Merge "Modernise code to use override specifier" 2019-03-30 02:11:13 +00:00
Daniel Mentz
6379127063 Merge "clean_header: Don't print extraneous newline char"
am: 0ce5c4440d

Change-Id: Id1d667d622c462e77721d64f4846627ccf7d6376
2019-03-29 17:34:02 -07:00
Daniel Mentz
0ce5c4440d Merge "clean_header: Don't print extraneous newline char" 2019-03-30 00:10:09 +00:00
Daniel Mentz
108268a143 Merge "clean_header: Write to correct dst_file"
am: b95c8af8c9

Change-Id: Idbab599484e91be4719c254e94ac1cfaa69793bf
2019-03-29 15:45:04 -07:00
Daniel Mentz
bb4cf7b8a7 clean_header: Don't print extraneous newline char
Don't print an extraneous newline character at the end of the include
file if clean_header.py is used in the non-update mode. This is
necessary to achieve consistent results in the update and non-update
modes.

Running clean_header in the non-update mode and redirecting the output
to a file should have the same result as using the update mode and have
the script write to the file directly.

Change-Id: I6b176c5365840d66e4499bacd205f1fa77302a2b
2019-03-29 15:17:48 -07:00
Daniel Mentz
b95c8af8c9 Merge "clean_header: Write to correct dst_file" 2019-03-29 21:41:35 +00:00
Daniel Mentz
316f4a499c clean_header: Write to correct dst_file
Write to correct dst_file when in update mode. This enables use cases
like the following:

../../../bionic/libc/kernel/tools/clean_header.py -k original-kernel-headers/ -d kernel-headers/ -u linux/ion.h

Previously, we had to cd into kernel-headers/ and then run

../../../../bionic/libc/kernel/tools/clean_header.py -k ../original-kernel-headers/ -d . -u linux/ion.h

because the tool didn't allow the relative path to be different from the
destination path.

Change-Id: I8c5e284ce7a6737d77a2f5ead3e7e5db01317425
2019-03-29 21:41:15 +00:00
Yi Kong
358603a409 Modernise code to use override specifier
Generated by clang-tidy.

Test: m checkbuild
Change-Id: I8e23da6b8af31b291be2eefe9937ca222ea8a8c3
2019-03-29 14:27:27 -07:00
Pirama Arumuga Nainar
5375df8f61 Merge "Reserve realtime signal for libprofile-extras"
am: 3e742cb613

Change-Id: I7bade5b9548519ac5b945c9cee09120c4a2a219f
2019-03-29 09:16:53 -07:00
Pirama Arumuga Nainar
3e742cb613 Merge "Reserve realtime signal for libprofile-extras" 2019-03-29 15:57:32 +00:00
Christopher Ferris
b1b8bfb8fd Merge "Fix double initialization call."
am: 6c5c6afea9

Change-Id: I8f1fa90413b1b09e8048a13c3790cd87f6ad697d
2019-03-28 15:08:14 -07:00
Christopher Ferris
6c5c6afea9 Merge "Fix double initialization call." 2019-03-28 21:49:26 +00:00
Christopher Ferris
1e3758e7a2 Fix double initialization call.
The previous refactor left a double call to the initialization of
the loaded hooks. Remove the unnecessary call.

Bug: 129239269

Test: All unit tests pass. No double printing of init messages.
Change-Id: Ie980f2383c75d69f8b06bf9a431bb59caef21188
2019-03-28 17:12:26 +00:00
Peter Collingbourne
04b0178166 Merge "Use PR_SET_VMA_ANON_NAME to name the abort message mapping."
am: 14025fd2bf

Change-Id: I31527f2418c62704c294e4c148c12dbf9a88fa48
2019-03-27 18:35:45 -07:00
Peter Collingbourne
14025fd2bf Merge "Use PR_SET_VMA_ANON_NAME to name the abort message mapping." 2019-03-28 01:17:33 +00:00
Nick Kralevich
a201789ffa Merge "param.h: whitespace cleanup"
am: 29a89df9e2

Change-Id: Ic79fb52c56bba63cdc20f313464745387ac049a1
2019-03-27 17:18:38 -07:00
Peter Collingbourne
feb5ed1b54 Use PR_SET_VMA_ANON_NAME to name the abort message mapping.
This makes it easier for tools to find the mapping. I am planning
to use this in crashpad to add HWASAN reports to the minidump.

Bug: http://crbug.com/crashpad/287
Change-Id: I600e551ef26d6ff62849319365d77912afa82fde
2019-03-27 16:50:27 -07:00
Nick Kralevich
29a89df9e2 Merge "param.h: whitespace cleanup" 2019-03-27 23:46:09 +00:00
Elliott Hughes
9d1ae96262 Merge "tests: test both upper- and lower-case with strptime %P/%p."
am: 2e824e3150

Change-Id: If993c7d32c95b6770b6d0ee5ba65d9c72274ecad
2019-03-27 14:06:34 -07:00
Treehugger Robot
2e824e3150 Merge "tests: test both upper- and lower-case with strptime %P/%p." 2019-03-27 20:54:59 +00:00
Yi Kong
f0c71e24d7 Merge "Move x86 and x86_64 libc to use libcrt"
am: 1d9a4cbce9

Change-Id: Ib400b83ff4a9c5f2d27321e73bcb81e9a4a98efc
2019-03-27 13:38:47 -07:00
Yi Kong
1d9a4cbce9 Merge "Move x86 and x86_64 libc to use libcrt" 2019-03-27 20:32:46 +00:00
Elliott Hughes
94cd62ccd1 Merge "Convert new tests to GTEST_SKIP."
am: e7ee0731c3

Change-Id: Icb868f196313b5fa45f9e42c7c1a6533677c50f3
2019-03-27 13:14:41 -07:00
Treehugger Robot
e7ee0731c3 Merge "Convert new tests to GTEST_SKIP." 2019-03-27 20:04:49 +00:00
Nick Kralevich
3cfedf4ff0 param.h: whitespace cleanup
c50b6a2b89 redefined the powerof2 macro,
but in a way that that didn't meet the clang_format style guidelines.
Change powerof2 to make clang_format happy.

Test: compiles
Change-Id: Icd04a17f40413b7a416ddcdc080edbc4d3fac87a
2019-03-27 10:56:16 -07:00
Yi Kong
efd25a0fd7 Move x86 and x86_64 libc to use libcrt
With __cpu_model visibility issue fixed in libcrt, we can move x86 and
x86_64 libc to use libcrt as well.

Test: emulator boots
Bug: 122993569
Change-Id: If71c324180010a57e3e9598d758a4d6ab1a3c369
2019-03-27 16:54:28 +00:00
Elliott Hughes
06acbcfb64 Merge "strptime: support everything that strftime supports."
am: ff923681be

Change-Id: I39dd975a674c115e2fc9212c1bd967a6aefd6e2b
2019-03-27 08:59:29 -07:00
Elliott Hughes
1167882a87 tests: test both upper- and lower-case with strptime %P/%p.
Test: ran tests
Change-Id: I7275808f2f0ae4f02d057542a13350895022910c
2019-03-27 08:56:49 -07:00
Elliott Hughes
109072038a Convert new tests to GTEST_SKIP.
These went in while we were waiting for the infrastructure to catch up.

Test: treehugger
Change-Id: I1179d1aba8f1369d320f82705958b36c6930babf
2019-03-27 08:51:02 -07:00
Elliott Hughes
ff923681be Merge "strptime: support everything that strftime supports." 2019-03-27 15:44:54 +00:00
Elliott Hughes
64bc28143f Merge "bionic tests: use GTEST_SKIP."
am: e08288465e

Change-Id: I6a6b55dc2f287a959363792bc4db3e8e4fd41bfb
2019-03-26 19:17:57 -07:00
Elliott Hughes
a1fb15bb67 strptime: support everything that strftime supports.
Our strptime was missing `%F`, `%G`, `%g`, `%P`, `%u`, `%V`, and
`%v`. Most of these are already supported upstream (and I've just pulled
their current implementation), but some aren't. We're horribly out of
sync anyway, so I'll upstream the missing pieces and then try to get us
back in sync later.

Test: new tests, but originally found by toybox trying to use %F
Change-Id: Ib1a10801a7a3b9c9189440c3b300109bde535fd9
2019-03-26 19:07:40 -07:00
Elliott Hughes
e08288465e Merge "bionic tests: use GTEST_SKIP." 2019-03-27 02:05:57 +00:00
Christopher Ferris
a423fed2ba Merge "Increase the allocation limit again."
am: e990078f05

Change-Id: I1c902d4781568a1ca8750eb0cdf7e4cc8a80de1c
2019-03-26 18:17:37 -07:00
Christopher Ferris
e990078f05 Merge "Increase the allocation limit again." 2019-03-27 01:04:36 +00:00
Elliott Hughes
1f63174243 Merge "Fix running the tests on the host again."
am: b0c33ecb99

Change-Id: Ie7aa9c329512b174e7f8801788fcf18166f3aeb1
2019-03-26 16:54:41 -07:00
Treehugger Robot
b0c33ecb99 Merge "Fix running the tests on the host again." 2019-03-26 23:44:19 +00:00