2 ms·
Brushing aside the unnecessary and uncalled for rudeness... If you release the last pointer to a complex datastructure that has no other references, you certai
by cageface 16y ago
Brushing aside the unnecessary and uncalled for rudeness...
If you release the last pointer to a complex datastructure that has no other references, you certainly should hope it gets "torn down" = deallocated. If that object happened to contain a lot of other objects they will each in turn have to be released. Obviously your main code execution path is going to halt while this graph is walked and released.
Maybe Jimbokun is right that you can control this better in a ref counting scheme than in a typical GC but you're hardly immune from the problem.