GenShen: investigate optimization of ShenandoahBarrierSet::AccessBarrier::oop_atomic_cmpxchg_not_in_heap()

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: hotspot
    • gc

      Reviewer of https://github.com/openjdk/jdk/pull/20395 raises the question:

      if CAS failed, no store actually happened, and we don't need the post-store barrier, right? I.e.:

      if (ShenandoahCardBarrier && (result == compare_value)) {
        ...
      }

      I don't expect this to matter in this barrier set, but I think C2 side would benefit from this. (I remember doing this in C2 CAS intrinsic expansion...)

            Assignee:
            William Kemper
            Reporter:
            Kelvin Nilsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: