Latest Release of the GraalVM Comes with Experimental JDK 16 Binaries
- By John K. Waters
- April 22, 2021
An update of the GraalVM high-performance Java environment was announced this week. GraalVM 21.1, which is available in both community and enterprise editions, introduces new experimental binaries based on JDK 16.0.1, the current release.
All components in the binaries are considered experimental, explained Oleg Šelajev, developer advocate for GraalVM at OracleLabs, in a blog post, regardless of their status in other distribution versions.
This release comes with two compiler improvements worth noting: new optimization that eliminates unneeded memory barriers on sequential volatile writes on x86, and support in the GraalVM Enterprise compiler for vectorizing loops that have the hashCode-like pattern. Hashcode is often computed with an idiom like: hash = c * hash + array[i] , which the compiler can now recognize and vectorize, Šelajev explained.
"The JIT (just-in-time) mode for Java applications is perhaps the most tested capability for these builds," Šelajev added, "so if you are interested in running your Java applications with the GraalVM compiler or are currently using the JVMCI compiler in any other JDK 16 OpenJDK builds, consider trying out the GraalVM binaries. These include the latest OpenJDK changes and the latest GraalVM compiler changes which is the best of both worlds setup."
"Updates to the compiler are especially exciting," Šelajev said, "because they improve GraalVM across the board, since the compiler underpins the performance of all the various languages supported on GraalVM!"
John K. Waters is the editor in chief of a number of Converge360.com sites, with a focus on high-end development, AI and future tech. He's been writing about cutting-edge technologies and culture of Silicon Valley for more than two decades, and he's written more than a dozen books. He also co-scripted the documentary film Silicon Valley: A 100 Year Renaissance, which aired on PBS. He can be reached at [email protected].