From: Tom Jackson Date: Sat, 23 Feb 2013 03:07:11 +0000 (-0800) Subject: Renaming flag in MemoryMapping X-Git-Tag: v0.22.0~1053 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d059cdd4f5791dd6c40772f817ed469cbe3a4132;p=folly.git Renaming flag in MemoryMapping Summary: This flag conflicts with the flag with the same purpose in `common/files/MemoryMappedFile.cpp`. Just renaming it for now. Test Plan: Build Reviewed By: lucian@fb.com FB internal diff: D717067 --- diff --git a/folly/MemoryMapping.cpp b/folly/MemoryMapping.cpp index 617d8006..7ac9825e 100644 --- a/folly/MemoryMapping.cpp +++ b/folly/MemoryMapping.cpp @@ -22,7 +22,7 @@ #include #include -DEFINE_int64(mlock_max_size_at_once, 1 << 20, // 1MB +DEFINE_int64(mlock_chunk_size, 1 << 20, // 1MB "Maximum bytes to mlock/munlock/munmap at once " "(will be rounded up to PAGESIZE)"); @@ -100,11 +100,11 @@ namespace { off_t memOpChunkSize(off_t length) { off_t chunkSize = length; - if (FLAGS_mlock_max_size_at_once <= 0) { + if (FLAGS_mlock_chunk_size <= 0) { return chunkSize; } - chunkSize = FLAGS_mlock_max_size_at_once; + chunkSize = FLAGS_mlock_chunk_size; off_t pageSize = sysconf(_SC_PAGESIZE); off_t r = chunkSize % pageSize; if (r) {