| 2245 | } |
| 2246 | |
| 2247 | void BfSystem::ReleaseAtom(BfAtom* atom) |
| 2248 | { |
| 2249 | if (--atom->mRefCount == 0) |
| 2250 | { |
| 2251 | if (atom->mKind == BfAtom::Kind_Anon) |
| 2252 | { |
| 2253 | mAnonymousAtomCount--; |
| 2254 | BF_ASSERT(mAnonymousAtomCount >= 0); |
| 2255 | } |
| 2256 | |
| 2257 | mAtomGraveyard.push_back(atom); |
| 2258 | return; |
| 2259 | } |
| 2260 | |
| 2261 | BF_ASSERT(atom->mRefCount > 0); |
| 2262 | // Sanity check |
| 2263 | BF_ASSERT(atom->mRefCount < 1000000); |
| 2264 | } |
| 2265 | |
| 2266 | void BfSystem::ProcessAtomGraveyard() |
| 2267 | { |
no test coverage detected