Java's JIT compiler, called HotSpot, and written in C++, is what allows Java bytecode to become assembly instructions to run on your computer. Currently, on x86 devices, it generates assembly that isn't as performant as is could be when you multip…
Java’s JIT compiler, called HotSpot, and written in C++, is what allows Java bytecode to become assembly instructions to run on your computer. Currently, on x86 devices, it generates assembly that isn’t as performant as is could be when you multiply two 64-bit numbers to get a 128-bit result (this is common in hashing). I’m contributing to OpenJDK (the OSS project where HotSpot is located) to make this faster (my benchmarks show about 40% performance improvement), by writing & modifying the C++ and some DSL code to generate better x86 assembly. It’s really fun, and currently in review by Oracle!
I used GitHub Copilot Chat to help me navigate around the OpenJDK repo / find where some things were located, as OpenJDK is MASSIVE! :)