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
Elliott Hughes
ed292d8f6d
Merge "linker: remove useless comments." into main am: bab8f345a6
am: c5d0a99496
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3093199
Change-Id: If251b44779446e5f8b560cdd440da0eb91c21349
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-17 12:41:57 +00:00
Elliott Hughes
c5d0a99496
Merge "linker: remove useless comments." into main am: bab8f345a6
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3093199
Change-Id: Iab70f941b147387b101399caf7c8fd5c881a7a52
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-17 12:29:30 +00:00
Elliott Hughes
71abb3dcf4
linker: update non-PIE error message.
...
Also remove the commentary, which isn't really relevant in 2024.
Change-Id: I9d17159daddc6717a2255d956c9a90820fe4d17a
2024-05-17 12:16:16 +00:00
Elliott Hughes
bab8f345a6
Merge "linker: remove useless comments." into main
2024-05-17 12:13:04 +00:00
Android Build Coastguard Worker
cda7aabda1
Snap for 11853201 from 03b2187996
to 24Q3-release
...
Change-Id: Ibdf0fb1198a7ab6a16fa2d45960dd081bc79cfbf
2024-05-17 01:00:36 +00:00
Elliott Hughes
03b2187996
Merge "Minor <android/dlext.h> documentation improvements." into main am: 88908db595
am: 05b5f5b3b7
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3092840
Change-Id: I6e188d1260584949249069cbf8691c3450581237
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-16 22:01:22 +00:00
Elliott Hughes
322e9ecc3e
linker: remove useless comments.
...
The API level in the code is more meaningful to more people anyway.
Change-Id: Ifc6a45fc16039881aa7863fbff09b5902e139d54
2024-05-16 21:46:24 +00:00
Elliott Hughes
05b5f5b3b7
Merge "Minor <android/dlext.h> documentation improvements." into main am: 88908db595
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3092840
Change-Id: Ia39aac36e4a95a2328666bf76a19a58e707497df
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-16 21:43:29 +00:00
Elliott Hughes
88908db595
Merge "Minor <android/dlext.h> documentation improvements." into main
2024-05-16 21:21:24 +00:00
Treehugger Robot
bdce06247a
Merge "Update <android/api-level.h>." into main am: bdba54d9c5
am: 8bd8f72e75
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3092183
Change-Id: Ia03c01d90194d3c34745a0be5b3e53cf51327458
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-16 21:16:23 +00:00
Treehugger Robot
8bd8f72e75
Merge "Update <android/api-level.h>." into main am: bdba54d9c5
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3092183
Change-Id: I6dec44980bcdec66c4e78c2c1468647f41f964bb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-16 20:59:23 +00:00
Treehugger Robot
a1509be1e9
Merge "Update <system_properties.h> documentation." into main am: 923b48c1c5
am: bd3759fb78
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3092839
Change-Id: I5ef120d7d0927ff99739509b7b1f29b672230381
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-16 20:43:45 +00:00
Treehugger Robot
bdba54d9c5
Merge "Update <android/api-level.h>." into main
2024-05-16 20:35:55 +00:00
Treehugger Robot
bd3759fb78
Merge "Update <system_properties.h> documentation." into main am: 923b48c1c5
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3092839
Change-Id: I66db4d91cf5c5f2c87d62f56bb25cd7580a2e786
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-16 20:24:05 +00:00