LWN.net Logo

Why 64-Bit Java Is Slow

Why 64-Bit Java Is Slow

Posted Jun 27, 2012 1:28 UTC (Wed) by ldo (subscriber, #40946)
In reply to: Pettenò: Debunking x32 myths by butlerm
Parent article: Pettenò: Debunking x32 myths

Maybe the reason for the slowdown going from x86 to AMD64 has to do with the fact that the Sun JVM is stack-based, not register-based. Maybe an interpreter with a register-based architecture, like Dalvik (as used in Android) will benefit better from 64-bit architectures.


(Log in to post comments)

Why 64-Bit Java Is Slow

Posted Jun 27, 2012 1:47 UTC (Wed) by alankila (subscriber, #47141) [Link]

Java is defined as a stack machine. I don't think people execute it as a stack machine.

Why 64-Bit Java Is Slow

Posted Jun 27, 2012 2:50 UTC (Wed) by Cyberax (✭ supporter ✭, #52523) [Link]

JVMs only use interpreter during startup. Then the code is JIT-compiled into native code and it doesn't matter at all whether the bytecode is stack-based or register-based. After all, they can be trivially interconverted.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds