From 86d2126173b8374163b1de1bb723283345b128cc Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 10 Aug 2022 16:56:07 +0200 Subject: [PATCH] Cygwin: mm/malloc_wrapper.cc: fix a comment Signed-off-by: Corinna Vinschen --- 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_wrapper.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; } -/* 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. */ SRWLOCK NO_COPY mallock = SRWLOCK_INIT;