From 6e0633bf6f3c0e93a25db288f66bfef225f17102 Mon Sep 17 00:00:00 2001 From: Daniel Smith Date: Wed, 15 Jul 2020 23:24:38 +0000 Subject: [PATCH] Mark as noexcept since throwing would lead to deadlocks --- flow/FastAlloc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flow/FastAlloc.h b/flow/FastAlloc.h index 2a730a1367..ad02875045 100644 --- a/flow/FastAlloc.h +++ b/flow/FastAlloc.h @@ -133,7 +133,7 @@ private: }; static thread_local ThreadData threadData; static thread_local bool threadInitialized; - static GlobalData* globalData() { + static GlobalData* globalData() noexcept { #ifdef VALGRIND ANNOTATE_RWLOCK_ACQUIRED(vLock, 1); #endif