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

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

XMLWordPrintable

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

            wkemper William Kemper
            kdnilsen Kelvin Nilsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: