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

New gtest for JDK-8281472 fails on 32-bit systems

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 19
    • hotspot
    • 32-bit

    • 19

      intx is 32-bit on a 32-bit system but the test expects it to be larger than a jint.

      * For target hotspot_variant-server_libjvm_gtest_objs_test_largeOptions.o:
      /home/runner/work/jdk/jdk/jdk/test/hotspot/gtest/runtime/test_largeOptions.cpp: In member function 'virtual void LARGE_OPTION_large_ints_vm_Test::TestBody()':
      /home/runner/work/jdk/jdk/jdk/test/hotspot/gtest/runtime/test_largeOptions.cpp:49:51: error: integer overflow in expression of type 'jint' {aka 'int'} results in '-2147483648' [-Werror=overflow]
         49 | for (intx x = max_jint - 1; x <= (intx)max_jint + 1; x++) {
            | ~~~~~~~~~~~~~~~^~~
      /home/runner/work/jdk/jdk/jdk/test/hotspot/gtest/runtime/test_largeOptions.cpp: In member function 'virtual void LARGE_OPTION_small_ints_vm_Test::TestBody()':
      /home/runner/work/jdk/jdk/jdk/test/hotspot/gtest/runtime/test_largeOptions.cpp:62:51: error: integer overflow in expression of type 'jint' {aka 'int'} results in '2147483647' [-Werror=overflow]
         62 | for (intx x = min_jint + 1; x >= (intx)min_jint - 1; x--) {
            | ~~~~~~~~~~~~~~~^~~

            iklam Ioi Lam
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: