Re: tcl and conservative GC? (Chris N Anderson)
Sat, 2 Jul 1994 20:45:08 GMT

          From comp.compilers

Related articles
tcl and conservative GC? (1994-07-01)
Re: tcl and conservative GC? (1994-07-02)
| List of all articles for this month |

Newsgroups: comp.lang.tcl,comp.compilers
From: (Chris N Anderson)
Keywords: interpreter, GC
Organization: The World Public Access UNIX, Brookline, MA
References: 94-07-014
Date: Sat, 2 Jul 1994 20:45:08 GMT

"Standard" Tcl/Tk/TclX stuff does not encode pointers in strings in the
manner you suggest. Rather, unique identifiers are generated which are
placed in hash tables that are used to translate the "pointer" string to
an actual C pointer; thus, a conservative GC should have no problem - the
real pointer is in the hash table.

Any packages that might encode pointers into strings without this method
have no means to protect against invalid pointer-strings that could crash
the program. Of course, CGC will not work with such packages, but I'm not
personally aware of any.

---Chris Anderson

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.