Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 May 2002 19:08:48 -0700 (PDT)
From:      Jeff Roberson <jeff@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern kern_malloc.c src/sys/vm uma_core.c uma_dbg.c uma_dbg.h
Message-ID:  <200205020208.g4228mb52019@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

jeff        2002/05/01 19:08:48 PDT

  Modified files:
    sys/kern             kern_malloc.c 
    sys/vm               uma_core.c uma_dbg.c uma_dbg.h 
  Log:
  Remove the temporary alignment check in free().
  
  Implement the following checks on freed memory in the bucket path:
          - Slab membership
          - Alignment
          - Duplicate free
  
  This previously was only done if we skipped the buckets.  This code will slow
  down INVARIANTS a bit, but it is smp safe.  The checks were moved out of the
  normal path and into hooks supplied in uma_dbg.
  
  Revision  Changes    Path
  1.106     +0 -6      src/sys/kern/kern_malloc.c
  1.18      +21 -19    src/sys/vm/uma_core.c
  1.2       +95 -0     src/sys/vm/uma_dbg.c
  1.2       +2 -0      src/sys/vm/uma_dbg.h

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205020208.g4228mb52019>