Garbage Collection and Skipped Turns
Fragment of a discussion from Talk:XanderCat
Jump to navigation
Jump to search
Local variables are stored in the stack and not the heap, so they don't affect garbage collection.
You should look after "new" abuse, like Wolfman said. Although sometimes the instantiation is implicit and simply searching for the "new" keyword doesn't always work.
There are heap profiling tools which locate automatically where too many objects are being instantiated.
MN