From owner-cvs-lib Wed Apr 29 02:13:22 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA03078 for cvs-lib-outgoing; Wed, 29 Apr 1998 02:13:22 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA02911; Wed, 29 Apr 1998 02:12:44 -0700 (PDT) (envelope-from jb@FreeBSD.org) From: John Birrell Received: (from jb@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id CAA21935; Wed, 29 Apr 1998 02:10:58 -0700 (PDT) Date: Wed, 29 Apr 1998 02:10:58 -0700 (PDT) Message-Id: <199804290910.CAA21935@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/stdlib malloc.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jb 1998/04/29 02:10:58 PDT Modified files: lib/libc/stdlib malloc.c Log: Replace the threaded locking with spinlock calls for both threaded and non-threaded programs. This makes malloc thread safe for linking with libpthread and kernel threads. Reviewed by: phk Revision Changes Path 1.37 +10 -18 src/lib/libc/stdlib/malloc.c