diff options
author | Zoltan Varga <vargaz@gmail.com> | 2006-05-23 19:23:37 +0400 |
---|---|---|
committer | Zoltan Varga <vargaz@gmail.com> | 2006-05-23 19:23:37 +0400 |
commit | 18ad006ce88663d7a200d46187da1a9f72ca8b0c (patch) | |
tree | 1e7816fc24587bd18c28c4a0677a50d0d493a656 /libgc/os_dep.c | |
parent | e0a3088816ab6741a4c2b739547b4f5833a900a1 (diff) |
2006-05-23 Zoltan Varga <vargaz@gmail.com>
* 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
Diffstat (limited to 'libgc/os_dep.c')
-rw-r--r-- | libgc/os_dep.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libgc/os_dep.c b/libgc/os_dep.c index ef80a9d093e..e92a9ef636c 100644 --- a/libgc/os_dep.c +++ b/libgc/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); } |