Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8348607

[lworld] Calls to Unsafe.getValue() / Unsafe.putValue() must be updated

XMLWordPrintable

      Following JDK-8348599, Java code using Unsafe.getValue() and Unsafe.putValue() must be update to use the new Unsafe.getFlatValue() and Unsafe.putFlatValue() instead.

      The classes impacted by this change are:
        - java/lang/invoke/VarHandleValues.java (generated class)
        - java/io/ObjectStreamClass.java
        - jdk/internal/misc/Unsafe.java

      Also there are non-direct references in LambdaForm, as `getValue` `getValueVolatile` and the set versions.

      Methods Unsafe.getValue() and Unsafe.putValue() will eventually be removed once no more JDK code uses them.

            liach Chen Liang
            fparain Frederic Parain
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: