Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: When is mem.c / malloc called?
- X-seq: zsh-workers 40519
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: When is mem.c / malloc called?
- Date: Fri, 10 Feb 2017 10:25:23 -0800
- Authentication-results: amavisd4.gkg.net (amavisd-new); dkim=pass (2048-bit key) header.d=brasslantern-com.20150623.gappssmtp.com
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=resent-from:resent-message-id:resent-date:resent-to:from:message-id :date:in-reply-to:comments:references:to:subject:mime-version; bh=XjisKAMTzsX8Hz0r7paFwWUTfJvccZMrX91BGM4auxo=; b=oAIvzvE6CqDwiJ0OuN2Wu/mjvzFJUwO5nQw4+Ot+xxw+6Krm0hvBWtLm5wkjXESbal NKPQcN1ruoUcXtEh43jazLXLdv7nRW2pOFFAeuARBl7Q8n4pdEma0qm+itS0fT9B2A6a GM0KJGsZZxSfr79Io3Yg2XqPCjeJAvfPFfcaX5JG79xybi3IPNJKtHtbjYxMM1F+d/CR ha7rQtBWi1gce6Ez7fcJ7HU4NHt5aDR28KrHZmlqtrSI1v/J5wXtE0Qbg7aT9tY7LLo9 CLUZaZptBcO2SeQXQNi/YH1KIEpSy08rAdy/ND/ZkxxUa4vkkVPmBJ0VsQImgx4z5a63 vLtg==
- In-reply-to: <1486729474.1489636.876722008.7B4EC1FC@webmail.messagingengine.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1486729474.1489636.876722008.7B4EC1FC@webmail.messagingengine.com>
On Feb 10, 4:24am, Sebastian Gniazdowski wrote:
}
} ... compiled once without --enable-zsh-mem, once with it. Then in a
} module I've called zshcalloc() and malloc(). Didn't get the message.
--enable-zsh-mem should turn on the internal malloc, see line 1026 of
mem.c. However, if you didn't relink separately-compiled modules,
they might still link at runtime to the system malloc.
} I'm writing a module that needs thread safe memory allocation.
This sounds pretty dangerous, as the rest of zsh (signal handling in
particular, update of the environment on e.g. "export", etc.) is not
going to be thread-safe.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author