This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: gcj: always emit static array data
Anthony Green <green@cygnus.com> writes:
> Thinking about it for a second now, it seems like we should be able to
> get the compiler to create these array objects ahead of time, just
> like we do for instances of java.lang.Class.
In fact, there is (dis-abled) code in the compiler to do it.
It's in java_lang_expand_expr case NEW_ARRAY_INIT in expr.c.
The only thing missing to enable it is pre-generating (static) vtables
for primitives types and arrays of primitive types.
There should be a note about this in the internal TODO file (which I've
repeatedly suggested should be added to the web site).
--
--Per Bothner
bothner@pacbell.net per@bothner.com http://home.pacbell.net/bothner/