This is the mail archive of the guile@cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

garbage-collection



 Hi

Let's assume I call gh_str02scm("data") in a c program.  This function
returns a handle to the data.  How does the garbage-collector know
when do delete "data" from my memory?  I suppose there is a function
like "void gh_gc_unmark(SCM);" somewhere?

The only thing I found was a comment containing "gh_gc_mark(SCM)" in
"guile/gh.h". Does this mean that the SCM-handles point to data that
is "not in use" by default?

Or is there a timeout after which an object is deleted if I don't use
it? :-)

I'm trying to write a server that converts its input-requests to
SCM-data.  If all requests will stay in my memory forever I have a
problem.  A good explanation how arbage is collected would be nice.


Thank you. Bye

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]