Date: Sat, 19 Sep 1998 18:07:50 -0700 (PDT) From: Alex Nash <alex@FreeBSD.ORG> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/lib/libc/stdlib malloc.c Message-ID: <199809200107.SAA17394@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
alex 1998/09/19 18:07:50 PDT Modified files: lib/libc/stdlib malloc.c Log: Back out part of previous commit (even though it's technically correct). Our spinlock implementation allows a particular thread to obtain a lock multiple times, but release the lock with a single unlock call. Since we're detecting recursion, we know the lock is already owned by the current thread in a previous call and must not be released in the current call. This is really far too dependent on this particular spinlock implementation, so I've added commented out calls to THREAD_UNLOCK in the appropriate places. We can activate this code when spinlock is taught to count each lock operation. Revision Changes Path 1.41 +17 -1 src/lib/libc/stdlib/malloc.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809200107.SAA17394>