aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlukyan <lukyan@yandex-team.com>2023-11-09 01:16:59 +0300
committerlukyan <lukyan@yandex-team.com>2023-11-09 01:38:24 +0300
commitedd38230e267c84d69ab81d1061df55eb5f22194 (patch)
treea3c6e78e3f19166488a1904303ce9998173b54a1
parentc6e5c42ae9a0d28e10f881f66c3de54ae039b8ce (diff)
downloadydb-edd38230e267c84d69ab81d1061df55eb5f22194.tar.gz
Temporarily restore noinline for TLS accessors
-rw-r--r--yt/yt/core/concurrency/fiber_scheduler_thread.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt/yt/core/concurrency/fiber_scheduler_thread.cpp b/yt/yt/core/concurrency/fiber_scheduler_thread.cpp
index d8e80afd48..bc605647cb 100644
--- a/yt/yt/core/concurrency/fiber_scheduler_thread.cpp
+++ b/yt/yt/core/concurrency/fiber_scheduler_thread.cpp
@@ -91,12 +91,12 @@ static YT_THREAD_LOCAL(TFiberContext*) FiberContext;
// Forbid inlining these accessors to prevent the compiler from
// miss-optimizing TLS access in presence of fiber context switches.
-TFiberContext* TryGetFiberContext()
+Y_NO_INLINE TFiberContext* TryGetFiberContext()
{
return FiberContext;
}
-void SetFiberContext(TFiberContext* context)
+Y_NO_INLINE void SetFiberContext(TFiberContext* context)
{
FiberContext = context;
}