* DataGrid.cs: move back to a more lazy scheme for creating the
[mono.git] / libgc / os_dep.c
index ef80a9d093ec2dfd0965a28965177628804ac8ba..e92a9ef636c4ec2dbdb32a3109696df383c6d5f2 100644 (file)
@@ -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);
 }