[pypy-commit] pypy mmap-for-arenas: translation fix

arigo pypy.commits at gmail.com
Thu Nov 30 12:18:36 EST 2017


Author: Armin Rigo <arigo at tunes.org>
Branch: mmap-for-arenas
Changeset: r93224:40ad6dbda37b
Date: 2017-11-30 18:18 +0100
http://bitbucket.org/pypy/pypy/changeset/40ad6dbda37b/

Log:	translation fix

diff --git a/rpython/rtyper/lltypesystem/llarena.py b/rpython/rtyper/lltypesystem/llarena.py
--- a/rpython/rtyper/lltypesystem/llarena.py
+++ b/rpython/rtyper/lltypesystem/llarena.py
@@ -558,6 +558,7 @@
 
 def llimpl_arena_munmap(arena_addr, nbytes):
     from rpython.rlib import rmmap
+    assert nbytes >= 0
     rmmap.c_munmap_safe(rffi.cast(rmmap.PTR, arena_addr), nbytes)
 register_external(arena_munmap, [llmemory.Address, int], None,
                   'll_arena.arena_munmap',


More information about the pypy-commit mailing list