Commit graph

38123 commits

Author SHA1 Message Date
Christopher Ferris
d69e4b0cde Merge "Purge memory." am: c36823f7e8
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2410758

Change-Id: I636c2969177abab580a31b7296fcf3dc3eb96043
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-31 22:32:19 +00:00
Christopher Ferris
c2569a97a2 Merge "Verify that allocated memory is always zeroed." am: b70b4e1f62
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2116713

Change-Id: I619d315dcefed273e1ac0828ee5206d574e611e9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-31 22:31:12 +00:00
Christopher Ferris
c36823f7e8 Merge "Purge memory." 2023-01-31 22:19:00 +00:00
Christopher Ferris
b70b4e1f62 Merge "Verify that allocated memory is always zeroed." 2023-01-31 21:45:18 +00:00
Treehugger Robot
fae5f24c1f Merge "Nullability check for fcntl module" am: ab3fc60149
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2407912

Change-Id: Ifce83efcff17d57f75045595dd945d64454db0e8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-31 02:40:57 +00:00
Treehugger Robot
ab3fc60149 Merge "Nullability check for fcntl module" 2023-01-31 01:56:33 +00:00
Christopher Ferris
aa3e57469c Purge memory.
Some operations wind up allocating then freeing a significant
amount of memory. So after those operations, do a purge so that
the RSS of the process is not artificially inflated.

Bug: 262321164

Test: Ran unit tests.
Test: Verified after this change, the RSS does not go up after running
Test: am dumpheap -n <PID>.
Change-Id: I08477f8ce12c06fd2a068f536a81f4a577d619e2
2023-01-31 01:37:11 +00:00
zijunzhao
4aa1ea04d7 Nullability check for fcntl module
Bugs: b/245972273
Test: None
Change-Id: I48d23c7bc80863cd3a67ab424780308fe6929292
2023-01-30 19:48:44 +00:00
Elliott Hughes
5d4100c7b6 Merge "Add (no-op) ifuncs for SVE optimized routines." am: b0360a94c3
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2401568

Change-Id: I60b23b43635d94a5130933d0399a495ee7c27213
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-27 00:40:54 +00:00
Elliott Hughes
b0360a94c3 Merge "Add (no-op) ifuncs for SVE optimized routines." 2023-01-27 00:06:57 +00:00
Christopher Ferris
02b6bbc7b7 Verify that allocated memory is always zeroed.
If this is a low ram device, then do not run these tests. Otherwise,
verify that memory returned from the allocator is zero.

Bug: 171429763
Bug: 264539505
Bug: 265431478

Test: New unit tests pass on scudo.
Test: New unit tests fail on original jemalloc.
Test: New unit tests pass on jemalloc that always zeroes memory.
Test: New unit tests are skipped on low ram device.
Test: Ran unit tests atest CtsBionicTestCases in above scenarios.
Change-Id: Id62ab74f649c0f7c14a951235fe79972926ecec0
2023-01-26 15:19:09 -08:00
Treehugger Robot
e32dc9fb42 Merge "Nullability check for nl_types module" am: ec612d46c5
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2403712

Change-Id: I94606cedec8710e43227ca231ad87e41cba2d415
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-26 16:35:06 +00:00
Treehugger Robot
ec612d46c5 Merge "Nullability check for nl_types module" 2023-01-26 16:06:14 +00:00
Vincent Donnefort
e29253ccb8 Merge "linker: Fallback to argv[0] to get the executable info" am: 8606375bbe
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2401294

Change-Id: I540b1c008f55aea96b1e43f11e5ee3c21d9f7eb1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-26 11:14:53 +00:00
Vincent Donnefort
8606375bbe Merge "linker: Fallback to argv[0] to get the executable info" 2023-01-26 10:42:24 +00:00
zijunzhao
64b1fe21b7 Nullability check for nl_types module
Bugs: b/245972273
Test: None
Change-Id: Idc05efd6613c99292bd3c095679ac20bb6e8bf8f
2023-01-26 06:48:13 +00:00
Treehugger Robot
a7b1c12f7f Merge "Nullability check for utmp module" am: b1f9b1b224
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2393697

