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

Add missing Unsafe entry points for addAndGet() family

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b70

      Backports

        Description

        This is missing from JDK-7023898.

        The VM support for intrinsifying Unsafe calls in question is there, but no methods is exposed in Unsafe to link against. Should add:

        public int getAndAddInt(Object o, long offset, int delta)
        public long getAndAddLong(Object o, long offset, long delta)
        public long getAndAddLong(Object o, long offset, long delta)
        public int getAndSetInt(Object o, long offset, int x)
        public long getAndSetLong(Object o, long offset, long x)
        public Object getAndSetObject(Object o, long offset, Object x)

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                shade Aleksey Shipilev
                Reporter:
                shade Aleksey Shipilev
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: