summaryrefslogtreecommitdiff
path: root/db/range_tombstone_fragmenter_test.cc
diff options
context:
space:
mode:
authorPeter Dillinger <peterd@fb.com>2022-10-17 17:10:16 -0700
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>2022-10-17 17:10:16 -0700
commit8367f0d2d76de0f7d096cc65f5f9ebfb907d551a (patch)
treecebf3c19a44e1e41150e368e6c4cc9dd139fa022 /db/range_tombstone_fragmenter_test.cc
parent11c0d1310e23f6ed16390fe665ec4ef5b80a34d7 (diff)
Improve / refactor anonymous mmap capabilities (#10810)
Summary: The motivation for this change is a planned feature (related to HyperClockCache) that will depend on a large array that can essentially grow automatically, up to some bound, without the pointer address changing and with guaranteed zero-initialization of the data. Anonymous mmaps provide such functionality, and this change provides an internal API for that. The other existing use of anonymous mmap in RocksDB is for allocating in huge pages. That code and other related Arena code used some awkward non-RAII and pre-C++11 idioms, so I cleaned up much of that as well, with RAII, move semantics, constexpr, etc. More specifcs: * Minimize conditional compilation * Add Windows support for anonymous mmaps * Use std::deque instead of std::vector for more efficient bag Pull Request resolved: https://github.com/facebook/rocksdb/pull/10810 Test Plan: unit test added for new functionality Reviewed By: riversand963 Differential Revision: D40347204 Pulled By: pdillinger fbshipit-source-id: ca83fcc47e50fabf7595069380edd2954f4f879c
Diffstat (limited to 'db/range_tombstone_fragmenter_test.cc')
0 files changed, 0 insertions, 0 deletions