Change-Id: I1fba8346ddbd5b407161919a8078683cb6a019ff
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-26 00:52:41 +00:00
Elliott Hughes
3d8e98f8bd Add (no-op) ifuncs for SVE optimized routines.
This patch doesn't *enable* the SVE optimized routines, but it does let
us see if switching them to ifuncs will cause any app compat issues, so
that we can more easily use the optimized routines in future.

Test: treehugger
Change-Id: Ic5fe570bd21687da397b48127bf688f7ec68dd0c
2023-01-25 23:33:39 +00:00
Treehugger Robot
b1f9b1b224 Merge "Nullability check for utmp module" 2023-01-25 21:34:27 +00:00
Elliott Hughes
6f54c87921 Merge "Track upstream arm-optimized-routines changes." am: 8b47a35072
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2402615

Change-Id: I114deb064c80ad75732c59fb19d6a236fe02dc1b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-25 20:51:23 +00:00
Elliott Hughes
8b47a35072 Merge "Track upstream arm-optimized-routines changes." 2023-01-25 20:21:25 +00:00
zijunzhao
d9755064a6 Nullability check for utmp module
Bugs: b/245972273
Test: None
Change-Id: Ie37781b87ad13119d1ebc4cd053e184d482d5b58
2023-01-25 19:22:27 +00:00
Elliott Hughes
5ec0bfae50 Track upstream arm-optimized-routines changes.
The MTE-compatible routines are now faster than the incompatible ones,
so they merged them upstream.

I've left the ifunc boilerplate on the assumption that I'll be back
later to enable the new SVE variants.

Test: treehugger
Change-Id: Ic894bfb350b9aa70e307bca1c4978624b3e5f4fd
2023-01-25 18:12:18 +00:00
Vincent Donnefort
2efa017409 linker: Fallback to argv[0] to get the executable info
Enable linking on a system without /proc mounted by falling back to
reading the executable paths from argv[0] when /proc/exe/self can't be
found.

Bug: 254835242
Change-Id: I0735e873fa4e2f439688722c4a846fb70ff398a5
2023-01-25 16:34:43 +00:00
Elliott Hughes
9b20021113 Merge "Sync strptime.c with upstream." am: 98c641b096
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2329450

Change-Id: Ieddf201dc33c253b142e62e24a9ab221825036e9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-23 22:32:20 +00:00
Elliott Hughes
98c641b096 Merge "Sync strptime.c with upstream." 2023-01-23 22:04:29 +00:00
Treehugger Robot
f8db25a0f0 Merge "librust_baremetal: Add strtol" am: 6ffb6e89f9
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2322638

Change-Id: I38bda5763712a581bbb70cb91439c36c58d555ab
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-23 11:35:18 +00:00
Treehugger Robot
6ffb6e89f9 Merge "librust_baremetal: Add strtol" 2023-01-23 10:59:25 +00:00
Elliott Hughes
6edd9e1772 Merge "Defer to getpagesize() in sysconf()." am: 3fa4eea5ce
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2395933

Change-Id: I5275245d077bcf73e536dadbe98bdd21878c4323
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-20 16:54:12 +00:00
Elliott Hughes
3fa4eea5ce Merge "Defer to getpagesize() in sysconf()." 2023-01-20 16:16:40 +00:00
Treehugger Robot
2499b23040 Merge "Re-enable the POSIX header tests for musl." am: 0ad996d4eb
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2394534

Change-Id: I12d5e39a5fe38d52353d87d2f39413743920a87d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-20 03:45:30 +00:00
Treehugger Robot
0ad996d4eb Merge "Re-enable the POSIX header tests for musl." 2023-01-20 02:57:33 +00:00
Treehugger Robot
90d0bf5b45 Merge "Add #ifdefs to make POSIX header tests pass for musl" am: c3952c9059
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2394538

