pg 1 year ago
parent
commit
fb1cf50f70
1 changed files with 2 additions and 2 deletions
  1. 2 2
      yt/yt/core/concurrency/fiber_scheduler_thread.cpp

+ 2 - 2
yt/yt/core/concurrency/fiber_scheduler_thread.cpp

@@ -91,12 +91,12 @@ 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;
 }