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

Primitive atomic_cmpxchg_in_heap_at() in BarrierSet::Access needs to call non-oop raw method

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 12
    • None
    • hotspot
    • None
    • gc
    • b02
    • generic
    • generic

      In BarrierSet::Access::atomic_cmpxchg_in_heap_at() we're calling Raw::oop_atomic_cmpxchg_at() which would attempt to treat the operation as oop or narrowOop, including (de-)compression of narrowOops. We need to call Raw::oop_atomic_cmpxchg() instead.

      I suppose this hasn't blown up before because binding primitive Access API is currently disabled.

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

              Created:
              Updated:
              Resolved: