From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 8C3933856DD2; Wed, 10 Aug 2022 16:14:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8C3933856DD2 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: mm/malloc_wrapper.cc: fix a comment X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/master X-Git-Oldrev: afa71179992e704734ff8aa5da1a3e02b8cdcd27 X-Git-Newrev: 86d2126173b8374163b1de1bb723283345b128cc Message-Id: <20220810161401.8C3933856DD2@sourceware.org> Date: Wed, 10 Aug 2022 16:14:01 +0000 (GMT) X-BeenThere: cygwin-cvs@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component git logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Aug 2022 16:14:01 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D86d2126173b= 8374163b1de1bb723283345b128cc commit 86d2126173b8374163b1de1bb723283345b128cc Author: Corinna Vinschen Date: Wed Aug 10 16:56:07 2022 +0200 Cygwin: mm/malloc_wrapper.cc: fix a comment =20 Signed-off-by: Corinna Vinschen Diff: --- winsup/cygwin/mm/malloc_wrapper.cc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/winsup/cygwin/mm/malloc_wrapper.cc b/winsup/cygwin/mm/malloc_w= rapper.cc index 8d12eb637..de3cf7ddc 100644 --- a/winsup/cygwin/mm/malloc_wrapper.cc +++ b/winsup/cygwin/mm/malloc_wrapper.cc @@ -298,12 +298,11 @@ strdup (const char *s) return p; } =20 -/* We use a critical section to lock access to the malloc data - structures. This permits malloc to be called from different - threads. Note that it does not make malloc reentrant, and it does - not permit a signal handler to call malloc. The malloc code in - newlib will call __malloc_lock and __malloc_unlock at appropriate - times. */ +/* We use a SRW lock to lock access to the malloc data structures. This + permits malloc to be called from different threads. Note that it does + not make malloc reentrant, and it does not permit a signal handler to + call malloc. The malloc code in newlib will call __malloc_lock and + __malloc_unlock at appropriate times. */ =20 SRWLOCK NO_COPY mallock =3D SRWLOCK_INIT;