Commit graph

35902 commits

Author SHA1 Message Date
Treehugger Robot
da045811c6 Merge "Don't use llvm-defaults to build some tests." am: 4a85b045fd am: 443f506182 am: 2ac804b85f
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1946968

Change-Id: Id42bc12b6c74633b2f89dd85c37e6d0373036c62
2022-01-13 04:45:03 +00:00
Treehugger Robot
2ac804b85f Merge "Don't use llvm-defaults to build some tests." am: 4a85b045fd am: 443f506182
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1946968

Change-Id: I567ae0f4e6481434209490e1c0e668cf08159ac2
2022-01-13 04:26:53 +00:00
Treehugger Robot
443f506182 Merge "Don't use llvm-defaults to build some tests." am: 4a85b045fd
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1946968

Change-Id: Idafad4ac6cd9602aaa26f55954580e4f61297c2a
2022-01-13 04:10:24 +00:00
Treehugger Robot
4a85b045fd Merge "Don't use llvm-defaults to build some tests." 2022-01-13 03:55:16 +00:00
Treehugger Robot
a5b991c1c6 Merge "Fix copy pasta in guard macro for weak symbols." am: 5396787062 am: fa83c83273 am: 3e27d12946
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1940462

Change-Id: I2428ada6ac4986ca53d418b06eea421f92f49276
2022-01-12 23:01:14 +00:00
Treehugger Robot
3e27d12946 Merge "Fix copy pasta in guard macro for weak symbols." am: 5396787062 am: fa83c83273
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1940462

Change-Id: I12a7a2677c45dfdb9ffb26dbf17aed89d29cbde0
2022-01-12 22:45:26 +00:00
Treehugger Robot
fa83c83273 Merge "Fix copy pasta in guard macro for weak symbols." am: 5396787062
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1940462

Change-Id: I5f82ecad3e171ea53c11ee41816c2196c06a49e5
2022-01-12 22:33:45 +00:00
Treehugger Robot
5396787062 Merge "Fix copy pasta in guard macro for weak symbols." 2022-01-12 22:19:11 +00:00
Elliott Hughes
db358e6ae1 Don't use llvm-defaults to build some tests.
It's not clear this was ever needed, it doesn't seem to make any
difference now, and these are the defaults for the obsolete renderscript
LLVM anyway, so... yeah.

This was noticed because it was causing some of our tests to be built as
C++11 rather than [the current default of] C++17.

Test: treehugger
Change-Id: I7d72b3fd58e9cf9a02048b0298eee845d19307f7
2022-01-12 09:15:46 -08:00
Christopher Ferris
5d41c7402f Merge "Update to v5.16 kernel headers." am: c79b02088b am: 9757d047e0 am: 8c48d4edbd
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1943890

Change-Id: Ic639adcb74caba68a1332bab10533ea14c220350
2022-01-11 22:31:27 +00:00
Christopher Ferris
8c48d4edbd Merge "Update to v5.16 kernel headers." am: c79b02088b am: 9757d047e0
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1943890

Change-Id: I35514394d5cf908b614d9da110441153d38f96fe
2022-01-11 22:11:26 +00:00
Christopher Ferris
9757d047e0 Merge "Update to v5.16 kernel headers." am: c79b02088b
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1943890

Change-Id: I5d5d1bd58594728653e508ab4c3dedf476b3153b
2022-01-11 21:52:21 +00:00
Christopher Ferris
c79b02088b Merge "Update to v5.16 kernel headers." 2022-01-11 21:39:53 +00:00
Treehugger Robot
2a5f707f9d Merge "Remove availability definitions for mbs APIs." am: f62c8f99cb am: 7064948b1a am: 9f6bf922a2
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1940461

Change-Id: Iae3f43053de1855c6fe50053d786187949a7cd0f
2022-01-10 22:35:26 +00:00
Treehugger Robot
9f6bf922a2 Merge "Remove availability definitions for mbs APIs." am: f62c8f99cb am: 7064948b1a
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1940461

Change-Id: I5e4345db22713d6c57a5e6bd978befefb822f893
2022-01-10 22:16:57 +00:00
Christopher Ferris
a479261feb Update to v5.16 kernel headers.
Kernel headers coming from:

Git: https://android.googlesource.com/kernel/common/
Branch: android-mainline
Tag: android-mainline-5.16

Test: Builds and bionic unit tests pass.
Change-Id: I2522c4f2a0efb9f8a193e1f2d65868e478217502
2022-01-10 13:51:15 -08:00
Treehugger Robot
7064948b1a Merge "Remove availability definitions for mbs APIs." am: f62c8f99cb
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1940461

