Top "Garbage-collection" questions

Garbage collection (GC) is a form of automatic memory management which attempts to reclaim garbage, or memory occupied by objects that are no longer in use by the program.

Prevent .NET Garbage collection for short period of time

I have a high performance application that is handling a very large amount of data. It is receiving, analysing and …

c# performance garbage-collection
Best practices for reducing Garbage Collector activity in Javascript

I have a fairly complex Javascript app, which has a main loop that is called 60 times per second. There seems …

javascript garbage-collection
A fatal error has been detected by the Java Runtime Environment: SIGSEGV (0xb) at pc=0x00002b2f7e9b2744, pid=28778, tid=1138739520

I am getting the following error while executing the program. And this is not always happening. The code contains some …

java jakarta-ee garbage-collection jvm glassfish-3
Java Thread Garbage collected or not

This question was posted on some site. I didnt find right answers there, so I am posting it here again. …

java multithreading garbage-collection
Force Garbage Collection in AS3?

Is it possible to programmatically force a full garbage collection run in ActionScript 3.0? Let's say I've created a bunch of …

apache-flex flash actionscript-3 garbage-collection
Java GC: why two survivor regions?

For Sun/Oracle's JVM, I've read that the GC algo divides new generation into one Eden region and two survivor …

java garbage-collection jvm
What best practices for cleaning up event handler references?

Often I find myself writing code like this: if (Session != null) { Session.KillAllProcesses(); Session.AllUnitsReady -= Session_AllUnitsReady; Session.AllUnitsResultsPublished …

c# events garbage-collection dispose
Lock statement vs Monitor.Enter method

I suppose that this is an interesting code example. We have a class -- let's call it Test -- with …

c# command-line-interface garbage-collection
What do GC_FOR_MALLOC, GC_EXPLICIT, and other GC_* mean in Android Logcat?

If you see the Android logs, you may see a lot of those things. What do they mean, knowing those …

android garbage-collection logcat
Forcing garbage collection to run in R with the gc() command

Periodically I program sloppily. Ok, I program sloppily all the time, but sometimes that catches up with me in the …

r garbage-collection