Revert "Set SA_SIGINFO. Rename thread to include perfetto."
This reverts commit 73ffa57c7fbeaa131ba34777aa1622ee1896eb01.
Reason for revert: Broke ART BuildBots.
Change-Id: Ie67adda6fa24ef262f9a08be55aa1a70cb7591b8
diff --git a/perfetto_hprof/perfetto_hprof.cc b/perfetto_hprof/perfetto_hprof.cc
index 4f20094..5536b20 100644
--- a/perfetto_hprof/perfetto_hprof.cc
+++ b/perfetto_hprof/perfetto_hprof.cc
@@ -528,7 +528,6 @@
}
struct sigaction act = {};
- act.sa_flags = SA_SIGINFO | SA_RESTART;
act.sa_sigaction = [](int, siginfo_t*, void*) {
if (write(g_signal_pipe_fds[1], kByte, sizeof(kByte)) == -1) {
PLOG(ERROR) << "Failed to trigger heap dump";
@@ -547,17 +546,17 @@
std::thread th([] {
art::Runtime* runtime = art::Runtime::Current();
if (!runtime) {
- LOG(FATAL_WITHOUT_ABORT) << "no runtime in perfetto_hprof_listener";
+ LOG(FATAL_WITHOUT_ABORT) << "no runtime in hprof_listener";
return;
}
- if (!runtime->AttachCurrentThread("perfetto_hprof_listener", /*as_daemon=*/ true,
+ if (!runtime->AttachCurrentThread("hprof_listener", /*as_daemon=*/ true,
runtime->GetSystemThreadGroup(), /*create_peer=*/ false)) {
LOG(ERROR) << "failed to attach thread.";
return;
}
art::Thread* self = art::Thread::Current();
if (!self) {
- LOG(FATAL_WITHOUT_ABORT) << "no thread in perfetto_hprof_listener";
+ LOG(FATAL_WITHOUT_ABORT) << "no thread in hprof_listener";
return;
}
{