commit | 5f45c18a7fd77a1a9daf453c6dea9fceddf0184c | [log] [tgz] |
---|---|---|
author | Peter Collingbourne <pcc@google.com> | Tue Jan 14 17:59:41 2020 -0800 |
committer | Peter Collingbourne <pcc@google.com> | Mon Feb 03 10:30:45 2020 -0800 |
tree | 0d37e47fa38981e5f895a290c3d09a834b60abd4 | |
parent | bdb678c9bdad161d033b236f261ba1cb299fada2 [diff] [blame] |
Add an android_unsafe_frame_pointer_chase function. This function will be used by Scudo and GWP-ASan to efficiently collect stack traces for frames built with frame pointers. Bug: 135634846 Bug: 135772972 Change-Id: Ic63efdbafe11dfbb1226b5b4b403d53c4dbf28f3 Merged-In: Ic63efdbafe11dfbb1226b5b4b403d53c4dbf28f3
diff --git a/libc/bionic/__libc_init_main_thread.cpp b/libc/bionic/__libc_init_main_thread.cpp index 94cf1f8..56a8488 100644 --- a/libc/bionic/__libc_init_main_thread.cpp +++ b/libc/bionic/__libc_init_main_thread.cpp
@@ -81,6 +81,7 @@ __set_tls(&temp_tcb->tls_slot(0)); main_thread.tid = __getpid(); main_thread.set_cached_pid(main_thread.tid); + main_thread.stack_top = reinterpret_cast<uintptr_t>(args.argv); } // This code is used both by each new pthread and the code that initializes the main thread.