Date: Sun, 7 Jan 2001 08:25:52 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: "Mark E." cc: djgpp-workers AT delorie DOT com Subject: Re: valloc and memalign draft In-Reply-To: <3A55C132.12287.6F26E9@localhost> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Fri, 5 Jan 2001, Mark E. wrote: > + /* Temporarily clear chunk-in-use bit so macros work correctly. */ > + b1->size &= ~1; Isn't this a bit dangerous? Doesn't it leave the malloc chain in an inconsistent state, for a small window of opportunities? What if some signal (i.e. exception) strikes between this line and where you restore the bit, and the code run from the signal handler calls memalign?