summaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-06-02 08:03:00 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2022-06-02 08:03:00 +0000
commit43f78d0bdbd2d73e6c43baeea48fcc5290afcc12 (patch)
treef6aecc37435c43b6758adb26bc6cabd60ba65910 /vespalib
parente6f6eb2a393352313cb06f661bed48c2e4fc6cd3 (diff)
Avoid huge amounts of cold code in hot path.
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/util/alloc.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/vespalib/src/vespa/vespalib/util/alloc.cpp b/vespalib/src/vespa/vespalib/util/alloc.cpp
index ed620ec0afe..8240fa2d8e6 100644
--- a/vespalib/src/vespa/vespalib/util/alloc.cpp
+++ b/vespalib/src/vespa/vespalib/util/alloc.cpp
@@ -228,6 +228,9 @@ getDefaultAutoAllocator(AutoAllocatorsMap & map) {
}
AutoAllocatorsMapWithDefault
+createAutoAllocatorsWithDefault() __attribute__((noinline));
+
+AutoAllocatorsMapWithDefault
createAutoAllocatorsWithDefault() {
AutoAllocatorsMapWithDefault tmp(createAutoAllocators(), nullptr);
tmp.second = &getDefaultAutoAllocator(tmp.first);