JDK 9 Early Access Now Available
Written by Kay Ewbank   
Thursday, 16 October 2014

You can now try out the new JDK 9, though only in an early adopter version at the moment.

jdklogo

The next version of JDK, currently under development, is being made available to early adopters. Announcing the availability in the technical keynote at JavaOne, Mark Reinhold, Chief Architect of the Java Platform Group for Oracle, gave some details of how this fits with Java 9 and beyond.

 

  

The JEPs targeted to JDK 9, so far, are:

  • process API updates
  • improved contended locking
  • segmented code cache
  • lightweight JSON API
  • phase two of the smart Java compilation
  • modular source code.

JEPs, Java Enhancement Proposals, are being used to let new features be discussed and developed without going through a full formal specification (JSR). JEPs that are popular and successful will be put forward as part of the next full formal specification.

The first JEP in the target list for JDK 9 is the improved process API for controlling and managing operating-system processes. The motivation for this change is the fact that the current API often forces developers to resort to native code. Java SE provides limited support for native operating-system processes. It provides a basic API to setup the environment and start a process. The process streams can, since Java SE 7, be redirected to files, pipes, or can be inherited. Once started, the API can be used to destroy the process and/or wait for the process to terminate.

Enterprise apps and containers with several Java virtual machines and processes need the ability to get the pid (or equivalent) of the current Java virtual machine and the pid of processes created with the existing API. They also need to be able to get and set the process name of the current Java virtual machine and processes created with the existing API, and to enumerate Java virtual machines and processes on the system. Other changes include the ability to deal with (and destroy) process trees, and to deal with many sub-processes, perhaps multiplexing the output or error streams to avoid creating a thread per sub-process.

The improvements to contended locking are designed to improve the performance of contended Java object monitors in situations where multiple threads compete for access to objects.

The lightweight JSON API lets your apps consume and generate JSON documents and data streams. It includes parsing APIs that provide a choice of parsing token stream, event stream, or immutable tree representation views of JSON documents and data streams. There’s also a generator style API for JSON data stream output and for JSON "literals", and a transformer API that takes as input an existing value tree and produces a new value tree as result.

The long term goal for Java SE 9 is the modularization of the source code as part of Project Jigsaw. This will enable developers to work with Java SE on smaller, low-power devices. Other goals include improving the security and maintainability and enabling improved application performance. This round of JEPs starts that process, but much more work on modularizing the JRE and JDK images is still in the future.

You can download the current early adopter release from the JDK 9 project website.  

 

More Information

JDK 9 Project

Related Articles

Java JDK 9 Proposals

Oracle Valhalla

Jigsaw Shelved Until Java 9

Java 8 Launched With Supporting Line-Up

 

To be informed about new articles on I Programmer, install the I Programmer Toolbar, subscribe to the RSS feed, follow us on, Twitter, FacebookGoogle+ or Linkedin,  or sign up for our weekly newsletter.

 

Banner


TestSprite Announces End-to-End QA Tool
14/11/2024

TestSprite has announced an early access beta program for its end-to-end QA tool, along with $1.5 million pre-seed funding aimed at accelerating product development, expanding the team, and scaling op [ ... ]



Copilot Improves Code Quality
27/11/2024

Findings from GitHub show that code authored with Copilot has increased functionality and improved readability, is of better quality, and receives higher approval rates than code authored without it.

 [ ... ]


More News

 

espbook

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Thursday, 16 October 2014 )