🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac.programmer.codewarrior
Article #664

Re: The world's simplest C++ thread safe memory debugger

#664
From: Howard Hinnant
Date: Wed, 08 Oct 2003 16:52
32 lines
2696 bytes
In article <cwatson-0102BE.20340207102003@aeinews.aei.ca>,
 Sean McBride <cwatson@cam.org> wrote:

> In article 
> <hinnant-CF8AA0.21254129092003@syrcnyrdrs-02-ge0.nyroc.rr.com>,
>  Howard Hinnant <hinnant@metrowerks.com> wrote:
> 
> > > It is not thread safe.  But it is simple enough it easily could be made 
> > > so.  Hmm... perhaps I'll write about the new Metrowerks::threads next. 
> > 
> > With the gauntlet thrown, and the overwhelming reader response just 
> > daring me to try and make this puppy thread safe, I just couldn't resist 
> > the challenge. :-)  (is that crickets I hear chirping?  oh never mind)
> 
> Any plans to replace the (non-thread safe) DebugNew with your new memory 
> debugger?  Or merge the two and include them with CW?

No such plans that I'm aware of.  My intent with simple_mem_debug was 
more along the lines of distributing a copyright-free basic memory 
debugger that was simple enough that everyone could customize it to 
their own needs, and yet still useful if you didn't enhance it at all.

And I must admit that simple_mem_debug is also a nice vehicle to show 
some practical use cases of a few Metrowerks extensions (hash_map, 
alloc_ptr, recursive_mutex, call_once). :-)

DebugNew still sports features that simple_mem_debug doesn't, for 
example:  DebugNewForgetLeaks(), DebugNewSetErrorHandler().  And then 
there is the backwards compatibility issue of changing the interface of 
DebugNew.

-Howard
Technical Details
Message-ID: <hinnant-87E192.12520808102003@syrcnyrdrs-01-ge0.nyroc.rr.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.telusplanet.net!newsfeed.telus.net!news3.optonline.net!cyclone.rdc-nyc.rr.com!news-rtr.nyroc.rr.com!news-out.nyroc.rr.com!twister.nyroc.rr.com.POSTED!53ab2750!not-for-mail
References: <hinnant-CF8AA0.21254129092003@syrcnyrdrs-02-ge0.nyroc.rr.com> <cwatson-0102BE.20340207102003@aeinews.aei.ca>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10bcce,688428e11d0b0079
X-Google-Attributes: gid10bcce,public
X-Google-Thread: f635e,688428e11d0b0079
X-Google-Attributes: gidf635e,public
X-Google-ArrivalTime: 2003-10-08 09:52:44 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.telusplanet.net!newsfeed.telus.net!news3.optonline.net!cyclone.rdc-nyc.rr.com!news-rtr.nyroc.rr.com!news-out.nyroc.rr.com!twister.nyroc.rr.com.POSTED!53ab2750!not-for-mail
From: Howard Hinnant <hinnant@metrowerks.com>
Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac
Subject: Re: The world's simplest C++ thread safe memory debugger
Organization: Metrowerks
References: <hinnant-CF8AA0.21254129092003@syrcnyrdrs-02-ge0.nyroc.rr.com> <cwatson-0102BE.20340207102003@aeinews.aei.ca>
User-Agent: MT-NewsWatcher/3.3b1 (PPC Mac OS X)
Message-ID: <hinnant-87E192.12520808102003@syrcnyrdrs-01-ge0.nyroc.rr.com>
Lines: 32
Date: Wed, 08 Oct 2003 16:52:09 GMT
NNTP-Posting-Host: 24.58.14.109
X-Complaints-To: abuse@rr.com
X-Trace: twister.nyroc.rr.com 1065631929 24.58.14.109 (Wed, 08 Oct 2003 12:52:09 EDT)
NNTP-Posting-Date: Wed, 08 Oct 2003 12:52:09 EDT