From: gabriele renzi Date: 2004-07-20T04:57:06+09:00 Subject: Re: Ruby Specification il Tue, 20 Jul 2004 02:49:00 +0900, Mark Sparshatt ha scritto:: >I think changing to a reference counting GC system would change the >behaviour of the program, since it would change when an object is collected. > >I know that this subtlety has caused problems for people moving from >CPython (Which uses reference counting) to Jython (which uses mark and >sweep) CPython does reference count, while JPython should use the jvm's GC. This problem may appear when going from refcount to gc, cause you may expect that an object gets gc'ed at the end of a code block (in ref count)while it does not (gc). OTOH, when you're expecting a general GC behaviour you don't make assumptions about the automatic deletion of an object, so this problem does not arise. At least, I think.