Open mnieper opened 5 years ago
Yes, the symbol table implementation predates weak references. We can probably fix this now easily.
A slight complication may arise when symbols are used as weak keys (for example, in ephemerons). As symbols can always be reforged using string->symbol
a symbol weak key may never be invalidated even if the interned symbol is being garbage collected.
The following code causes Chibi to allocate more and more memory:
Aren't the generated interned symbols garbage-collected?