From: Godmar Back (gback@cs.utah.edu)
Date: Sun Jan 03 1999 - 16:06:11 EST
I just realized we have a serious problem here; and making the ref count
approach work for utf8const may not be as straightforward as I thought.
The fundamental problem is that the refs to the utf8 for class names,
method names, method signatures, field names and (sometimes) types as well
as for constant pool entries have to be released.
Doing that renders the class object to which they're attached unfunctional.
However, the class object must remain functional until all objects of that
class have disappeared.
An approach that simply used the finalizer function in gcFuncs to release
those refs cannot guarantee this. Similar problems occur for other the
reclamation of the memory for fields, methods, gc_layout, interfaces, etc.
For this reason, I will introduce a "real" finalizer, one that is invoked
synchronously when an object is actually freed.
- Godmar
This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:57:28 EDT