Skip to content
This repository was archived by the owner on Mar 24, 2022. It is now read-only.

Commit 3930687

Browse files
committed
[lucet-runtime-internals] Call MAP_ANON mmap with fd -1
Linux is not strict on this, but e.g. FreeBSD is.
1 parent 8cb7d8e commit 3930687

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • lucet-runtime/lucet-runtime-internals/src/region

lucet-runtime/lucet-runtime-internals/src/region/mmap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ impl MmapRegion {
348348
region.limits.total_memory_size(),
349349
ProtFlags::PROT_NONE,
350350
MapFlags::MAP_ANON | MapFlags::MAP_PRIVATE,
351-
0,
351+
-1,
352352
0,
353353
)?
354354
}

0 commit comments

Comments
 (0)