… | |
… | |
104 | // periodically test refcounts == 0 for a few strings |
104 | // periodically test refcounts == 0 for a few strings |
105 | // this is the ONLY thing that erases stuff from ht. keep it that way. |
105 | // this is the ONLY thing that erases stuff from ht. keep it that way. |
106 | void |
106 | void |
107 | shstr::gc () |
107 | shstr::gc () |
108 | { |
108 | { |
109 | if (expect_true (next_gc > 0)) |
109 | if (ecb_expect_true (next_gc > 0)) |
110 | return; |
110 | return; |
111 | |
111 | |
112 | static const char *curpos; |
112 | static const char *curpos; |
113 | |
113 | |
114 | auto i = curpos ? ht.find (curpos) : ht.begin (); |
114 | auto i = curpos ? ht.find (curpos) : ht.begin (); |