This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: RFC: Tell do_allocate_static_fields which fields to allocate
Bryce McKinlay writes:
> Andrew Haley wrote:
> > This is a better patch.
> >
> > It mimics the technique used when allocating an interpreted class.
> > It's all rather complicated, but that's hard to avoid as long as we
> > want to continue to support the "old" BC-ABI.
> >
>
> Instead of duplicating it, couldn't this code actually be shared with
> the interpreter? It looks to me that this could be done by making
> _Jv_InterpClass a specialization of _Jv_IndirectClass (with the
> field_initializers field in _Jv_IndirectClass), and moving
> do_allocate_static_fields to link.cc to make it more generic.
The field_initializers field has a different type, and the way it is
used is semantically different AFAICS.
Andrew.