No. You cannot force garbage collection. However, you can make
an object to become 'subject to' garbage collection by making it
'unreachable.' (assigning the reference varaible to null, for
example)
Because the garbage collector runs asynchronously to your program as a
separate thread, you cannot predict when it will execute, which unreachable
objects it will reclaim, and when it will reclaim those objects.
Tae
|
- Garbage collection Campbell
- Re: Garbage collection David Chisholm
- Re: Garbage collection Tae Kang
- Re: Garbage collection Pedro Teixeira
- Re: Garbage collection Taylor Gautier
- Re: Garbage collection David Mossakowski
- Re: Garbage collection ACI Team (Chennai)
- Re: Garbage collection Reisman Jason
- OFFTOPIC: HTTP Tool Taylor Gautier
- Re: Garbage collection David Orkin
- Re: Garbage collection brian
- Re: Garbage collection Kirkdorffer, Daniel
- FW: Garbage collection Pfeifer, Therese M