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

Invalid constraints in memset_with_concurrent_readers_sparc.cpp inline assembly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • hotspot
    • None
    • gc
    • b99
    • sparc

      The inline assembly in memset_with_concurrent_readers_sparc.cpp uses the special "+" and "&" syntax to specify that the registers are input+output and earlyclobber respectively. However, as described by the gcc documentation (http://gcc.gnu.org/onlinedocs/gcc/Modifiers.html ):

      "If you specify ‘=’ or ‘+’ in a constraint, you put it in the first character of the constraint string."

      Also, when using the '+' the constraint needs to be listed in the set of output constraints, since the register is modified by the instruction.

            mikael Mikael Vidstedt
            mikael Mikael Vidstedt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: