diff options
author | Tor Brede Vekterli <vekterli@yahooinc.com> | 2022-06-02 09:48:37 +0000 |
---|---|---|
committer | Tor Brede Vekterli <vekterli@yahooinc.com> | 2022-06-02 14:20:57 +0000 |
commit | d0701928d86487e5331bd8159cf7da49004edbef (patch) | |
tree | 179eaec4ca06cfeae581ed798aa0f7b5e8518b46 /fastos | |
parent | 714d3bf6b0a4b60dde75143c3062cdddf69af093 (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.h | 2 | ||||
-rw-r--r-- | fastos/src/vespa/fastos/unix_thread.cpp | 2 | ||||
-rw-r--r-- | fastos/src/vespa/fastos/unix_thread.h | 2 |
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 (); }; |