blob: b63f1c15e1eecd7ec5c0e229369e3d5af058860c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
2007-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
* kern/zalloc.c (zget_space): Align zalloc_next_space again after
calling kmem_alloc_wired (which may sleep).
Index: kern/zalloc.c
===================================================================
RCS file: /cvsroot/hurd/gnumach/kern/zalloc.c,v
retrieving revision 1.3.2.8
diff -u -p -r1.3.2.8 zalloc.c
--- kern/zalloc.c 30 Apr 2007 20:30:11 -0000 1.3.2.8
+++ kern/zalloc.c 3 Sep 2007 23:22:13 -0000
@@ -320,6 +320,8 @@ static vm_offset_t zget_space(vm_offset_
zone_page_init(new_space, space_to_add,
ZONE_PAGE_USED);
simple_lock(&zget_space_lock);
+ if (align > 0)
+ ALIGN_SIZE_UP(zalloc_next_space, align);
continue;
}
|