home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.compilers
- Path: sparky!uunet!decwrl!world!iecc!compilers-sender
- From: maxtal@extro.ucc.su.OZ.AU (John MAX Skaller)
- Subject: Re: Adding garbage collection to C++
- Reply-To: maxtal@extro.ucc.su.OZ.AU (John MAX Skaller)
- Organization: MAXTAL P/L C/- University Computing Centre, Sydney
- Date: Thu, 20 Aug 1992 23:41:50 GMT
- Approved: compilers@iecc.cambridge.ma.us
- Message-ID: <92-08-128@comp.compilers>
- References: <92-08-092@comp.compilers> <92-08-093@comp.compilers>
- Keywords: C, GC, parallel
- Sender: compilers-sender@iecc.cambridge.ma.us
- Lines: 19
-
- >[How do you garbage collect multi-threaded programs where some pointers to
- >shared memory are kept in per-thread private storage]
-
- Clearly you have to GC at the level of sharing. If A and B share
- storage, you have to make the collector scan the stacks of both A and B.
- So the collector needs to be implemented in the Operating system.
-
- Perhaps simply retaining a pointer in the address space of A works
- for threads, but it doesnt work for systems like Windows, where you 'give
- away' the pointer to the OS. There IS no stack or local address space
- between callbacks into you're program, so there is nowhere to retain that
- pointer.
-
- --
- JOHN (MAX) SKALLER, maxtal@extro.ucc.su.oz.au
- Maxtal Pty Ltd, 6 MacKay St ASHFIELD, NSW 2131, AUSTRALIA
- --
- Send compilers articles to compilers@iecc.cambridge.ma.us or
- {ima | spdcc | world}!iecc!compilers. Meta-mail to compilers-request.
-