Browse Source

malloc: grow the padding for the malloc header

It was only two longs, and that's not working on riscv.

This whole malloc needs a complete makeover.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Ronald G. Minnich 7 years ago
parent
commit
32047150e9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      sys/src/libc/port/malloc.c

+ 1 - 1
sys/src/libc/port/malloc.c

@@ -199,7 +199,7 @@ ppanic(Pool *p, char *fmt, ...)
 
 /* tracing */
 enum {
-	Npadlong	= 2,
+	Npadlong	= 8,
 	MallocOffset = 0,
 	ReallocOffset = 1
 };