Change-Id: I9424c079d5646071d1a3295b574f5aaf6f7e84e4
2022-01-10 21:25:28 +00:00
Treehugger Robot
f62c8f99cb Merge "Remove availability definitions for mbs APIs." 2022-01-10 21:04:37 +00:00
Dan Albert
e4106253e7 Fix copy pasta in guard macro for weak symbols.
This was pretty broken. I think anything using this was being given
always-available annotations for everything but 32-bit x86? Treehugger
should complain loudly if this was actually impacting anything though.
I suspect not since the only user of this mode is mainline which
doesn't target far back enough to have arch-specific introduction
guards.

Test: treehugger
Bug: None
Change-Id: I64e96a89d83e64512e661e88915c48a091198992
2022-01-07 16:06:54 -08:00
Dan Albert
952da92670 Remove availability definitions for mbs APIs.
Definitions for these are provided in libandroid_support for API
levels that do not expose this in the stubs. For the rare cases where
libandroid_support is not being used this will result in a lower
quality diagnostic (undefined reference instead of "not available
until API 21"), but other fixes would also have that behavior because
the libandroid_support headers are *always* available, even if
libandroid_support won't be linked.

Test: Reverted xfailed tests for #1108 and reran tests with this
Bug: https://github.com/android/ndk/issues/1108
Change-Id: I371f5b9d7caeef8dc7c80f2f6d11280ecba119c9
2022-01-07 14:38:29 -08:00
Elliott Hughes
2d733ac6ed Merge "c32rtomb/mbrtoc32: remove dead code." am: e2c784f159 am: c376bc36d3 am: 25f630b721
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1925026

Change-Id: I718778099d5e640d82d3cd8611969f07175c3657
2021-12-17 00:58:54 +00:00
Elliott Hughes
cfe8255b6f Merge "sched.h: add doc comments." am: c73c19acdb am: 49f5a7e7c8 am: aab4786093
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1596940

Change-Id: I7ce7bbe82b6dfdcb3f3b463353b088c7f31d79cd
2021-12-17 00:58:38 +00:00
Elliott Hughes
25f630b721 Merge "c32rtomb/mbrtoc32: remove dead code." am: e2c784f159 am: c376bc36d3
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1925026

Change-Id: I03c620cd1e31ca7b22881ec6a9a47c4ef225f0c9
2021-12-17 00:37:52 +00:00
Elliott Hughes
aab4786093 Merge "sched.h: add doc comments." am: c73c19acdb am: 49f5a7e7c8
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1596940

Change-Id: I252dd898b6c31ced23b0f8e57445dc21e212b0fb
2021-12-17 00:37:32 +00:00
Elliott Hughes
c376bc36d3 Merge "c32rtomb/mbrtoc32: remove dead code." am: e2c784f159
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1925026

Change-Id: I9de8dbee17467b4ba945d9b94d5a1db0e1a12db2
2021-12-17 00:11:48 +00:00
Elliott Hughes
49f5a7e7c8 Merge "sched.h: add doc comments." am: c73c19acdb
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1596940

Change-Id: I3a5ae466a2986cda922ccae37d7e424635f7beed
2021-12-17 00:11:38 +00:00
Elliott Hughes
e2c784f159 Merge "c32rtomb/mbrtoc32: remove dead code." 2021-12-16 23:52:55 +00:00
Elliott Hughes
c73c19acdb Merge "sched.h: add doc comments." 2021-12-16 23:47:13 +00:00
Elliott Hughes
31fbc1469f sched.h: add doc comments.
Test: treehugger
Change-Id: I9a6dd40bb26a5966dd32dbdf573cddc874bcb508
2021-12-15 13:56:39 -08:00
Elliott Hughes
ad1658ecfe c32rtomb/mbrtoc32: remove dead code.
When we added the fast path for the common case of ASCII, we forgot to
remove the now-dead code that handled the 1-byte case later in these
functions. This was obvious from the code coverage data.

Note that the 16-bit variants are unaffected because they're implemented
as calls to the 32-bit variants with extra range checks/surrogate
handling surrounding the call.

Test: treehugger
Change-Id: Ibd40f823519acb9aae8037bdeb3f9c5e36b9d9a6
2021-12-15 13:41:20 -08:00
Christopher Ferris
398e71bd30 Merge "Mark variables as unused." am: 084d60a027 am: 588e7d7a20 am: 47a7427ebd
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1922017

Change-Id: Ie324765c7ee7abd016a32fa9f7e581c90c19d761
2021-12-15 19:58:23 +00:00
Christopher Ferris
47a7427ebd Merge "Mark variables as unused." am: 084d60a027 am: 588e7d7a20
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1922017

Change-Id: Ic8053d078c2f20ceac42431ae4014ec30e340cb2
2021-12-15 19:30:59 +00:00
Christopher Ferris
588e7d7a20 Merge "Mark variables as unused." am: 084d60a027
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1922017

Change-Id: I169d45605459d98ccad159370bf703c1d812105b
2021-12-15 19:04:02 +00:00
Christopher Ferris
084d60a027 Merge "Mark variables as unused." 2021-12-15 18:36:43 +00:00
Christopher Ferris
724efbb57c Mark variables as unused.
clang is smart enough to notice a variable is set but not used,
but these variable are used for testing purposes. Mark one as
unused, and convert the other to a DoNotOptimize.

Bug: 197240255

Test: Compiles without warnings.
Test: Ran unit tests on coral hwasan build.
Change-Id: Ibc873e477355a702579e5a680780c77db0c58046
2021-12-14 23:02:53 +00:00
Christopher Ferris
8906c690ea Merge "Add mallinfo2 call." am: f190be84f5 am: edd62ccc3b am: 8d7d40c3d3
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1910571

Change-Id: Ia09df4bb383b426dd9710597d3ed392ec1f44c67
2021-12-14 06:46:17 +00:00
Christopher Ferris
8d7d40c3d3 Merge "Add mallinfo2 call." am: f190be84f5 am: edd62ccc3b
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1910571

Change-Id: I6a526aa10a964df39903c4deb31e77ca71be9c4e
2021-12-14 06:33:46 +00:00
Christopher Ferris
edd62ccc3b Merge "Add mallinfo2 call." am: f190be84f5
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1910571

Change-Id: I5763151a2a6201dfd8b11fc26346836a156b5759
2021-12-14 06:17:45 +00:00
Christopher Ferris
f190be84f5 Merge "Add mallinfo2 call." 2021-12-14 05:55:16 +00:00
Elliott Hughes
71ee9bf614 Merge "Add some documentation about EINTR." am: a73179fe30 am: 1d88b551bc am: 7a37051b18
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1918454

Change-Id: Ib8bfb8cfc8e87e2bb75f2086bbd10d2459f7a615
2021-12-14 01:22:14 +00:00
Elliott Hughes
7a37051b18 Merge "Add some documentation about EINTR." am: a73179fe30 am: 1d88b551bc
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1918454

Change-Id: I4c0deb40921187ac4a3a0c5170423dbc4d139a9a
2021-12-14 00:59:55 +00:00
Elliott Hughes
1d88b551bc Merge "Add some documentation about EINTR." am: a73179fe30
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1918454

Change-Id: Ia553ea3a8a3e9f966cdddf024611b3a634aafe59
2021-12-14 00:43:12 +00:00
Elliott Hughes
a73179fe30 Merge "Add some documentation about EINTR." 2021-12-14 00:25:54 +00:00
Christopher Ferris
8248e62fa9 Add mallinfo2 call.
Bug: 208293616

Test: New unit tests pass.
Change-Id: I619219b7322e2dd1c82b9c8a171dfbfe7eac6706
2021-12-13 14:26:17 -08:00
Elliott Hughes
38be11e88c Add some documentation about EINTR.
It's a common cause of confusion, and even a brief explanation can be
quite involved, so it's worth having something we can point to (and
something that interested parties might just find via a web search).

