aboutsummaryrefslogtreecommitdiffstats
path: root/storage/src/vespa/storage/persistence/filestorage/filestormanager.cpp
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2023-01-11 18:42:52 +0100
committerGitHub <noreply@github.com>2023-01-11 18:42:52 +0100
commit65f655bac61810a39c964fb3eb72f35f0c0154fb (patch)
treeff5f459e515cc3692e31ab4542c7190baeeafc3f /storage/src/vespa/storage/persistence/filestorage/filestormanager.cpp
parentc8e3b733d2e6dc75b04fa563ab270724471d0bf7 (diff)
parentaf6deefa21e96fa37571264bc1b2864517545f3a (diff)
Merge pull request #25521 from vespa-engine/vekterli/place-some-memory-trapsv8.109.47
Place some memory traps across various size classes
Diffstat (limited to 'storage/src/vespa/storage/persistence/filestorage/filestormanager.cpp')
-rw-r--r--storage/src/vespa/storage/persistence/filestorage/filestormanager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/storage/src/vespa/storage/persistence/filestorage/filestormanager.cpp b/storage/src/vespa/storage/persistence/filestorage/filestormanager.cpp
index b67e4851473..4a36d36425a 100644
--- a/storage/src/vespa/storage/persistence/filestorage/filestormanager.cpp
+++ b/storage/src/vespa/storage/persistence/filestorage/filestormanager.cpp
@@ -78,6 +78,10 @@ FileStorManager(const config::ConfigUri & configUri, spi::PersistenceProvider& p
_configFetcher(std::make_unique<config::ConfigFetcher>(configUri.getContext())),
_use_async_message_handling_on_schedule(false),
_metrics(std::make_unique<FileStorMetrics>()),
+ _mem_trap_1(std::make_unique<vespalib::HeapMemoryTrap>(1)),
+ _mem_trap_2(std::make_unique<vespalib::HeapMemoryTrap>(2)),
+ _mem_trap_3(std::make_unique<vespalib::HeapMemoryTrap>(3)),
+ _mem_trap_4(std::make_unique<vespalib::HeapMemoryTrap>(16)),
_filestorHandler(),
_sequencedExecutor(),
_closed(false),