-
Committer:
Facebook Github Bot
-
Author(s):
Giuseppe Ottaviano
-
Date:
2019-08-22 09:55:27 UTC
-
Revision ID:
git-v1:fbb2e01eb9338a307d0ead79cf0125d35d698e41
Turn MemoryMapping::LockFlags into a struct of bools
Summary: `LockFlags` is a set of flags that mirrors `mlock2(..., int flags)`, but since this is not a C API we don't need a bitset, we can just use a more idiomatic struct of bools (also used for the other options in the class). Furthermore, having an entry with value 0 (`LOCK_PREFAULT`) does not make sense in a bitset.
Reviewed By: yfeldblum
Differential Revision: D16900127
fbshipit-source-id: 6477854121c0626e0f36cb7a50d50df73323bd4e