Bug: http://b/207248554
Test: treehugger
Change-Id: I4a6d8917baf99a8f7abef05ce852a31ebe048d68
2021-12-13 10:16:57 -08:00
Treehugger Robot
0242c0f2bf Merge "Clarify that fdsan wasn't "enforcing" in its first release." am: 6769ccbe88 am: b2ff5e9dc2 am: 32158098d3
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1917499

Change-Id: Id9caa2bc973ac2bfb0b98b890b4fb9efe3cf04be
2021-12-10 22:18:49 +00:00
Treehugger Robot
32158098d3 Merge "Clarify that fdsan wasn't "enforcing" in its first release." am: 6769ccbe88 am: b2ff5e9dc2
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1917499

Change-Id: Idd90ba01f07c9f1f5822902cb29264f40acb905f
2021-12-10 22:03:41 +00:00
Treehugger Robot
b2ff5e9dc2 Merge "Clarify that fdsan wasn't "enforcing" in its first release." am: 6769ccbe88
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1917499

Change-Id: Id7740149851f161ddbf113257a1d9109a7843740
2021-12-10 21:47:37 +00:00
Treehugger Robot
6769ccbe88 Merge "Clarify that fdsan wasn't "enforcing" in its first release." 2021-12-10 21:23:33 +00:00
Elliott Hughes
32a72522e0 Clarify that fdsan wasn't "enforcing" in its first release.
Change-Id: I02c4ff49446995b5ea33f4fa9ca30cf204307ae8
2021-12-10 01:42:31 +00:00