MCPcopy Create free account
hub / github.com/baidu/babylon / TearDown

Method TearDown

test/test_mlock.cpp:37–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 }
36
37 virtual void TearDown() override {
38 ::munmap(region, REGION_SIZE);
39 ::close(fd);
40 ::unlink(file_name.c_str());
41 }
42
43 bool region_in_memory() {
44 ::std::vector<uint8_t> vec(CEILED_REGION_SIZE / PAGE_SIZE);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected