Module Name: src Committed By: maxv Date: Wed Jun 25 16:35:13 UTC 2014
Modified Files: src/sys/kern: subr_kmem.c Log Message: 1) Make clear that we want the space allocated for the KMEM_SIZE header to be aligned, by using kmem_roundup_size(). There's no functional difference with the current MAX(). 2) If there isn't enough space in the page padding for the red zone, allocate one more page, not just 2 bytes. We only poison 1 or 2 bytes in this page, depending on the space left in the previous page. That way 'allocsz' is properly aligned. Again, there's no functional difference since the shift already handles it correctly. To generate a diff of this commit: cvs rdiff -u -r1.55 -r1.56 src/sys/kern/subr_kmem.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.