… | |
… | |
76 | // periodically test refcounts == 0 for a few strings |
76 | // periodically test refcounts == 0 for a few strings |
77 | // this is the ONLY thing that erases stuff from ht. keep it that way. |
77 | // this is the ONLY thing that erases stuff from ht. keep it that way. |
78 | void |
78 | void |
79 | shstr::gc () |
79 | shstr::gc () |
80 | { |
80 | { |
|
|
81 | return; //D |
|
|
82 | //D currently disabled: some datastructures might still store them |
|
|
83 | //D but their pointers will become invalidated |
81 | static const char *curpos; |
84 | static const char *curpos; |
82 | |
85 | |
83 | HT::iterator i = curpos ? ht.find (curpos) : ht.begin (); |
86 | HT::iterator i = curpos ? ht.find (curpos) : ht.begin (); |
84 | |
87 | |
85 | if (i == ht.end ()) |
88 | if (i == ht.end ()) |