garbage collection

T

Tom Allison

I haven't a copy of the code yet but a friend of mine was bemoaning his
efforts to create an application in ruby (conversion from python) and
ran into a problem.

He discards a LOT of objects during the final steps of his application
run. This part of the process ultimately results in a crash every time
he runs it.

Is there something that can be recommended to help with garbage
collection?
 
R

Robert Klemme

Tom said:
I haven't a copy of the code yet but a friend of mine was bemoaning
his efforts to create an application in ruby (conversion from python)
and ran into a problem.

He discards a LOT of objects during the final steps of his application
run. This part of the process ultimately results in a crash every
time he runs it.

What exactly do you mean by "discard"? Does he simply stop referencing a
big collection? Are there finalizers defined for objects?
Is there something that can be recommended to help with garbage
collection?

Do not switch it off.

Seriously, your description is a bit vague, so it's difficult to tell what
the cause of his problem is (might not be GC at all).

Kind regards

robert
 
T

Tom Allison

What exactly do you mean by "discard"? Does he simply stop referencing a
big collection? Are there finalizers defined for objects?

I don't think he has anything like a defined finalizer.
I'll have to get the code...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top