Thursday, 5 September 2013

Is there a way to modify GC behavior for objects of my class

Is there a way to modify GC behavior for objects of my class

I have an application which is going to have millions of objects of a
class that we own. We need our application to perform good on low memory
machines; So we have a solution that lets us store and retrieve objects in
file system on disk.
What I would like to implement is some sort of "shelving" of an object
once its created and not used for so long,
One way is to destory/re-construct; but I heard GC moves long living
objects to Gen 2 Heap; Is there any way I can tell GC that for so and so
types of object, the Gen 2 heap should be replaced by something else ?

No comments:

Post a Comment