🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: threadmanager's using all my ram!

#1185
From: Frank Pollard
Date: Fri, 29 Jun 2001 16:00
73 lines
4222 bytes
> I am assuming that you have observed this when you stop your thread on a
> breakpoint and then checking 'About This Computer'.

Yes.

I used zoneranger like meeroh suggested, and it shows that only about
500 bytes are being used at the end of the heap (after starting a
thread), there's a HUGE section of free ram just before it.

Thanks for your help, both of you...

btw, Bell (Sympatico) sucks, it's not showing me your replies, I had to
go to google to see them.


Frank Pollard wrote:
> 
> It happens whenever I call yieldtoanythread, or yieldtothread. As soon
> as the thread starts, 'About This Computer' in the finder says the
> program has
> used all of its ram, even when I give it 150MBs and all the thread does is
> call printf.
> Message 2 in threadFrom: meeroh (macdev@meeroh.org)
> Subject: Re: threadmanager's using all my ram! 
> Newsgroups: comp.sys.mac.programmer.codewarrior, comp.sys.mac.programmer.help, codewarrior.mac
> Date: 2001-06-27 19:20:48 PST 
> 
> 
> 
> In article <3B3A636B.F4E0BD1F@macman.net>,
>  Frank Pollard <macman@macman.net> wrote:
> 
> >It happens whenever I call yieldtoanythread, or yieldtothread. As soon 
> >as the thread starts, 'About This Computer' in the finder says the 
> >program has used all of its ram, even when I give it 150MBs and all 
> >the thread does is call printf.
> 
> Have you tried using ZoneRanger and MacsBug to try to figure out why 
> that memory is being allocated and who is allocating it?
> 
> meeroh
> -- 
> To get random signatures put text files into a folder called "Random Signatures" into your Preferences folder.
> 
> 
> Post a follow-up to this message
> Message 3 in threadFrom: Tim Hosking (tim@trhosking.com)
> Subject: Re: threadmanager's using all my ram! 
> Newsgroups: comp.sys.mac.programmer.codewarrior, comp.sys.mac.programmer.help
> Date: 2001-06-28 07:12:09 PST 
> 
> 
> 
> in article 3B3A636B.F4E0BD1F@macman.net, Frank Pollard at macman@macman.net
> wrote on 27/6/01 6:51 pm:
> 
> > It happens whenever I call yieldtoanythread, or yieldtothread. As soon
> > as the thread starts, 'About This Computer' in the finder says the
> > program has
> > used all of its ram, even when I give it 150MBs and all the thread does is
> > call printf.
> 
> I am assuming that you have observed this when you stop your thread on a
> breakpoint and then checking 'About This Computer'.
> 
> If this is the case then has been posted here before and I don't recall
> anything ever being resolved. It does appear to be a quirk of the OS, and
> totally benign. I have dropped into MacsBug and checked my app's heap and
> there is always plenty of unused memory. It just seems that the Finder's
> about window is somehow getting it wrong.
> 
> Maybe someone at MetroWerks could check it out and provide a more accurate
> and therefore useful answer?
Technical Details
Message-ID: <3B3CA604.AF8AAEEC@macman.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.stealth.net!207.35.177.132.MISMATCH!news3.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail
References: <3B3A636B.F4E0BD1F@macman.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 101ec9,da411bca8ded7b0a
X-Google-Attributes: gid101ec9,public
X-Google-Thread: 10bcce,da411bca8ded7b0a
X-Google-Attributes: gid10bcce,public
X-Google-Thread: f635e,da411bca8ded7b0a
X-Google-Attributes: gidf635e,public
X-Google-ArrivalTime: 2001-06-29 08:59:02 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.stealth.net!207.35.177.132.MISMATCH!news3.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail
Message-ID: <3B3CA604.AF8AAEEC@macman.net>
From: Frank Pollard <macman@macman.net>
Reply-To: macman@macman.net
X-Mailer: Mozilla 4.61 (Macintosh; I; PPC)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.sys.mac.programmer.codewarrior,comp.sys.mac.programmer.help,codewarrior.mac
Subject: Re: threadmanager's using all my ram!
References: <3B3A636B.F4E0BD1F@macman.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 73
Date: Fri, 29 Jun 2001 12:00:04 -0400
NNTP-Posting-Host: 64.229.107.87
X-Complaints-To: abuse@sympatico.ca
X-Trace: news20.bellglobal.com 993830119 64.229.107.87 (Fri, 29 Jun 2001 11:55:19 EDT)
NNTP-Posting-Date: Fri, 29 Jun 2001 11:55:19 EDT
Organization: Bell Sympatico