public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Re-enable malloc_lock for newlib-nano
@ 2016-06-16 12:21 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2016-06-16 12:21 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=2665915cfc46aa6403bb2efd473c523d3167e0cb

commit 2665915cfc46aa6403bb2efd473c523d3167e0cb
Author: Andre Vieira (lists) <Andre.SimoesDiasVieira@arm.com>
Date:   Thu Jun 16 12:23:51 2016 +0100

    Re-enable malloc_lock for newlib-nano
    
    Re-enable the use of __malloc_lock and __malloc_unlock newlib-nano, tied
    the newlib-multithread.

Diff:
---
 newlib/libc/stdlib/nano-mallocr.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/newlib/libc/stdlib/nano-mallocr.c b/newlib/libc/stdlib/nano-mallocr.c
index 4a2f468..0b5631c 100644
--- a/newlib/libc/stdlib/nano-mallocr.c
+++ b/newlib/libc/stdlib/nano-mallocr.c
@@ -58,9 +58,8 @@
 #define RCALL reent_ptr,
 #define RONECALL reent_ptr
 
-/* Disable MALLOC_LOCK so far. So it won't be thread safe */
-#define MALLOC_LOCK /*__malloc_lock(reent_ptr) */
-#define MALLOC_UNLOCK /*__malloc_unlock(reent_ptr) */
+#define MALLOC_LOCK __malloc_lock(reent_ptr)
+#define MALLOC_UNLOCK __malloc_unlock(reent_ptr)
 
 #define RERRNO reent_ptr->_errno


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-06-16 12:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-16 12:21 [newlib-cygwin] Re-enable malloc_lock for newlib-nano Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).