From d9dad00a33657c8759ca3551de4139136d16143b Mon Sep 17 00:00:00 2001 From: Per Larsson Date: Thu, 9 Dec 2021 16:17:56 +0100 Subject: Added options for Z$ max duration and whether to collect small objects. --- zenserver/zenserver.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'zenserver/zenserver.cpp') diff --git a/zenserver/zenserver.cpp b/zenserver/zenserver.cpp index 39ea71b10..c4cc22140 100644 --- a/zenserver/zenserver.cpp +++ b/zenserver/zenserver.cpp @@ -309,9 +309,11 @@ public: ZEN_INFO("initializing GC, enabled '{}', interval {}s", ServerOptions.GcConfig.Enabled, ServerOptions.GcConfig.IntervalSeconds); zen::GcSchedulerConfig GcConfig{ - .RootDirectory = m_DataRoot / "gc", - .Interval = std::chrono::seconds(ServerOptions.GcConfig.IntervalSeconds), - .Enabled = ServerOptions.GcConfig.Enabled, + .RootDirectory = m_DataRoot / "gc", + .Interval = std::chrono::seconds(ServerOptions.GcConfig.IntervalSeconds), + .MaxCacheDuration = std::chrono::seconds(ServerOptions.GcConfig.Cache.MaxDurationSeconds), + .CollectSmallObjects = ServerOptions.GcConfig.CollectSmallObjects, + .Enabled = ServerOptions.GcConfig.Enabled, }; m_GcScheduler.Initialize(GcConfig); } -- cgit v1.2.3