On Fri May 17 08:36:29 2024 +0000, Rémi Bernon wrote:
Is something like https://gitlab.winehq.org/rbernon/wine/-/commit/f5049bd9c9352a70b66354c1a7c6... any better?
If we map in chunks, we should ensure that objects do not cross chunk boundaries. An object spanning two chunks will appear discontiguous in client's virtual memory.
If every object is smaller than a page, the simplest fix is to ensure each object fits inside one page. This doesn't work for objects larger than a page, though.