Change-Id: If35b65328220a2874abfb415746640f6a64d71ab
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-19 22:05:27 +00:00
Elliott Hughes
d05de20794 Re-enable the POSIX header tests for musl.
Bug: http://b/265874089
Test: treehugger
Change-Id: I05892d4a57fcceab0322c910d6482929b82bc5ee
2023-01-19 21:39:37 +00:00
Treehugger Robot
c3952c9059 Merge "Add #ifdefs to make POSIX header tests pass for musl" 2023-01-19 21:31:25 +00:00
Elliott Hughes
357908ddf6 Defer to getpagesize() in sysconf().
It makes sense that callers to getauxval() should have to pay for a
search --- that's exactly what they're asking for. But it seems silly
and unfair for the same to be true of sysconf() --- that's just an
implementation detail. Call getpagesize() directly instead.

Test: treehugger
Change-Id: I327adc55ace73bc6da68c4b34bf829d377bcbd1a
2023-01-19 21:30:26 +00:00
Colin Cross
b6830ca1fc Add #ifdefs to make POSIX header tests pass for musl
Bug: 265874089
Test: m USE_HOST_MUSL=true libbionic_tests_headers_posix
Change-Id: I6ae3ed3b91d5389f838b4a4f66c86bb00a27561a
2023-01-19 11:28:28 -08:00
Treehugger Robot
77ad5a3efa Merge "Link to the best relative relocations docs I know of." am: 806d2e71d7
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2394537

Change-Id: Ic4465587d2231abb8f05c3c77aea08c70d08e142
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-19 02:16:04 +00:00
Christopher Ferris
07904a6367 Merge "Only run mallopt_smoke test on bionic." am: 8b42ba6bf2
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2394535

Change-Id: If644053a606e074897964a3fabb1108bed2e7e02
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-19 02:15:17 +00:00
Treehugger Robot
806d2e71d7 Merge "Link to the best relative relocations docs I know of." 2023-01-19 01:22:03 +00:00
Christopher Ferris
8b42ba6bf2 Merge "Only run mallopt_smoke test on bionic." 2023-01-19 01:21:55 +00:00
Elliott Hughes
bb1cb03ad1 Link to the best relative relocations docs I know of.
Bug: https://github.com/android/ndk/discussions/1831
Test: N/A
Change-Id: Ida6d16a51f133ce3251db6ef8a25f4e1a8f2496e
2023-01-18 23:26:58 +00:00
Christopher Ferris
2ef59371ff Only run mallopt_smoke test on bionic.
Even though glibc has mallopt, there is no way to guarantee that
we use an invalid argument. Since this test is only really useful
for bionic, only run it on bionic.

Test: Ran glibc and verified the test is skipped.
Change-Id: If991e8804b21c83f3d7e3b15a0b60e48da331567
2023-01-18 15:08:37 -08:00
Christopher Ferris
58b19614cb Merge "Add aliases for backtrace related options." am: cc66ba30e5
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2382334

Change-Id: I555bcd4a504985f3b97c0765f332a579ad9ea39b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-18 19:27:16 +00:00
Christopher Ferris
cc66ba30e5 Merge "Add aliases for backtrace related options." 2023-01-18 18:57:11 +00:00
Treehugger Robot
7e29479bc5 Merge "Nullability check for termios module" am: 3f44f6b472
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2389832

Change-Id: Ie4fcaf32e4a31a57c1a9da1c068e146f376b68d3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-17 19:44:44 +00:00
Treehugger Robot
3f44f6b472 Merge "Nullability check for termios module" 2023-01-17 18:58:24 +00:00
zijunzhao
4730fb6cc8 Nullability check for termios module
Bugs: b/245972273
Test: None
Change-Id: Ic91fa6ebc87bff513740c1b757a726505e4dae0e
2023-01-14 01:01:51 +00:00
Treehugger Robot
ead933d373 Merge "Nullability check for execinfo module" am: e87938c435
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2386455

Change-Id: If149a33bc4fe4b13b83f63c865f0d91da54a81ff
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-13 17:19:24 +00:00
Treehugger Robot
e87938c435 Merge "Nullability check for execinfo module" 2023-01-13 16:37:41 +00:00