MCPcopy Index your code
hub / github.com/questdb/questdb / mmap0

Method mmap0

core/src/main/java/io/questdb/std/MmapCache.java:302–308  ·  view source on GitHub ↗
(int fd, long len, long offset, int flags, int memoryTag)

Source from the content-addressed store, hash-verified

300 }
301
302 private static long mmap0(int fd, long len, long offset, int flags, int memoryTag) {
303 long address = Files.mmap0(fd, len, offset, flags, 0);
304 if (address != FilesFacade.MAP_FAILED) {
305 Unsafe.recordMemAlloc(len, memoryTag);
306 }
307 return address;
308 }
309
310 private static long mremap0(int fd, long address, long previousSize, long newSize, long offset, int flags, int oldMemoryTag, int memoryTag) {
311 address = Files.mremap0(fd, address, previousSize, newSize, offset, flags);

Callers 4

cacheMmapMethod · 0.95
mremapMethod · 0.95
cacheMmapOptimisticMethod · 0.95
cacheMmapPessimisticMethod · 0.95

Calls 2

mmap0Method · 0.95
recordMemAllocMethod · 0.95

Tested by

no test coverage detected