aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/filemap.cpp
diff options
context:
space:
mode:
authoranelyubin <anelyubin@yandex-team.ru>2022-02-10 16:49:40 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:40 +0300
commit9dac44a55ede6f682527e82880847f99bd7b2d93 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/system/filemap.cpp
parent8d333d5e773f6b0ef31e7b3c92339af7e71413f6 (diff)
downloadydb-9dac44a55ede6f682527e82880847f99bd7b2d93.tar.gz
Restoring authorship annotation for <anelyubin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/filemap.cpp')
-rw-r--r--util/system/filemap.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/system/filemap.cpp b/util/system/filemap.cpp
index 6c8b3a627c..7454a4cb94 100644
--- a/util/system/filemap.cpp
+++ b/util/system/filemap.cpp
@@ -103,7 +103,7 @@ static int ModeToMmapProt(TMemoryMapCommon::EOpenMode mode) {
#endif
// maybe we should move this function to another .cpp file to avoid unwanted optimization?
-void NPrivate::Precharge(const void* data, size_t dataSize, size_t off, size_t size) {
+void NPrivate::Precharge(const void* data, size_t dataSize, size_t off, size_t size) {
if (off > dataSize) {
assert(false);
return;
@@ -118,7 +118,7 @@ void NPrivate::Precharge(const void* data, size_t dataSize, size_t off, size_t s
return;
}
- volatile const char *c = (const char*)data + off, *e = c + size;
+ volatile const char *c = (const char*)data + off, *e = c + size;
for (; c < e; c += 512) {
*c;
}
@@ -262,7 +262,7 @@ public:
}
NSan::Unpoison(result.Ptr, result.Size);
if (Mode_ & oPrecharge) {
- NPrivate::Precharge(result.Ptr, result.Size, 0, result.Size);
+ NPrivate::Precharge(result.Ptr, result.Size, 0, result.Size);
}
return result;
@@ -526,7 +526,7 @@ TFileMap::~TFileMap() {
}
void TFileMap::Precharge(size_t pos, size_t size) const {
- NPrivate::Precharge(Ptr(), MappedSize(), pos, size);
+ NPrivate::Precharge(Ptr(), MappedSize(), pos, size);
}
TMappedAllocation::TMappedAllocation(size_t size, bool shared, void* addr)