emscripten-core / emscripten-core/emscripten

WasmFS: Support non-private mmap

Offen
#17,801 4 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @kripken Auf GitHub ansehen
wasmfs
Vorherrschende Sprache
C++
Sterne
27.6k
Forks
3.6k
Ø Merge
1 T. 14 Std.
Gemergte PRs (30 T.)
125

Beschreibung

The `_mmap_js` implementation in syscalls.cpp has a TODO:

```
// TODO: handle non-private mmaps. Those can be optimized in interesting ways
// like avoiding an allocation and a copy as we do below (whereas a
// private mmap is always a copy into a new, private region not shared
// with anything else).
```

It also asserts that the flags contain `MAP_PRIVATE`. We don't need to fully address the optimizations in the TODO yet, but we do need to do better than asserting on `MAP_SHARED`.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.