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--) {
| ~~~~~~~~~~~~~~~^~~
* 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--) {
| ~~~~~~~~~~~~~~~^~~
- duplicates
-
JDK-8282773 Refactor parsing of integer VM options
-
- Resolved
-
- relates to
-
JDK-8282593 JDK-8281472 breaks 32-bit builds and gtests
-
- Resolved
-
-
JDK-8281472 JVM options processing silently truncates large illegal options values
-
- Resolved
-