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

    Details

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

      Description

      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.

        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: