libc -- dmalloc: Call malloc_init as-needed, rather than via ctor (#2)
authorVenkatesh Srinivas <me@endeavour.zapto.org>
Fri, 25 May 2012 19:43:58 +0000 (12:43 -0700)
committerVenkatesh Srinivas <me@endeavour.zapto.org>
Fri, 25 May 2012 19:43:58 +0000 (12:43 -0700)
commit20b2da2c75b86e66c462f14bedd35291ceeb782f
treef8a47ff09727fb9a9503ed6cf632a5394e0f55e9
parent832b6303b46f1ad1a6a1f5cf261417a280878d69
libc -- dmalloc: Call malloc_init as-needed, rather than via ctor (#2)

This commit is a second revision of
e12d3396c777165504d60d2a1408dcd7cb63660d; for details, see the original
commit message.

That commit was reverted quickly, as it broke pthreads; this revision
does not suffer from that problem, as it preserves the __constructor
logic for malloc_init.

Reverts: 4018c6eddd57f4abf9134690cbfa46c9d7103558 (Revert libc ...)
Reported-by: marino@
Closes-bug: 2305
lib/libc/stdlib/dmalloc.c