Merge "Fix the build with a newer LLVM." am: eed5e27c24
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2214887 Change-Id: Ic7622f413b4ec797a8721b0e14dafafce38d009c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
dcd275b3f8
2 changed files with 4 additions and 3 deletions
|
|
@ -1403,7 +1403,7 @@ TEST_F(CrasherTest, seccomp_crash_oom) {
|
||||||
// We can't actually generate a backtrace, just make sure that the process terminates.
|
// We can't actually generate a backtrace, just make sure that the process terminates.
|
||||||
}
|
}
|
||||||
|
|
||||||
__attribute__((noinline)) extern "C" bool raise_debugger_signal(DebuggerdDumpType dump_type) {
|
__attribute__((__noinline__)) extern "C" bool raise_debugger_signal(DebuggerdDumpType dump_type) {
|
||||||
siginfo_t siginfo;
|
siginfo_t siginfo;
|
||||||
siginfo.si_code = SI_QUEUE;
|
siginfo.si_code = SI_QUEUE;
|
||||||
siginfo.si_pid = getpid();
|
siginfo.si_pid = getpid();
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
#include <gtest/gtest.h>
|
#include <gtest/gtest.h>
|
||||||
#include <utils/CallStack.h>
|
#include <utils/CallStack.h>
|
||||||
|
|
||||||
[[clang::noinline]] extern "C" void CurrentCaller(android::String8& backtrace) {
|
__attribute__((__noinline__)) extern "C" void CurrentCaller(android::String8& backtrace) {
|
||||||
android::CallStack cs;
|
android::CallStack cs;
|
||||||
cs.update();
|
cs.update();
|
||||||
backtrace = cs.toString();
|
backtrace = cs.toString();
|
||||||
|
|
@ -35,7 +35,8 @@ TEST(CallStackTest, current_backtrace) {
|
||||||
ASSERT_NE(-1, backtrace.find("(CurrentCaller")) << "Full backtrace:\n" << backtrace;
|
ASSERT_NE(-1, backtrace.find("(CurrentCaller")) << "Full backtrace:\n" << backtrace;
|
||||||
}
|
}
|
||||||
|
|
||||||
[[clang::noinline]] extern "C" void ThreadBusyWait(std::atomic<pid_t>* tid, volatile bool* done) {
|
__attribute__((__noinline__)) extern "C" void ThreadBusyWait(std::atomic<pid_t>* tid,
|
||||||
|
volatile bool* done) {
|
||||||
*tid = android::base::GetThreadId();
|
*tid = android::base::GetThreadId();
|
||||||
while (!*done) {
|
while (!*done) {
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue