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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 11
    • Affects Version/s: None
    • Component/s: hotspot
    • None
    • gc
    • b10
    • generic
    • generic

      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).

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

              Created:
              Updated:
              Resolved: