diff options
author | robot-piglet <[email protected]> | 2024-02-17 05:46:54 +0300 |
---|---|---|
committer | robot-piglet <[email protected]> | 2024-02-17 06:03:44 +0300 |
commit | dc2fcc6df33d50b589c3e6a7cb73cf7e72c2641b (patch) | |
tree | b6cabe9dcd1d9c9261dfbb9538227ddb966128f2 | |
parent | 3d17e008813683b8ec10c81b3ce5e26b3e3a2d88 (diff) |
Intermediate changes
-rw-r--r-- | contrib/tools/python/src/Modules/posixmodule.c | 2 | ||||
-rw-r--r-- | yt/yt/core/rpc/server_detail.cpp | 1 | ||||
-rw-r--r-- | yt/yt/core/threading/thread.cpp | 6 | ||||
-rw-r--r-- | yt/yt/library/program/helpers.cpp | 16 |
4 files changed, 7 insertions, 18 deletions
diff --git a/contrib/tools/python/src/Modules/posixmodule.c b/contrib/tools/python/src/Modules/posixmodule.c index 25b0ddf668d..6c147e0a867 100644 --- a/contrib/tools/python/src/Modules/posixmodule.c +++ b/contrib/tools/python/src/Modules/posixmodule.c @@ -32,7 +32,7 @@ #endif #if defined(__VMS) -# include <unixio.h> +# error #include <unixio.h> #endif /* defined(__VMS) */ #ifdef __cplusplus diff --git a/yt/yt/core/rpc/server_detail.cpp b/yt/yt/core/rpc/server_detail.cpp index 46bfe2152b8..018fe746cb2 100644 --- a/yt/yt/core/rpc/server_detail.cpp +++ b/yt/yt/core/rpc/server_detail.cpp @@ -882,6 +882,7 @@ void TServerBase::ApplyConfig() newAppliedConfig->EnableErrorCodeCounting = DynamicConfig_->EnableErrorCodeCounting.value_or(StaticConfig_->EnableErrorCodeCounting); newAppliedConfig->EnablePerUserProfiling = DynamicConfig_->EnablePerUserProfiling.value_or(StaticConfig_->EnablePerUserProfiling); newAppliedConfig->HistogramTimerProfiling = DynamicConfig_->HistogramTimerProfiling.value_or(StaticConfig_->HistogramTimerProfiling); + newAppliedConfig->TracingMode = DynamicConfig_->TracingMode.value_or(StaticConfig_->TracingMode); newAppliedConfig->Services = StaticConfig_->Services; for (const auto& [name, node] : DynamicConfig_->Services) { diff --git a/yt/yt/core/threading/thread.cpp b/yt/yt/core/threading/thread.cpp index 4b04e154bd9..87488626506 100644 --- a/yt/yt/core/threading/thread.cpp +++ b/yt/yt/core/threading/thread.cpp @@ -293,12 +293,12 @@ void TThread::ConfigureSignalHandlerStack() // The size of of the custom stack to be provided for signal handlers. constexpr size_t SignalHandlerStackSize = 16_KB; - YT_THREAD_LOCAL(std::array<char, SignalHandlerStackSize>) Stack; + YT_THREAD_LOCAL(std::unique_ptr<char[]>) Stack = std::make_unique<char[]>(SignalHandlerStackSize); stack_t stack{ - .ss_sp = GetTlsRef(Stack).data(), + .ss_sp = GetTlsRef(Stack).get(), .ss_flags = 0, - .ss_size = GetTlsRef(Stack).size(), + .ss_size = SignalHandlerStackSize, }; YT_VERIFY(sigaltstack(&stack, nullptr) == 0); #endif diff --git a/yt/yt/library/program/helpers.cpp b/yt/yt/library/program/helpers.cpp index 2fdf0337911..8160cac9b39 100644 --- a/yt/yt/library/program/helpers.cpp +++ b/yt/yt/library/program/helpers.cpp @@ -177,8 +177,7 @@ void ConfigureTCMalloc(const TTCMallocConfigPtr& config) } } -template <class TConfig> -void ConfigureSingletonsImpl(const TConfig& config) +void ConfigureSingletons(const TSingletonsConfigPtr& config) { SetSpinWaitSlowPathLoggingThreshold(config->SpinWaitSlowPathLoggingThreshold); @@ -235,13 +234,7 @@ void ConfigureSingletonsImpl(const TConfig& config) NYson::SetProtobufInteropConfig(config->ProtobufInterop); } -void ConfigureSingletons(const TSingletonsConfigPtr& config) -{ - ConfigureSingletonsImpl(config); -} - -template <class TStaticConfig, class TDynamicConfig> -void ReconfigureSingletonsImpl(const TStaticConfig& config, const TDynamicConfig& dynamicConfig) +void ReconfigureSingletons(const TSingletonsConfigPtr& config, const TSingletonsDynamicConfigPtr& dynamicConfig) { SetSpinWaitSlowPathLoggingThreshold(dynamicConfig->SpinWaitSlowPathLoggingThreshold.value_or(config->SpinWaitSlowPathLoggingThreshold)); @@ -279,11 +272,6 @@ void ReconfigureSingletonsImpl(const TStaticConfig& config, const TDynamicConfig NYson::SetProtobufInteropConfig(config->ProtobufInterop->ApplyDynamic(dynamicConfig->ProtobufInterop)); } -void ReconfigureSingletons(const TSingletonsConfigPtr& config, const TSingletonsDynamicConfigPtr& dynamicConfig) -{ - ReconfigureSingletonsImpl(config, dynamicConfig); -} - template <class TConfig> void StartDiagnosticDumpImpl(const TConfig& config) { |