Speed up array allocation

Tom Tromey tromey@redhat.com
Fri Jan 5 12:46:00 GMT 2001


>>>>> "Bryce" == Bryce McKinlay <bryce@albatross.co.nz> writes:

Bryce> This patch introduces a new class field, "arrayclass", in which
Bryce> a pointer to the array class representing an array of itself is
Bryce> kept.

BTW this patch is fine by me.  Alex will have to approve the compiler
part.

Won't we have to remove the overloading of the methods field at some
point?  Can't we use reflection to query an array class about the
methods it supports?  If so we'll need the methods field to be correct
to avoid confusing the reflection code.

BTW could you remove the comment about how methods is used for a
primitive class?  I believe with your patch that part of the comment
is wrong.

Tom


More information about the Java-patches mailing list