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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 11
    • None
    • 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).

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

              Created:
              Updated:
              Resolved: