From owner-p4-projects Tue May 14 8:22:43 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id D02CE37B40C; Tue, 14 May 2002 08:22:38 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0844D37B409 for ; Tue, 14 May 2002 08:22:38 -0700 (PDT) Received: (from perforce@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4EFMbJ85328 for perforce@freebsd.org; Tue, 14 May 2002 08:22:37 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Tue, 14 May 2002 08:22:37 -0700 (PDT) Message-Id: <200205141522.g4EFMbJ85328@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson Subject: PERFORCE change 11320 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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