Memory map without using the MmapCache. Useful for streaming reads where we want each mapping to be independent and release page cache via madvise.
(long fd, long len, long offset, int flags, int memoryTag)
| 384 | * we want each mapping to be independent and release page cache via madvise. |
| 385 | */ |
| 386 | public static long mmapNoCache(long fd, long len, long offset, int flags, int memoryTag) { |
| 387 | int osFd = fdCache.toOsFd(fd, (flags & MAP_RW) != 0); |
| 388 | // Pass mmapCacheKey=0 to bypass the mmap cache |
| 389 | return mmapCache.cacheMmap(osFd, 0, len, offset, flags, memoryTag); |
| 390 | } |
| 391 | |
| 392 | public static long mremap(long fd, long address, long previousSize, long newSize, long offset, int flags, int memoryTag) { |
| 393 | int osFd = fdCache.toOsFd(fd, (flags & MAP_RW) != 0); |
no test coverage detected