Commit graph

43247 commits

Author SHA1 Message Date
Android Build Coastguard Worker
aa9dd04911 Snap for 11881322 from 077af2a51a to 24Q3-release
Change-Id: Ib38970f33fceab4b32b3358974f05644af2458eb
2024-05-23 23:00:51 +00:00
Ryan Prichard
077af2a51a Merge "Revert^2 "Switch the loader to a noexcept version of libc++"" into main am: d475ee45aa am: 39a8277ac0
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3073094

Change-Id: I0bd961a848738fbc06e29cf1c29e2ca259945f4c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-23 00:36:13 +00:00
Ryan Prichard
39a8277ac0 Merge "Revert^2 "Switch the loader to a noexcept version of libc++"" into main am: d475ee45aa
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3073094

Change-Id: Ibdf0247d840c5dda5b26ae90410e40ba789d80f1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-23 00:18:27 +00:00
Ryan Prichard
d475ee45aa Merge "Revert^2 "Switch the loader to a noexcept version of libc++"" into main 2024-05-22 23:59:04 +00:00
Android Build Coastguard Worker
ed2b632c48 Snap for 11876238 from 47cb2775b7 to 24Q3-release
Change-Id: Ifc79ee0982ff4757e2b017581a72cc7c38d8facc
2024-05-22 23:01:17 +00:00
Steven Moreland
9ac6de1863 Merge "bionic: max_android_page_size to 16384" into main am: 5dd8ce7284 am: 8e73c1fe6b
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3063230

Change-Id: I74180ef8083100567fd0a4099ecc490f8e5a4d51
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-22 22:22:14 +00:00
Steven Moreland
8e73c1fe6b Merge "bionic: max_android_page_size to 16384" into main am: 5dd8ce7284
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3063230

Change-Id: I10bd6cb14df5f04b423137e10b67234548ea72cf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-22 22:01:39 +00:00
Steven Moreland
5dd8ce7284 Merge "bionic: max_android_page_size to 16384" into main 2024-05-22 21:41:54 +00:00
Christopher Ferris
7370db0af3 Merge "Read maps data before using and do safe reads." into main am: dc82bd1aae am: 5b573d3a7a
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3093022

Change-Id: Id1a8a28a8966feb3ee823f035df4ad502e7aca94
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-22 21:37:15 +00:00
Christopher Ferris
5b573d3a7a Merge "Read maps data before using and do safe reads." into main am: dc82bd1aae
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3093022

Change-Id: I95b991e11e27590c7c3f4aeef39de2a4e94e32d5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-22 21:08:00 +00:00
Christopher Ferris
dc82bd1aae Merge "Read maps data before using and do safe reads." into main 2024-05-22 20:46:34 +00:00
Steven Moreland
8401230be6 bionic: max_android_page_size to 16384
The maximum page size Android supports
now is 16384, and Art only supports 16kB,
so we can save a bit of space.

Bug: 332556665
Test: N/A
Change-Id: I23df607bcc5cf9e96d7b6a66169413cd1a883f7e
2024-05-22 18:29:04 +00:00
Elliott Hughes
47cb2775b7 Merge "Don't leak a thread when timer_create() fails." into main am: 7c22b4c372 am: bab0010100
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3093205

Change-Id: I590e40a6eb195e83ad5f50535d819522a4e5b048
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-22 12:14:00 +00:00
Elliott Hughes
bab0010100 Merge "Don't leak a thread when timer_create() fails." into main am: 7c22b4c372
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3093205

Change-Id: I67317733ecc70cafbf4df827f93bc6821ca9c2d4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-22 11:57:30 +00:00
Elliott Hughes
7c22b4c372 Merge "Don't leak a thread when timer_create() fails." into main 2024-05-22 11:40:39 +00:00
Satish Yalla
10b0f112e0 Merge "Revert "Convert Android.mk under bionic to Android.bp"" into main am: b5c54ac8b6 am: 846af391c4
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3095943

Change-Id: Ie97a0571cd637c0785e4aaf8ecaee8d84327655b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-22 02:19:31 +00:00
Satish Yalla
846af391c4 Merge "Revert "Convert Android.mk under bionic to Android.bp"" into main am: b5c54ac8b6
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3095943

Change-Id: I0109afa7f1ed6028313f5f1f7221500ca7c17196
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-22 02:02:32 +00:00
Satish Yalla
b5c54ac8b6 Merge "Revert "Convert Android.mk under bionic to Android.bp"" into main 2024-05-22 01:46:05 +00:00
Treehugger Robot
3dde44fb54 Merge "Convert Android.mk under bionic to Android.bp" into main am: d9864c21eb am: 05003aa452
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3057627

