Use of JCP site is subject to the
JCP Terms of Use and the
Oracle Privacy Policy
|
JSR 337 Maintenance Release 4: Java SE 8
Change Summary
This document describes additional changes to the specification of JSR 337 which is defined by the Final Release in March 2014, Maintenance Release 1 in March 2015, Maintenance Release 2 in March 2019, and Maintenance Release 3 in February 2020. When specification text is provided, insertions are shown on a light green background and deletions are shown struck through on a light red background. Links to pages outside of those explicitly changed by this specification may not be functional. Send comments to java-se-mr-spec-comments@openjdk.java.net. 1
There is no change to the values returned by the system properties
2
Add a new system property,
Add the system property to the table in the specification
of
Add the following details to the specification of
The The Change Specification Request (CSR) associated with this change is
8286766.
This specification of 3
Update the specification of
clone
The CSR associated with this change is
8285099.
This specification of 4
Update the specification of Update the
Phantom reference objects, which are enqueued after the collector
determines that their referents may otherwise be reclaimed. Phantom
references are most often used
for scheduling
to schedule
pre-mortem cleanup actions.
in a more flexible way than is possible with the Java finalization
mechanism
Update the
Soft references are for implementing memory-sensitive caches, weak
references are for implementing canonicalizing mappings that do not
prevent their keys (or values) from being reclaimed, and phantom
references are for scheduling
pre-mortem
post-mortem
cleanup actions.
in a more flexible way than is possible with the Java finalization
mechanism
The CSR associated with this change is
8285096.
These specifications of 5
Update the JNI Specification to align JNI weak global reference with Java phantom references, driven by the change to automatically clear phantom references. Update the section describing Weak Global References in terms of phantom reachability:
Weak global references are a special kind of global reference. Unlike
normal global references, a weak global reference allows the underlying
Java object to be garbage collected. Weak global references may be used in
any situation where global or local references are used.
When the garbage collector runs, it frees the underlying object if the
object is only referred to by weak references. A weak global reference
pointing to a freed object is functionally equivalent to
Update the "Returns" of
Returns a global reference
, or
The CSR associated with this change is
8287056.
These specifications of 6
Modify the specification of Adds Clears this reference object and adds it to the queue with which it is registered, if any.
The CSR associated with this change is
8285101.
This specification of 7
Retire Update the specification of
runFinalizersOnExit
Update the specification of
runFinalizersOnExit
The references to "running finalizers on exit" in
Update the
The virtual machine's shutdown sequence consists of two phases. In the
first phase all
All
registered shutdown hooks, if any, are started in some unspecified order
and allowed to run concurrently until they finish.
In the second phase all uninvoked finalizers are run if
finalization-on-exit has been enabled.
Once this is done the virtual machine halts.
Update the When all the hooks have finished it will then run all uninvoked finalizers if finalization-on-exit has been enabled. Finally, the virtual machine will halt. Update the Unlike the exit method, this method does not cause shutdown hooks to be started. and does not run uninvoked finalizers if finalization-on-exit has been enabled If the shutdown sequence has already been initiated then this method does not wait for any running shutdown hooks or finalizers to finish their work.
The CSR associated with this change is
8287133.
These specifications of
|