MCPcopy Create free account
hub / github.com/beefytech/Beef / ReleaseAtom

Method ReleaseAtom

IDEHelper/Compiler/BfSystem.cpp:2247–2264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2245}
2246
2247void 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
2266void BfSystem::ProcessAtomGraveyard()
2267{

Callers 2

VisitMethod · 0.80
FreeMembersMethod · 0.80

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected