ByteBuffer and ByteOrder
p.thio at xs4all.nl
Thu Feb 10 13:44:50 PST 2011
I have a question about the compilation of a test program, which uses a ByteBuffer. The program set the byte order to little endian and uses the method ByteBuffer.getLong. The program runs on Linux x86_64, which is also little endian. The compiler assembler output contains a block for little endian conversion and a block for big endian conversion. This block contains bswap instructions. I am wondering if the code for big endian conversion can be eliminated.
I attached the test program.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 768 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20110210/877799c1/attachment.obj
More information about the hotspot-compiler-dev