[jemalloc] set correct excess in alloc_excess

This commit is contained in:
gnzlbg
2017-11-03 17:44:58 +01:00
parent 45ef012699
commit 549ab77e23

View File

@@ -203,7 +203,8 @@ mod contents {
err: *mut u8) -> *mut u8 {
let p = __rde_alloc(size, align, err);
if !p.is_null() {
*excess = size;
let flags = align_to_flags(align);
*excess = nallocx(size, flags) as usize;
}
return p
}