Change-Id: I9e2593de4e58ae5499a6fbf695baea6c9f6f1e2c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-22 00:43:28 +00:00
Christopher Ferris
65e349d6c8 Read maps data before using and do safe reads.
Rather than only updating the maps when a pc can't be found, always update
the maps before using them. This avoids issues where the maps change
and it could cause a crash reading from a map that has been modified.

This assumes that executed code never gets unloaded, or that the
code is unloaded so infrequently that it doesn't matter. This happens
because the pcs for the backtraces are gathered as the program runs
and those pcs are symbolized and made into relative pcs at a later time.

Also, add safe reading of the elf data when necessary to avoid any
crashes if maps are changing while this is running.

Since the MapEntry objects can be deleted, copy the values for
the current map in the backtrace code to detect when in our own code
instead of keeping a pointer.

Bug: 340988785

Test: malloc_debug unit/system tests pass.
Test: libmemunreachable tests pass.
Change-Id: Ica2ba50a5bcf9e19c7e4033e29a5a67a1847d1a6
2024-05-21 17:41:22 -07:00
Priyanka Advani
1e32ad88ff Revert "Convert Android.mk under bionic to Android.bp"
This reverts commit 12b2042a3f.

Reason for revert: Droidmonitor triggered revert due to build breakage in b/342029467. Will be verifying through ABTD before submission.

Change-Id: I801b4999047732b86985f0be2f4aae90b9998e4a
2024-05-22 00:34:12 +00:00
Treehugger Robot
05003aa452 Merge "Convert Android.mk under bionic to Android.bp" into main am: d9864c21eb
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3057627

Change-Id: I4e5c7ec8533b9c3cb1cc962ceeb75e757ed72819
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-22 00:24:23 +00:00
Treehugger Robot
d9864c21eb Merge "Convert Android.mk under bionic to Android.bp" into main 2024-05-22 00:07:46 +00:00
Android Build Coastguard Worker
7de7b27cf1 Snap for 11869550 from 39c816e5d6 to 24Q3-release
Change-Id: I0ba7386799e4888f8738d11843b4db319c57845a
2024-05-21 23:01:16 +00:00
Elliott Hughes
1ff9356f38 Merge "execinfo.cpp: Add a __riscv case." into main am: b7e98953b0 am: d160f86aba
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3094343

Change-Id: Ie60cad0a588d8e10df0454fae489519c13af04a7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-21 21:59:41 +00:00
Elliott Hughes
c793bc00f5 Don't leak a thread when timer_create() fails.
We do the same thing in pthread_create().

This has the nice side-effect of letting us move part of the child setup that we were doing in the parent into the child where it belongs.

Bug: https://issuetracker.google.com/340125671
Change-Id: Ibe646d5ca9066f487d08fd40f004550349e8a02e
2024-05-21 21:35:49 +00:00
Elliott Hughes
d160f86aba Merge "execinfo.cpp: Add a __riscv case." into main am: b7e98953b0
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3094343

Change-Id: I5e72d9494c71bb925d9858460b7e8f6415241bba
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-21 21:33:12 +00:00
Elliott Hughes
b7e98953b0 Merge "execinfo.cpp: Add a __riscv case." into main 2024-05-21 21:07:04 +00:00
Elliott Hughes
5bd167737f Merge "linker benchmark: our riscv64 toolchain has lga now." into main am: 021cd6d2ca am: 7663edbd84
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3092846

Change-Id: I61c0bcebd2acd27824a54c3b6613d2b5fe0d4197
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-21 18:31:17 +00:00
Elliott Hughes
7663edbd84 Merge "linker benchmark: our riscv64 toolchain has lga now." into main am: 021cd6d2ca
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3092846

Change-Id: Id60eae03a84cafe0b3627eb35fcbb88b4d87a70b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-21 18:07:19 +00:00
Elliott Hughes
021cd6d2ca Merge "linker benchmark: our riscv64 toolchain has lga now." into main 2024-05-21 17:45:21 +00:00
Elliott Hughes
c2a4e89139 linker benchmark: our riscv64 toolchain has lga now.
This doesn't make any difference, but it does let us delete an obsolete comment.

Change-Id: Ibf81978bb7883e8c6b86c1f6c459ff70bca3f682
2024-05-21 15:37:39 +00:00
Elliott Hughes
ccc4dbf135 execinfo.cpp: Add a __riscv case.
This makes this TraceFunction() more like trace_function() in malloc_debug. I'll leave whether we can collapse these into one implementation as an open question for now...

