¡@

Home 

2014/10/15 ¤U¤È 10:05:12

iphone Programming Glossary: collector

What do “Dirty” and “Resident” mean in relation to Virtual Memory?

http://stackoverflow.com/questions/5176074/what-do-dirty-and-resident-mean-in-relation-to-virtual-memory

share improve this question Dirty memory is memory which has been changed somehow that's memory which the garbage collector has to look at and then decide what to do with it. Depending on how you build your data structures you could cause the garbage.. at and then decide what to do with it. Depending on how you build your data structures you could cause the garbage collector to mark a lot of memory as dirty having each garbage collection cycle take longer than required. Keeping this number low..

Does iOS 5 have garbage collection?

http://stackoverflow.com/questions/6576674/does-ios-5-have-garbage-collection

answers. ARC is a kind of GC in that it automates memory freeing but has a number of differences from a good garbage collector. Firstly it's mainly a compiler technology. The compiler knows about Cocoa's reference counting guidelines so it inserts.. It works just like if you'd written the retains and releases yourself it simply inserts them for you. Normal garbage collectors keep track of your program's memory while it is running. Second since it is just like retain and release it can't catch.. . You need to take the same precautions to prevent them. It also uses resources differently from an automatic garbage collector. Garbage collectors have to scan for unreferenced memory and collect it which is expensive and can lead to stuttering on..

How do weak and strong references look like in objective-c?

http://stackoverflow.com/questions/7306601/how-do-weak-and-strong-references-look-like-in-objective-c

programming a weak reference is a reference that does not protect the referenced object from collection by a garbage collector . How do those two types of references look like in code Does a weak reference is a reference made by an autoreleased message..

NSMakeCollectable and ARC doesn't work

http://stackoverflow.com/questions/8594721/nsmakecollectable-and-arc-doesnt-work

share improve this question NSMakeCollectable is for the benefit of the essentially deprecated Objective C garbage collector. ARC knows nothing about it. You must use a special casting attribute usually __bridge_transfer to ensure that the memory..