summaryrefslogtreecommitdiffstats
path: root/fastos
diff options
context:
space:
mode:
authorTor Brede Vekterli <vekterli@yahooinc.com>2022-06-02 09:48:37 +0000
committerTor Brede Vekterli <vekterli@yahooinc.com>2022-06-02 14:20:57 +0000
commitd0701928d86487e5331bd8159cf7da49004edbef (patch)
tree179eaec4ca06cfeae581ed798aa0f7b5e8518b46 /fastos
parent714d3bf6b0a4b60dde75143c3062cdddf69af093 (diff)
Let deadlock detector dump stack of potentially deadlocked threads
Enable cross-thread stack tracing as part of signal handler init code in both storage and proton daemons. Make deadlock detector parameters live configurable. Remove existing `restart` config definition annotations to reflect this. Remove dumping of bucket DB locks which hasn't really worked for a long time now.
Diffstat (limited to 'fastos')
-rw-r--r--fastos/src/vespa/fastos/thread.h2
-rw-r--r--fastos/src/vespa/fastos/unix_thread.cpp2
-rw-r--r--fastos/src/vespa/fastos/unix_thread.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/fastos/src/vespa/fastos/thread.h b/fastos/src/vespa/fastos/thread.h
index b3627d99d31..95737e9d079 100644
--- a/fastos/src/vespa/fastos/thread.h
+++ b/fastos/src/vespa/fastos/thread.h
@@ -381,7 +381,7 @@ public:
/**
* Returns the id of this thread.
*/
- virtual FastOS_ThreadId GetThreadId ()=0;
+ virtual FastOS_ThreadId GetThreadId () const noexcept = 0;
};
diff --git a/fastos/src/vespa/fastos/unix_thread.cpp b/fastos/src/vespa/fastos/unix_thread.cpp
index a45d90426ef..aac4c4d189c 100644
--- a/fastos/src/vespa/fastos/unix_thread.cpp
+++ b/fastos/src/vespa/fastos/unix_thread.cpp
@@ -102,7 +102,7 @@ FastOS_UNIX_Thread::~FastOS_UNIX_Thread()
}
}
-FastOS_ThreadId FastOS_UNIX_Thread::GetThreadId ()
+FastOS_ThreadId FastOS_UNIX_Thread::GetThreadId () const noexcept
{
return _handle;
}
diff --git a/fastos/src/vespa/fastos/unix_thread.h b/fastos/src/vespa/fastos/unix_thread.h
index 18e840183cb..b2f666060ca 100644
--- a/fastos/src/vespa/fastos/unix_thread.h
+++ b/fastos/src/vespa/fastos/unix_thread.h
@@ -36,7 +36,7 @@ public:
~FastOS_UNIX_Thread();
- FastOS_ThreadId GetThreadId () override;
+ FastOS_ThreadId GetThreadId () const noexcept override;
static bool CompareThreadIds (FastOS_ThreadId a, FastOS_ThreadId b);
static FastOS_ThreadId GetCurrentThreadId ();
};