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


Tom Tromey wrote:

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

The 'methods' overload is still needed to associate an array class back
to its element type. I'll clarify the comments about this. Perhaps we
need to special case array classes in the reflection code? Methods for an
array class always == methods for object class.

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

The comments from natClassLoader.cc should be gone. Are there others
somewhere?

regards

  [ bryce ]



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