Uploaded image for project: 'CCC Migration Project'
  1. CCC Migration Project
  2. CCC-8131045

Obsolete JNIDetachReleasesMonitors

    XMLWordPrintable

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P3
    • Resolution: Approved
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Compatibility Kind:
      behavioral
    • Compatibility Risk:
      minimal
    • Compatibility Risk Description:
      Minimal - it is not expected that this flag is being used.
    • Interface Kind:
      add/remove/modify command line option
    • Scope:
      Implementation

      Description

      Summary

      Define JNIDetachReleasesMonitors as obsolete

      Problem

      The JNIDetachReleasesMonitors flag was added to JDK 6 when it was realized that the VM was not compliant with the JNI specification regarding the release of monitors when a JNI attached thread detached - see JDK-6336479, and also:

      http://www.oracle.com/technetwork/java/javase/adoptionguide-137484.html#2.1.1

      The flag allowed for restoration of the incorrect behaviour if an application was somehow relying on it. By now all applications should themselves be JNI-spec compliant and this workaround should not be needed, so the flag should be removed.

      Solution

      We can obsolete the JNIDetachReleasesMonitors flag in JDK 9 (accept it, report it is obsolete and ignore it) and then expire (remove) it in JDK 10.

      Specification

      The JNIDetachReleasesMonitors flag is made obsolete. It's use will be accepted, but trigger no action other than issuing an informational message that the flag is now obsolete.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dholmes David Holmes
              Reporter:
              dholmes David Holmes
              Reviewed By:
              Ioi Lam
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: