JDK-8306007 : java/lang/String/concat/IntegerMinValue.java fails on AIX
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 21
  • Priority: P3
  • Status: Closed
  • Resolution: Won't Fix
  • OS: aix
  • CPU: ppc
  • Submitted: 2023-04-14
  • Updated: 2023-06-16
  • Resolved: 2023-06-16
Related Reports
Relates :  
Description
The test  java/lang/String/concat/IntegerMinValue.java  runs into

java.lang.IllegalStateException: Failed: -2
       at IntegerMinValue.test(IntegerMinValue.java:48)
       at IntegerMinValue.main(IntegerMinValue.java:56)
       at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
       at java.base/java.lang.reflect.Method.invoke(Method.java:578)
       at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
       at java.base/java.lang.Thread.run(Thread.java:1592)
 
This happens in the second variant  `@compile -XDstringConcat=inline IntegerMinValue.java` 

We see it on an AIX 7.2 machine, XLC 16 compiler,  POWER8; fastdebug binaries are used.
Comments
compiler switch to xlc17 seems to solve this issue.
16-06-2023

Switch to xlc17 is planned for AIX and the new xlc17 is now supported for jdk21/22 so closing this because the issue does not show up any more when building with the new compiler.
16-06-2023

When using the XLC17 compiler instead of XLC16, exact version is IBM Open XL C/C++ for AIX 17.1.1 (5725-C72, 5765-J18), version 17.1.1.2, clang version 15.0.0 (build 3948f09) the error is gone (again tested with fastdebug binaries and also product binaries).
04-05-2023

[~mdoerr] should we disable OptimizeStringConcat on AIX by default ? As long as the errors occur it is probably better to disable it than having the errors.
25-04-2023

I can reproduce it with the product build on AIX; problem disappears in product too with -XX:-OptimizeStringConcat set .
21-04-2023

ILW = test failure, wrong result; aix ppc only; -XX:-OptimizeStringConcat = MMM = P3
14-04-2023

Note: Test has passed on both, Big and little Endian linux. Fails on AIX built with xlc 16.01.0000.0013. Problem disappears with -XX:-OptimizeStringConcat I couldn't reproduce it with the slowdebug build.
14-04-2023