File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -134,8 +134,13 @@ std::shared_ptr<MemoryPagesPool> MemoryBankManager::getPagedPool(size_t pageSize
134134 theLog.log (LogInfoDevel, " Zero memory" );
135135 void *blockAddress = &(((char *)baseAddress)[offset]);
136136 // ensure pages stay in RAM
137- // no need to lock them now, we write the full range on next line. keep them locked then. this is faster.
138- mlock2 (blockAddress, blockSize, MLOCK_ONFAULT);
137+ #ifdef MLOCK_ONFAULT
138+ // only on Linux
139+ // no need to lock them now, we write the full range on next line. keep them locked then. this is faster.
140+ mlock2 (blockAddress, blockSize, MLOCK_ONFAULT);
141+ #else
142+ mlock (blockAddress, blockSize);
143+ #endif
139144 bzero (blockAddress, blockSize);
140145 theLog.log (LogInfoDevel, " Zero memory done" );
141146
Original file line number Diff line number Diff line change 99// granted to it by virtue of its status as an Intergovernmental Organization
1010// or submit itself to any jurisdiction.
1111
12- #define READOUT_VERSION "2.13.0 "
12+ #define READOUT_VERSION "2.13.1 "
1313
You can’t perform that action at this time.
0 commit comments