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

Build failure due to MaxVectorSize was not declared when C2 is disabled after JDK-8293254

XMLWordPrintable

    • b15
    • Verified

      The following build failure was observed when C2 was disabled by --with-jvm-features=-compiler2.
      ```
      * For target hotspot_variant-server_libjvm_objs_stubGenerator_x86_64_arraycopy.o:
      /home/jvm/jiefu/docker/jdk-907/src/hotspot/cpu/x86/stubGenerator_x86_64_arraycopy.cpp: In member function 'u_char* StubGenerator::generate_disjoint_copy_avx3_masked(u_char**, const char*, int, bool, bool, bool)':
      /home/jvm/jiefu/docker/jdk-907/src/hotspot/cpu/x86/stubGenerator_x86_64_arraycopy.cpp:403:27: error: 'MaxVectorSize' was not declared in this scope
         bool use64byteVector = (MaxVectorSize > 32) && (avx3threshold == 0);
                                 ^~~~~~~~~~~~~
      /home/jvm/jiefu/docker/jdk-907/src/hotspot/cpu/x86/stubGenerator_x86_64_arraycopy.cpp: In member function 'u_char* StubGenerator::generate_conjoint_copy_avx3_masked(u_char**, const char*, int, address, bool, bool, bool)':
      /home/jvm/jiefu/docker/jdk-907/src/hotspot/cpu/x86/stubGenerator_x86_64_arraycopy.cpp:624:27: error: 'MaxVectorSize' was not declared in this scope
         bool use64byteVector = (MaxVectorSize > 32) && (avx3threshold == 0);
                                 ^~~~~~~~~~~~~
      /home/jvm/jiefu/docker/jdk-907/src/hotspot/cpu/x86/stubGenerator_x86_64_arraycopy.cpp: In member function 'void StubGenerator::arraycopy_avx3_special_cases_conjoint(XMMRegister, KRegister, Register, Register, Register, Register, Register, int, Register, bool, Label&, Label&)':
      /home/jvm/jiefu/docker/jdk-907/src/hotspot/cpu/x86/stubGenerator_x86_64_arraycopy.cpp:860:16: error: 'MaxVectorSize' was not declared in this scope
         bool avx3 = (MaxVectorSize > 32) && (VM_Version::avx3_threshold() == 0);
                      ^~~~~~~~~~~~~
      In file included from /home/jvm/jiefu/docker/jdk-907/src/hotspot/share/utilities/globalDefinitions.hpp:29,
                       from /home/jvm/jiefu/docker/jdk-907/src/hotspot/share/memory/allocation.hpp:29,
                       from /home/jvm/jiefu/docker/jdk-907/src/hotspot/share/memory/arena.hpp:28,
         ... (rest of output omitted)
      ```

            jiefu Jie Fu
            jiefu Jie Fu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: