arena/slab: warn when destroying unfreed items
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 23 Sep 2019 23:36:11 +0000 (19:36 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 8 Oct 2019 21:11:11 +0000 (17:11 -0400)
commit5569b30150bb385b2bbee9661926563b9e7bc21b
tree7d24ca407138e31c5ff7211857fc5156b7780bde
parent43e35e934d04d776adc086e997e2ab139f201080
arena/slab: warn when destroying unfreed items

Instead of panicking.  This leaks resources, but keeps the machine
running.  It's a little hokey, since any attempt to free the objects
will run into issues.  Though if someone forgot to free it, hopefully
they won't free it before we can use the machine for some last minute
diagnostics.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/src/arena.c
kern/src/slab.c