From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,45b50f14dadfce5b X-Google-Attributes: gid1164f8,public X-Google-Thread: 110292,45b50f14dadfce5b X-Google-Attributes: gid110292,public X-Google-Thread: 102b75,45b50f14dadfce5b X-Google-Attributes: gid102b75,public From: Hans-Juergen Boehm Subject: pointer checking (WAS Re: Final kick at the "Merced Guessing Game") Date: 1997/10/22 Message-ID: <344E407E.41C6@mti.sgi.com>#1/1 X-Deja-AN: 282463994 References: <61cqkc$9r@news-rocq.inria.fr> <3447D55B.1CDE@world.std.com> <62a0f5$9p8$1@lyra.csx.cam.ac.uk> <62dkeh$7dd$1@lyra.csx.cam.ac.uk> Followup-To: comp.arch Organization: Silicon Graphics Inc., Mountain View, CA Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec Nick Maclaren wrote: > > I hope that we are agreed that garbage collection WITHOUT pointer checking > is a recipe for chaos, sooner or later :-) > Agreed. But so is explicit deallocation without pointer checking. In my experience, more so. Not only can I introduce memory addressing errors that don't show up until much later, but I can also introduce deallocation errors with the same symptoms. And I often have a harder time using higher level linked data structures that might get me away from the dangerous low-level pointer manipulations. Perhaps a more interesting question is whether test-time pointer checking techniques that are run only during testing (e.g. Purify, or C pointer-arithmetic-checking as described for example in my 1996 PLDI paper) are good enough, or whether you need the expense of full-time pointer checking. It probably depends on the circumstances. -- Hans-Juergen Boehm boehm@mti.sgi.com