Improving the performance of OpenJDK
Edward Nevill
ed at camswl.com
Fri Feb 20 08:11:36 PST 2009
> > Question: Why is the class data in the wrong endianness in the first place?
> > The data affected is the data embeded in the Java bytecode and the data
> > in the constant pool. Why does the classfile loader not just correct
> > the endianness on load. It has to do verification anyway so it has to
> > trawl through the classfile? It might as well correct the endianness.
>
> No I don't understand this either. However, there are other places than
> the interpreter that read the bytecode, so it's not just a matter of
> fixing it there.
<sarcasm>
Ah yes, but presumably all those other places in the interpreter will use
the wonderfully written and highly optimised get_Java_u2() and friends so
we dont need to trawl through the interpreter. I mean thats why they
were written in the first place.
</sarcasm>
Regards,
Ed.
More information about the zero-dev
mailing list