[PATCH 4 of 4] mmapindex: set default to 1MB

Yuya Nishihara yuya at tcha.org
Tue Dec 4 06:09:26 EST 2018


On Sun, 02 Dec 2018 17:17:43 +0100, Boris Feld wrote:
> # HG changeset patch
> # User Boris Feld <boris.feld at octobus.net>
> # Date 1542949784 -3600
> #      Fri Nov 23 06:09:44 2018 +0100
> # Node ID 9708243274585f9544c70925eb0b0fa0ec7aba4f
> # Parent  0fff68dfbe48d87dce8b8736c0347ed5aa79030e
> # EXP-Topic mmap
> # Available At https://bitbucket.org/octobus/mercurial-devel/
> #              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 970824327458
> mmapindex: set default to 1MB

Can you check if strip/rollback properly copy the revlog before truncating it?

If a mmapped revlog is truncated by another process, the mapped memory could be
invalid. The worst case, the process would be killed by SIGBUS.


More information about the Mercurial-devel mailing list