Re: Run garbage collection



Eric Sosman wrote:

Wojtek Bok wrote On 10/30/06 12:17,:
Is it possible to run garbage collection on a particular instance of a class?

Probably not.

That is what I thought.

Another problem would be how to do the call, as any usual method needs a reference to the object, yet that is the object we want to GC.

So I guess user one (this is a web app) consumes the memory and user two gets to wait while the GC runs :-))

Thanks!
.



Relevant Pages

  • Re: C free
    ... Eric Sosman wrote: ... The contents of the memory are ... The freed pointer value itself is indeterminate. ... a reference to an object -- and if there is no object, ...
    (comp.lang.c)
  • Re: How do I use the Java API in a Thread-Safe Manner?
    ... > Eric Sosman wrote: ... > newly created object before the objects constructor has actually ... Here's a related reference - ... Prev by Date: ...
    (comp.lang.java.programmer)
  • Re: is an object deep-copied when added to a collection?
    ... are pointing to the same object instance, ... that object are visible by following either reference. ... Eric Sosman ...
    (comp.lang.java.programmer)