summaryrefslogtreecommitdiff
path: root/sysdep
diff options
context:
space:
mode:
Diffstat (limited to 'sysdep')
-rw-r--r--sysdep/unix/alloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdep/unix/alloc.c b/sysdep/unix/alloc.c
index f96c0fcf..755b5fa5 100644
--- a/sysdep/unix/alloc.c
+++ b/sysdep/unix/alloc.c
@@ -164,6 +164,8 @@ void
resource_sys_init(void)
{
#ifdef HAVE_MMAP
+ ASSERT_DIE(global_free_pages.cnt == 0);
+
if (!(page_size = sysconf(_SC_PAGESIZE)))
die("System page size must be non-zero");