This is the mail archive of the java-patches@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Speed up array allocation


>>>>> "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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]