Cygwin: mm/malloc_wrapper.cc: fix a comment

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2022-08-10 16:56:07 +02:00
parent afa7117999
commit 86d2126173
1 changed files with 5 additions and 6 deletions

View File

@ -298,12 +298,11 @@ strdup (const char *s)
return p; return p;
} }
/* We use a critical section to lock access to the malloc data /* We use a SRW lock to lock access to the malloc data structures. This
structures. This permits malloc to be called from different permits malloc to be called from different threads. Note that it does
threads. Note that it does not make malloc reentrant, and it does not make malloc reentrant, and it does not permit a signal handler to
not permit a signal handler to call malloc. The malloc code in call malloc. The malloc code in newlib will call __malloc_lock and
newlib will call __malloc_lock and __malloc_unlock at appropriate __malloc_unlock at appropriate times. */
times. */
SRWLOCK NO_COPY mallock = SRWLOCK_INIT; SRWLOCK NO_COPY mallock = SRWLOCK_INIT;