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

Remove obsolete Unsafe.putOrdered{X} methods, usages, runtime and compiler support

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • hotspot
    • b114

      With VarHandles, we have the full set of U.put{X}Release methods, which do exactly the same thing as Unsafe.putOrdered{X}. It prompts the cleanup: remove putOrdered methods from jdk.internal.misc.Unsafe.java, remove entries from unsafe.cpp, purge associated vmSymbols, and cleanup compiler code.

      The only thing left would be sun.misc.Unsafe.putOrdered{X}, which we cannot yet remove, but we can delegate them to jdk.internal.misc.Unsafe.put{X}Release all the same.

            shade Aleksey Shipilev
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: