Re: [CVS] commit

Date view Thread view Subject view Author view

From: Alexandre Oliva (oliva@dcc.unicamp.br)
Date: Fri Dec 11 1998 - 15:30:22 EST


On Dec 11, 1998, Godmar Back <gback@cs.utah.edu> wrote:

>> > Well, it will make some difference. I think the soft_instanceof calls
>> > to check for thread classes add up.

>> Wouldn't it be simpler to arrange that Thread.finalize() calls a
>> native method (or is itself a native method) that does whatever we
>> need to finalize a Thread? This would obviate the need for a second
>> kind of test.

> Nope. Relying on Thread.finalize is impossible because Thread is
> not a final class and a subclass finalizer may not call super.finalize.
> We fixed that a while ago. Thread still has a method declaration
> `finalize0' in it that bears witness to this attempt.

What if Thread contained an aggregate object like this:

public class Thread {
  private finalizerObject = new Object() {
    void finalize() { Thread.this.finalize0(); /* sp? */ } }
    }
// ...
}

-- 
Alexandre Oliva  http://www.dcc.unicamp.br/~oliva  aoliva@{acm.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Universidade Estadual de Campinas, SP, Brasil


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:57:12 EDT