Date: Tue, 14 May 2002 08:22:37 -0700 (PDT) From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 11320 for review Message-ID: <200205141522.g4EFMbJ85328@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=11320 Change 11320 by rwatson@rwatson_curry on 2002/05/14 08:21:40 Re-insert trash_mem() call in the slab case, but do it before preserving the memory type so as (in theory) not to break the invariants checking. Don't remember if the new UMA code has memory trashing; if it does we can probably remove our custom MAC branch memory trashing. Affected files ... ... //depot/projects/trustedbsd/mac/sys/kern/kern_malloc.c#10 edit Differences ... ==== //depot/projects/trustedbsd/mac/sys/kern/kern_malloc.c#10 (text+ko) ==== @@ -255,6 +255,7 @@ addr, mem); if (!(slab->us_flags & UMA_SLAB_MALLOC)) { + trash_mem(addr, size); #ifdef INVARIANTS struct malloc_type **mtp = addr; #endif To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205141522.g4EFMbJ85328>