Re: Finalisation/cleanup of Java objects from SISC

Norman Gray <[email protected]> Thu, 30 Apr 2009 14:13:51 +0100
Newsgroups gmane.comp.java.sisc.user
Message-ID <[email protected]>
Scott, hello.

On 2009 Apr 28, at 02:12, Scott G. Miller wrote:

> SISC provides no help with the GC, but you should be able to do  
> something
> via S2J and the Java reference classes:
>
> http://java.sun.com/j2se/1.4.2/docs/api/java/lang/ref/package-summary.html
>
> These are better supported than finalize, because they get called  
> earlier by
> the collector than when the object is actually reclaimed.
> It should be possible to wrap some nice Schemely interface over it.

Thanks for this.  That sounds like a profitable line of investigation  
if simply and painfully keeping track of the open files gets too  
confusing.

Hmm: a Reference object would indeed presumably allow me to develop  
some simple custodian...  Stoppit!  This sounds like that combination  
of lowish priority and high interest which is very very dangerous to  
productivity!

All the best,

Norman


-- 
Norman Gray  :  http://nxg.me.uk
Dept Physics and Astronomy, University of Leicester


------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf