Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Nov 2003 11:49:56 -0800 (PST)
From:      Daniel Eischen <deischen@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libc/stdlib malloc.c src/lib/libc/include libc_private.h
Message-ID:  <200311041949.hA4Jnuua058014@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
deischen    2003/11/04 11:49:56 PST

  FreeBSD src repository

  Modified files:
    lib/libc/stdlib      malloc.c 
    lib/libc/include     libc_private.h 
  Log:
  Externalize malloc's spinlock so that a thread library can take
  it around an application's fork() call.  Our new thread libraries
  (libthr, libpthread) can now have threads running while another
  thread calls fork().  In this case, it is possible for malloc
  to be left in an inconsistent state in the child.  Our thread
  libraries, libpthread in particular, need to use malloc internally
  after a fork (in the child).
  
  Reviewed by:    davidxu
  
  Revision  Changes    Path
  1.10      +8 -0      src/lib/libc/include/libc_private.h
  1.83      +1 -0      src/lib/libc/stdlib/malloc.c



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