summaryrefslogtreecommitdiffstats
path: root/searchcore/src/apps
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2021-02-13 23:43:31 +0100
committerTor Egge <Tor.Egge@broadpark.no>2021-02-13 23:52:02 +0100
commit3ecf2e1b0aeed121fa8b588bbe3e50a70386c91d (patch)
tree75998f42eedef44f28019035ca070b4331bfa2c0 /searchcore/src/apps
parentecee339b9aa8793a8689b1916821027ae1f48503 (diff)
Add alloc_aligned member function.
Diffstat (limited to 'searchcore/src/apps')
-rw-r--r--searchcore/src/apps/vespa-gen-testdocs/vespa-gen-testdocs.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/searchcore/src/apps/vespa-gen-testdocs/vespa-gen-testdocs.cpp b/searchcore/src/apps/vespa-gen-testdocs/vespa-gen-testdocs.cpp
index 321f9345791..711a764abaf 100644
--- a/searchcore/src/apps/vespa-gen-testdocs/vespa-gen-testdocs.cpp
+++ b/searchcore/src/apps/vespa-gen-testdocs/vespa-gen-testdocs.cpp
@@ -4,7 +4,6 @@
#include <vespa/vespalib/stllike/string.h>
#include <vespa/vespalib/stllike/hash_set.h>
#include <vespa/vespalib/stllike/asciistream.h>
-#include <vespa/vespalib/util/memory_allocator.h>
#include <vespa/fastlib/io/bufferedfile.h>
#include <vespa/fastos/app.h>
#include <iostream>
@@ -67,7 +66,7 @@ shafile(const string &baseDir,
string fullFile(prependBaseDir(baseDir, file));
FastOS_File f;
std::ostringstream os;
- Alloc buf = Alloc::alloc(65536, MemoryAllocator::HUGEPAGE_SIZE, 0x1000);
+ Alloc buf = Alloc::alloc_aligned(65536, 0x1000);
f.EnableDirectIO();
bool openres = f.OpenReadOnly(fullFile.c_str());
if (!openres) {