This is the mail archive of the
guile@cygnus.com
mailing list for the Guile project.
garbage-collection
- To: guile@sourceware.cygnus.com
- Subject: garbage-collection
- From: Paul Kunysch <illume@gmx.net>
- Date: 05 Aug 1999 23:01:26 +0200
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