Change-Id: I3981e4114244d49f8dbae1d3b776a7e9c32be688
2024-05-21 15:11:15 +00:00
Elliott Hughes
39c816e5d6 Merge "Tidy and document the inline/__inline/__inline__ situation." into main am: a13b3b32e0 am: 886e93a740
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3086727

Change-Id: Ia6ffb3ee43476716f8bc3295ace89c7022f2b7c7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-21 12:29:11 +00:00
Elliott Hughes
886e93a740 Merge "Tidy and document the inline/__inline/__inline__ situation." into main am: a13b3b32e0
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3086727

Change-Id: Ia093c5b3ababcea478b441cbc61d5f211b5f81bd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-21 12:09:19 +00:00
Elliott Hughes
a13b3b32e0 Merge "Tidy and document the inline/__inline/__inline__ situation." into main 2024-05-21 11:49:20 +00:00
Android Build Coastguard Worker
34a40e89fe Snap for 11865526 from 19bf0f4839 to 24Q3-release
Change-Id: Ic1450270b9b6260564adb62b6b5517326cdfa957
2024-05-21 01:00:49 +00:00
Elliott Hughes
19bf0f4839 Merge "utils.h: quote regex match failure messages." into main am: e852abd1fc am: 831c924a1c
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3092844

Change-Id: Ieb30035c2610aa93c0b33ce8c300eb93f0788542
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-20 19:09:22 +00:00
Elliott Hughes
831c924a1c Merge "utils.h: quote regex match failure messages." into main am: e852abd1fc
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3092844

Change-Id: Ibd5d6462e9d46d9bb0775919ad3ce2737e4dbbe4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-20 18:50:35 +00:00
Elliott Hughes
e852abd1fc Merge "utils.h: quote regex match failure messages." into main 2024-05-20 18:21:27 +00:00
Elliott Hughes
c2d1613407 Merge "Add riscv64 implementation of __get_bionic_tcb_for_thread()." into main am: 0b29ce212a am: 4172d9d305
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3094537

Change-Id: Id6cecc1b6dbbfdd4244473ad8d55bc4377974710
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-20 14:04:41 +00:00
Elliott Hughes
4172d9d305 Merge "Add riscv64 implementation of __get_bionic_tcb_for_thread()." into main am: 0b29ce212a
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3094537

Change-Id: I5056ce2b606a3b08b52cbaf56277a638922915df
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-20 13:46:59 +00:00
Elliott Hughes
0b29ce212a Merge "Add riscv64 implementation of __get_bionic_tcb_for_thread()." into main 2024-05-20 13:26:22 +00:00
Elliott Hughes
abbec338f9 utils.h: quote regex match failure messages.
This still won't be easy to read, but it should at least be "less bad".

Change-Id: I14ecf06ffcc54a4bb48003e8cba3b731d8a0073d
2024-05-20 13:12:09 +00:00
kellyhung
12b2042a3f Convert Android.mk under bionic to Android.bp
Bug: b/311284462
Test: m bionic-compile-time-tests1-clang++; m bionic-compile-time-tests2-clang++

Change-Id: I538dda9f56f0c85bf3779cc55f721a7e1c1fcc5a
2024-05-20 01:13:54 +08:00
Android Build Coastguard Worker
c45b055a28 Snap for 11859356 from fb104fba30 to 24Q3-release
Change-Id: Ia584237aeff524ec97d3f9a0732c6316ced8e33a
2024-05-18 03:00:41 +00:00
Elliott Hughes
09c660bf75 Add riscv64 implementation of __get_bionic_tcb_for_thread().
Bug: http://b/339287219
Change-Id: I2b6f2603cd34e1575d575565c369663bfcdf9be1
2024-05-17 17:18:57 +00:00
Treehugger Robot
fb104fba30 Merge "linker: update non-PIE error message." into main am: e78370e5f8 am: 0fc8dc3d37
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3093040

Change-Id: Ia581967fbe7fd3fde0abc06a80b9748f4c604e0c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-17 14:28:52 +00:00
Treehugger Robot
0fc8dc3d37 Merge "linker: update non-PIE error message." into main am: e78370e5f8
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3093040

Change-Id: I832c863fe7804c7faf10d5f598126cf15662a24f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-17 14:11:48 +00:00
Treehugger Robot
e78370e5f8 Merge "linker: update non-PIE error message." into main 2024-05-17 13:51:17 +00:00