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

C2: Ensure dependent memory accesses can't float past ReachabilityFence

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 26
    • hotspot

      If a memory access (either load or store) dependent on a referent of a ReachabilityFence node floats past the corresponding ReachabilityFence node, it may break a ReachabilityFence guarantee if it then floats past a safepoint (those aren't classified as interfering by JDK-8290892).

      If ReachabilityFence is represented as a memory barrier, it would guarantee such scheduling is impossible, but MemBar IR representation is prohibitively expensive (from performance POV).

      One way to address it is to make interfering safepoint enumeration algorithm in JDK-8290892 more conservative and consider any safepoints reachable from referent control as interfering.

            Unassigned Unassigned
            vlivanov Vladimir Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: