Re: new gc interface

Date view Thread view Subject view Author view

From: Alexandre Oliva (oliva@dcc.unicamp.br)
Date: Wed Jan 27 1999 - 12:12:22 EST


On Jan 27, 1999, Godmar Back <gback@cs.utah.edu> wrote:

>>
>> > Implementations of the interface will look like this:
>>
>> > struct _CollectorImpl {
>> > Collector collector; // pointer to shared vtable
>> > gcList gclists[5];
>>
>> I still don't see the point of adding an extra level of indirection
>> (although only at source code level). It seems a mere inconvenience
>> to me.
>>

> Look at this picture to better understand what's going on:

Ok, I understand what's going on, but I still don't buy the need for
the additional struction. We'd be able to accomplish exactly the same
with an explicit pointer to the vtable within _CollectorImpl, wouldn't
we?

-- 
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:50 EDT