summaryrefslogtreecommitdiffstats
path: root/util/system/mlock.cpp
diff options
context:
space:
mode:
authorEvgeny Grechnikov <[email protected]>2022-02-10 16:46:20 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:46:20 +0300
commit6e38f52f898d7c077ddd319800b4014967a5ca76 (patch)
treef0b2473cfc98506158b8f1d3d387c4f478ade18e /util/system/mlock.cpp
parentbd085aee9b4f7a0bee302ce687964ffb7098f986 (diff)
Restoring authorship annotation for Evgeny Grechnikov <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/system/mlock.cpp')
-rw-r--r--util/system/mlock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/system/mlock.cpp b/util/system/mlock.cpp
index 435338c98fb..2431ef73db9 100644
--- a/util/system/mlock.cpp
+++ b/util/system/mlock.cpp
@@ -21,7 +21,7 @@ void LockMemory(const void* addr, size_t len) {
#if defined(_unix_)
const size_t pageSize = NSystemInfo::GetPageSize();
if (mlock(AlignDown(addr, pageSize), AlignUp(len, pageSize))) {
- ythrow yexception() << LastSystemErrorText();
+ ythrow yexception() << LastSystemErrorText();
}
#elif defined(_win_)
HANDLE hndl = GetCurrentProcess();