C2: Separate volatile barrier and full barrier

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • 27
    • Affects Version/s: 19
    • Component/s: hotspot

      In C2, a MemBarVolatile is used for both:

      - A full fence
      - A volatile store-load fence (a store-load fence but only affects volatile accesses)

      We should separate them, allowing accesses to be optimized better around volatile accesses.

      In addition, on RISC-V, a MemBarVolatile is incorrectly lowered to a store-load fence, which is weaker than a full fence on this architecture.

            Assignee:
            Quan Anh Mai
            Reporter:
            Quan Anh Mai
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: