This is the mail archive of the
mailing list for the Guile project.
- To: firstname.lastname@example.org
- Subject: garbage-collection
- From: Paul Kunysch <email@example.com>
- Date: 05 Aug 1999 23:01:26 +0200
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
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