This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v2] malloc: Remove malloc hooks (Bug 23328)
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: DJ Delorie <dj at redhat dot com>
- Cc: carlos at redhat dot com, libc-alpha at sourceware dot org, joseph at codesourcery dot com
- Date: Mon, 02 Jul 2018 23:00:42 +0200
- Subject: Re: [PATCH v2] malloc: Remove malloc hooks (Bug 23328)
- References: <xnr2klfn0c.fsf@greed.delorie.com>
* DJ Delorie:
> Florian Weimer <fw@deneb.enyo.de> writes:
>> Dummy hooks? I meant to initialize not the hooks, but the next_*
>> variables.
>
> That's what I was referring to.
>
> Or did you mean "look up all the symbols the first time you need any of
> them" ?
Correct. At that point, you are still single-threaded, so you don't
need all that complicated synchronization. (You might need a dummy
allocation for bootstrapping, though.)