Unix Technical Forum

Re: src/lib/libc/stdlib/malloc.c

This is a discussion on Re: src/lib/libc/stdlib/malloc.c within the mailing.openbsd.tech forums, part of the OpenBSD category; --> On 6/8/07, viking <brickviking@gmail.com> wrote: > lines 19-21 seem to be pointless, as the preprocessor would attempt to > ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > mailing.openbsd.tech

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 10:25 AM
Ted Unangst
 
Posts: n/a
Default Re: src/lib/libc/stdlib/malloc.c

On 6/8/07, viking <brickviking@gmail.com> wrote:
> lines 19-21 seem to be pointless, as the preprocessor would attempt to
> undefine an already undefined symbol, or simply skip the lines if the symbol
> was already defined.
>
> I note the lines in question were picked up by someone else in FreeBSD's
> code back in 2005, before the massive malloc rewrite. That's nine years it
> had been in THAT code before removal. I've emailed the original author to
> ask about it; his reply is below:
>
> From phk (phk@freebsd.org)
> :They used to control some very paranoid consistency check code that
> :was removed pretty early on, unfortunately, those three lines got
> :missed somehow.


there are quite a few consistency checks still in the code that this
option enables. the ifndef undef bit is just a stylistic hint that
the option shouldn't be on. it's ok for it to not work.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:56 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com