Message7424

Author amak
Recipients adorsk, amak
Date 2012-08-25.21:05:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1345928742.34.0.292317710007.issue1960@psf.upfronthosting.co.za>
In-reply-to
Content
sys.getrefcount is not meaningful on jython, only on cpython.

cpython uses reference-counting for garbage collection. Read more here

http://en.wikipedia.org/wiki/Reference_counting

Jython, because it runs on Java Virtual Machines, uses Java Garbage Collection, which may use one of several different garbage collection mechanisms, mostly much more sophisticated than relatively basic ref-counting algorithms. Read more here

http://www.oracle.com/technetwork/java/gc-tuning-5-138395.html

So basically sys.getrefcount would have no meaning on java/jython, and there is no way to implement it.

I'm going to close this bug as "invalid".

If you think that you need to use the sys.getrefcount method, please send an email, describing your use-case, to the jython-users mailing list.
History
Date User Action Args
2012-08-25 21:05:42amaksetmessageid: <1345928742.34.0.292317710007.issue1960@psf.upfronthosting.co.za>
2012-08-25 21:05:42amaksetrecipients: + amak, adorsk
2012-08-25 21:05:42amaklinkissue1960 messages
2012-08-25 21:05:41amakcreate