Quick Optimization Question

Tom Tromey tromey@redhat.com
Wed Mar 28 16:23:00 GMT 2007


>>>>> "Mohan" == Mohan Embar <gnustuff@thisiscool.com> writes:

Mohan> public static final byte[] FOO = new byte[] {....};
Mohan> ...will gcj know to translate FOO.length into
Mohan> a constant at compile time?
Nope.
There used to be code to do this in some situations but I think it was
removed.
My "invariant hoisting" pass has some of the machinery to fix this.
It just needs to be taught about new[]. However, getting this patch
in may be troublesome.
Tom


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /