Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8257027 [JEP 390] Diagnose synchronization on @ValueBased classes
  3. JDK-8252182

[valhalla/jep390] Diagnose synchronization on @ValueBased classes

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: repo-valhalla
    • Component/s: hotspot
    • Labels:
      None

      Description

      Enhance the work done in JDK-8242263 to warn about synchronization performed on any class that is declared with a @ValueBased annotation.

      The same behaviors as implemented by JDK-8242263 should apply—VM abort, logged warning, or JFR event.

      The -XX:DiagnoseSyncOnPrimitiveWrappers flag should probably be renamed to indicate that it's a check on all value-based classes. (It is probably *not* useful to have two different knobs, one for primitives and one for other value-based classes.)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lfoltan Lois Foltan
              Reporter:
              dlsmith Dan Smith
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: