News for hackers. Stuff that matters.
Re:On Android, Garbage Collection Can Kill You by kevingadd on Monday June 25, 2012 @02:57PM (#4158076)
Have fun getting that pattern right by hand. The language isn't doing anything to help you.

Make sure you release the instances back to the pool on every exit path, but don't release them if you let a reference escape into another scope.

Have fun debugging the issues that crop up when you accidentally release an instance that's still being used back into the pool.

Have fun hunting down that one code path that isn't returning instances to the pool, and as a result is draining the pool down to 0 and causing you to gain nothing from it.

Re:On Android, Garbage Collection Can Kill You by ww520 on Wednesday June 27, 2012 @03:21AM (#4165944)
Didn't people do all that before the advent of GC? People seemed to manage resources just fine.