Object reference counting
- From: Chris <spam_me_not@xxxxxxxxxx>
- Date: Fri, 29 Dec 2006 19:02:21 -0600
I think the answer is no, but is there any way for me to know how many Objects reference a given Object?
The given object contains a reference to a disk file, and I'd like to delete the file when there are no more threads that reference the Object. In other words, when the Object is available for garbage collection, I want to get rid of the file.
I think finalizers were intended for this purpose, but there is quite a bit out there on why using finalizers is a bad idea.
.
- Follow-Ups:
- Re: Object reference counting
- From: andrewmcdonagh
- Re: Object reference counting
- From: Mike Schilling
- Re: Object reference counting
- From: Arne Vajhøj
- Re: Object reference counting
- Prev by Date: Re: ClassLoaders and finding fully-qualified names
- Next by Date: Re: systematic file(s) deletion
- Previous by thread: Problem with EL (Expression Language) in JST /JSP
- Next by thread: Re: Object reference counting
- Index(es):
Relevant Pages
|
|