🔒 Locked
[java] Garbage collection
Advertisement
Original Post
You need to build that yourself. Create a static variable that is initialized to 0 and is increased every time the constructor is called. Then you decrease it every time finalize() is called. Finalize is called by the garbage collector.
First make it work,
then make it fast.
--Brian Kernighan
"I’m happy to share what I can, because I’m in it for the love of programming. The Ferraris are just gravy, honest!" --John Carmack: Forward to Graphics Programming Black Book
First make it work,
then make it fast.
--Brian Kernighan
"I’m happy to share what I can, because I’m in it for the love of programming. The Ferraris are just gravy, honest!" --John Carmack: Forward to Graphics Programming Black Book
Did I fix it?
//Spyder, get rid of the "<object>" in your post. It is being
//interpreted as an html tag and messing up the page.
//This was put in source tags to prevent further problems.
[edited by - evil sausage on January 11, 2003 8:25:58 PM]
[edited by - evil sausage on January 11, 2003 8:26:16 PM]
[edited by - evil sausage on January 11, 2003 8:26:31 PM]
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement