1 | |
|
|
2 | /* |
1 | /* |
3 | * shstr.C |
2 | * shstr.C |
4 | */ |
3 | */ |
5 | |
4 | |
6 | #include <cstring> |
5 | #include <cstring> |
… | |
… | |
72 | // periodically test refcounts == 0 for a few strings |
71 | // periodically test refcounts == 0 for a few strings |
73 | // this is the ONLY thing that erases stuff from ht. keep it that way. |
72 | // this is the ONLY thing that erases stuff from ht. keep it that way. |
74 | void |
73 | void |
75 | shstr::gc () |
74 | shstr::gc () |
76 | { |
75 | { |
77 | return; //D |
|
|
78 | //D currently disabled: some datastructures might still store them |
|
|
79 | //D but their pointers will become invalidated |
|
|
80 | static const char *curpos; |
76 | static const char *curpos; |
81 | |
77 | |
82 | HT::iterator i = curpos ? ht.find (curpos) : ht.begin (); |
78 | HT::iterator i = curpos ? ht.find (curpos) : ht.begin (); |
83 | |
79 | |
84 | if (i == ht.end ()) |
80 | if (i == ht.end ()) |