diff options
| author | Dan Engelbrecht <[email protected]> | 2024-08-07 13:46:34 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2024-08-07 13:46:34 +0200 |
| commit | 159f1cb99647f936ed6946586b7541ea0c65efec (patch) | |
| tree | f18302ea2c8d900dae6b98d6528412d2e6dfd03b /src/zenserver/zenserver.cpp | |
| parent | stop exceptions from leaking on threaded work (#102) (diff) | |
| download | zen-159f1cb99647f936ed6946586b7541ea0c65efec.tar.xz zen-159f1cb99647f936ed6946586b7541ea0c65efec.zip | |
add gc single threaded option (#104)
* add option to force gcv2 to run single threaded
Diffstat (limited to 'src/zenserver/zenserver.cpp')
| -rw-r--r-- | src/zenserver/zenserver.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/zenserver/zenserver.cpp b/src/zenserver/zenserver.cpp index 48ea89204..62c9227fe 100644 --- a/src/zenserver/zenserver.cpp +++ b/src/zenserver/zenserver.cpp @@ -312,7 +312,8 @@ ZenServer::Initialize(const ZenServerOptions& ServerOptions, ZenServerState::Zen .LightweightInterval = std::chrono::seconds(ServerOptions.GcConfig.LightweightIntervalSeconds), .UseGCVersion = ServerOptions.GcConfig.UseGCV2 ? GcVersion::kV2 : GcVersion::kV1, .CompactBlockUsageThresholdPercent = ServerOptions.GcConfig.CompactBlockUsageThresholdPercent, - .Verbose = ServerOptions.GcConfig.Verbose}; + .Verbose = ServerOptions.GcConfig.Verbose, + .SingleThreaded = ServerOptions.GcConfig.SingleThreaded}; m_GcScheduler.Initialize(GcConfig); // Create and register admin interface last to make sure all is properly initialized |