AArch64: Generate atomic match rules from M4 stencils

XMLWordPrintable

    • b27

      Current RMW atomic match rules are all over the place in AArch64.

      CAE and weak CAS rules are generated with the help of cas.m4, and then are supposed to be copy-pasted (?) into aarch64.ad. I did it about 20 times when fixing JDK-8372154, gets tedious very quickly.

      Strong CAS and get-and-set rules are still in the same section of aarch64.ad, and are written by hand. Yet, those can be automatically generated from M4 stencils as well.

      We need to clean this up, something like this:
      https://github.com/openjdk/jdk/compare/master...shipilev:jdk:JDK-8372188-aarch64-move-rmw-separate-ad

            Assignee:
            Aleksey Shipilev
            Reporter:
            Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: