diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-06-23 21:28:41 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-06-24 16:28:04 +0900 |
| commit | 96720b297d50d290bda746fab75e0078ac5f975b (patch) | |
| tree | f2176e1da9b38c69cb0cba9d495201907dbf4625 /src/OptionHandlerFactory.cc | |
| parent | 38426d744b918088a35e41afd6acbe86a904c441 (diff) | |
Added --enable-mmap option.
If this option is used, map files into memory using mmap(2). This
option is experimental.
Diffstat (limited to 'src/OptionHandlerFactory.cc')
| -rw-r--r-- | src/OptionHandlerFactory.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc index dcb73b65..7c12e608 100644 --- a/src/OptionHandlerFactory.cc +++ b/src/OptionHandlerFactory.cc @@ -292,6 +292,21 @@ OptionHandlerFactory::createOptionHandlers() op->addTag(TAG_FILE); handlers.push_back(op); } +#ifdef HAVE_MMAP + { + SharedHandle<OptionHandler> op(new BooleanOptionHandler + (PREF_ENABLE_MMAP, + TEXT_ENABLE_MMAP, + A2_V_FALSE, + OptionHandler::OPT_ARG)); + op->addTag(TAG_ADVANCED); + op->addTag(TAG_EXPERIMENTAL); + op->setInitialOption(true); + op->setChangeGlobalOption(true); + op->setChangeOptionForReserved(true); + handlers.push_back(op); + } +#endif // HAVE_MMAP { SharedHandle<OptionHandler> op(new BooleanOptionHandler (PREF_ENABLE_RPC, |
