Add missing Unsafe entry points for addAndGet() family

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 8
    • Affects Version/s: None
    • Component/s: core-libs
    • None
    • b70

      This is a cloned issue so that we have a libs CR and a hotspot CR.

      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)

            Assignee:
            Aleksey Shipilev
            Reporter:
            David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: