Speed up array allocation

Bryce McKinlay bryce@albatross.co.nz
Fri Jan 5 21:44:00 GMT 2001


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 ]




More information about the Java-patches mailing list