From: Zoltan Varga Date: Tue, 23 May 2006 15:23:37 +0000 (+0000) Subject: 2006-05-23 Zoltan Varga X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e56070ed3bb543b83f4bd5f8acafcdb19750e23;p=gc 2006-05-23 Zoltan Varga * os_dep.c (GC_unix_get_mem): Add an assert to bail out early if the runtime is run on a machine with smaller page size than HBLKSIZE. svn path=/trunk/mono/; revision=61001 --- diff --git a/ChangeLog b/ChangeLog index 0bc1298f..96384b33 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-05-23 Zoltan Varga + + * os_dep.c (GC_unix_get_mem): Add an assert to bail out early if the runtime is + run on a machine with smaller page size than HBLKSIZE. + 2006-05-19 Martin Baulig * include/gc.h: Don't include "libgc-mono-debugger.h". diff --git a/os_dep.c b/os_dep.c index ef80a9d0..e92a9ef6 100644 --- a/os_dep.c +++ b/os_dep.c @@ -1617,6 +1617,8 @@ word bytes; # else GC_ASSERT(last_addr != 0); # endif + if (((word)result % HBLKSIZE) != 0) + ABORT ("GC_unix_get_mem: Memory returned by mmap is not aligned to HBLKSIZE."); return((ptr_t)result); }