aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-12-12 02:00:41 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-12-12 02:00:41 +0000
commit4022d0094d6b96e66ff21524d48efb6abb93bbd8 (patch)
treedcf6dc83d6ace4ce865d7f18f7295ce437be4fb6
parentfc465c78083138ee96a30244672bf5e1c21022fe (diff)
parent7e52c94edcf058278e87474a0e749796ef0508de (diff)
downloadbionic-4022d0094d6b96e66ff21524d48efb6abb93bbd8.tar.gz
Snap for 11206181 from 7e52c94edcf058278e87474a0e749796ef0508de to 24Q1-release
Change-Id: I7546bba8ab96785ade494988cf3cd30a95050788
-rw-r--r--libc/bionic/malloc_common_dynamic.cpp2
-rw-r--r--libc/private/bionic_globals.h1
-rw-r--r--libdl/Android.bp4
-rw-r--r--linker/linker_debuggerd_android.cpp1
-rw-r--r--tests/libs/Android.bp9
5 files changed, 4 insertions, 13 deletions
diff --git a/libc/bionic/malloc_common_dynamic.cpp b/libc/bionic/malloc_common_dynamic.cpp
index 792a11428..a6bf7a7bb 100644
--- a/libc/bionic/malloc_common_dynamic.cpp
+++ b/libc/bionic/malloc_common_dynamic.cpp
@@ -372,6 +372,7 @@ extern "C" const char* __scudo_get_stack_depot_addr();
extern "C" const char* __scudo_get_region_info_addr();
extern "C" const char* __scudo_get_ring_buffer_addr();
extern "C" size_t __scudo_get_ring_buffer_size();
+extern "C" size_t __scudo_get_stack_depot_size();
// Initializes memory allocation framework once per process.
static void MallocInitImpl(libc_globals* globals) {
@@ -385,6 +386,7 @@ static void MallocInitImpl(libc_globals* globals) {
__libc_shared_globals()->scudo_region_info = __scudo_get_region_info_addr();
__libc_shared_globals()->scudo_ring_buffer = __scudo_get_ring_buffer_addr();
__libc_shared_globals()->scudo_ring_buffer_size = __scudo_get_ring_buffer_size();
+ __libc_shared_globals()->scudo_stack_depot_size = __scudo_get_stack_depot_size();
#endif
// Prefer malloc debug since it existed first and is a more complete
diff --git a/libc/private/bionic_globals.h b/libc/private/bionic_globals.h
index 15b570de2..8ea7d4d66 100644
--- a/libc/private/bionic_globals.h
+++ b/libc/private/bionic_globals.h
@@ -130,6 +130,7 @@ struct libc_shared_globals {
const char* scudo_region_info = nullptr;
const char* scudo_ring_buffer = nullptr;
size_t scudo_ring_buffer_size = 0;
+ size_t scudo_stack_depot_size = 0;
HeapTaggingLevel initial_heap_tagging_level = M_HEAP_TAGGING_LEVEL_NONE;
bool initial_memtag_stack = false;
diff --git a/libdl/Android.bp b/libdl/Android.bp
index 762aeeffb..3bda8565c 100644
--- a/libdl/Android.bp
+++ b/libdl/Android.bp
@@ -226,10 +226,6 @@ cc_library {
"//apex_available:platform",
"com.android.runtime",
],
-
- lto: {
- never: true,
- },
}
ndk_library {
diff --git a/linker/linker_debuggerd_android.cpp b/linker/linker_debuggerd_android.cpp
index ab6fc30c4..444da78c2 100644
--- a/linker/linker_debuggerd_android.cpp
+++ b/linker/linker_debuggerd_android.cpp
@@ -44,6 +44,7 @@ static debugger_process_info get_process_info() {
.scudo_region_info = __libc_shared_globals()->scudo_region_info,
.scudo_ring_buffer = __libc_shared_globals()->scudo_ring_buffer,
.scudo_ring_buffer_size = __libc_shared_globals()->scudo_ring_buffer_size,
+ .scudo_stack_depot_size = __libc_shared_globals()->scudo_stack_depot_size,
};
}
diff --git a/tests/libs/Android.bp b/tests/libs/Android.bp
index b2f1debfb..0bef469da 100644
--- a/tests/libs/Android.bp
+++ b/tests/libs/Android.bp
@@ -1729,10 +1729,6 @@ cc_genrule {
" $(location soong_zip) -o $(out).unaligned -L 0 -C $(genDir)/zipdir -D $(genDir)/zipdir &&" +
" $(location bionic_tests_zipalign) 4096 $(out).unaligned $(out)",
- bazel_module: {
- // Depends on soong_zip, which is not available yet.
- bp2build_available: false
- },
}
cc_genrule {
@@ -1771,9 +1767,4 @@ cc_genrule {
" touch $(genDir)/zipdir/empty_file.txt &&" +
" $(location soong_zip) -o $(out).unaligned -L 0 -C $(genDir)/zipdir -D $(genDir)/zipdir &&" +
" $(location bionic_tests_zipalign) 4096 $(out).unaligned $(out)",
-
- bazel_module: {
- // Depends on soong_zip, which is not available yet.
- bp2build_available: false
- },
}