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

Aarch64: Use stp to initialize object on C1

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • tbd
    • 18
    • hotspot
    • aarch64
    • generic

      It is found that in C1_MacroAssembler::initialize_object which we can use stp to replace str.
      @@ -250,13 +249,16 @@ void C1_MacroAssembler::initialize_object(Register obj, Register klass, Register
              for (int i = -unroll; i < 0; i++) {
                if (-i == remainder)
                  bind(entry_point);
      - str(zr, Address(rscratch1, i * wordSize));
      + stp(zr, zr, Address(rscratch1, i * 2 * BytesPerWord));

            whuang Wang Huang
            whuang Wang Huang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: