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

objArrayOopDesc::atomic_compare_exchange_oop() must use obj+offset in HeapAccess call

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 11
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      gc
    • Resolved In Build:
      b10
    • CPU:
      generic
    • OS:
      generic

      Description

      objArrayOopDesc::atomic_compare_exchange_oop() currently computes and uses a raw pointer to pass to HeapAccess::oop_atomic_cmpxchg(). It should use the object+offset variant because it's accessing the heap and GC might need to resolve the target object (e.g. Shenandoah).

        Attachments

          Activity

            People

            Assignee:
            rkennke Roman Kennke
            Reporter:
            rkennke Roman Kennke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: