Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work around compiler bug when reading SCC hints #7120

Merged
merged 1 commit into from
Sep 19, 2019

Conversation

ymanton
Copy link
Member

@ymanton ymanton commented Sep 17, 2019

XL C++ 13.1.3 on AIX generates incorrect code for the line in question.

The stack location containing the hint we fetch from the SCC is read and
tested for ==0 before it is written to, so we intermittently take the wrong
path and try to update a non-existent hint, which fails.

Signed-off-by: Younes Manton ymanton@ca.ibm.com

Building OpenJ9 with this patch and disassembling the JIT shows that the compiler now generates the correct sequence of instructions.

Fixes: #7045

XL C++ 13.1.3 on AIX generates incorrect code for the line in question.

The stack location containing the hint we fetch from the SCC is read and
tested for ==0 before it is written to, so we intermittently take the wrong
path and try to update a non-existent hint, which fails.

Signed-off-by: Younes Manton <ymanton@ca.ibm.com>
@ymanton
Copy link
Member Author

ymanton commented Sep 17, 2019

Jenkins test sanity.extended all jdk8,jdk11

Copy link
Contributor

@mpirvu mpirvu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mpirvu mpirvu self-assigned this Sep 17, 2019
@mpirvu
Copy link
Contributor

mpirvu commented Sep 18, 2019

Infra failures:

20:56:20  gmake[1]: Entering directory '/home/u0020236/workspace/Test_openjdk11_j9_sanity.extended_ppc64_aix_Personal/openjdk-tests'
20:56:20  gmake[1]: autoGen.mk: A file or directory in the path name does not exist.
20:56:20  gmake[1]: *** No rule to make target 'autoGen.mk'.  Stop.
20:56:20  gmake[1]: Leaving directory '/home/u0020236/workspace/Test_openjdk11_j9_sanity.extended_ppc64_aix_Personal/openjdk-tests'
20:56:20  settings.mk:255: recipe for target 'compile-..' failed
20:56:20  gmake: *** [compile-..] Error 2

@mpirvu
Copy link
Contributor

mpirvu commented Sep 18, 2019

Jenkins test sanity.extended all jdk8,jdk11

@pshipton
Copy link
Member

Jenkins test sanity,extended all jdk8,jdk11

@pshipton
Copy link
Member

pshipton commented Sep 18, 2019

Note the testvmcheck failures are a known problem, will be fixed by #7148

@mpirvu
Copy link
Contributor

mpirvu commented Sep 19, 2019

AIX Java11 extended.functional - TestAttachErrorHandling_0

===============================================
Running test TestAttachErrorHandling_0 ...
===============================================
TestAttachErrorHandling_0 Start Time: Wed Sep 18 16:13:11 2019 Epoch Time (ms): 1568841191756
variation: NoOptions
JVM_OPTIONS: -Xcompressedrefs 
[IncludeExcludeTestAnnotationTransformer] [INFO] exclude file is /home/u0020236/workspace/Test_openjdk11_j9_extended.functional_ppc64_aix_Personal/openjdk-tests/TestConfig/scripts/testKitGen/../../../../jvmtest/TestConfig/resources/excludes/latest_exclude_11.txt

It's not clear to me what kind of error this is.

@mpirvu
Copy link
Contributor

mpirvu commented Sep 19, 2019

More info on the error above:

 org.openj9.test.attachAPI.TestAttachErrorHandling.testPrematureSocketClose
 Error Details
com.sun.tools.attach.AttachNotSupportedException: acknowledgement timeout from 5898284 on port 61694
 Stack Trace
      java.lang.AssertionError: com.sun.tools.attach.AttachNotSupportedException: acknowledgement timeout from 5898284 on port 61694
at org.testng.Assert.fail(Assert.java:96)
at org.openj9.test.attachAPI.AttachApiTest.logExceptionInfoAndFail(AttachApiTest.java:62)
at org.openj9.test.attachAPI.TestAttachErrorHandling.connectAndVerifyConnection(TestAttachErrorHandling.java:413)
at org.openj9.test.attachAPI.TestAttachErrorHandling.testPrematureSocketClose(TestAttachErrorHandling.java:287)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:580)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:716)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:988)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
at org.testng.TestRunner.privateRun(TestRunner.java:648)
at org.testng.TestRunner.run(TestRunner.java:505)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:455)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415)
at org.testng.SuiteRunner.run(SuiteRunner.java:364)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1137)
at org.testng.TestNG.runSuites(TestNG.java:1049)
at org.testng.TestNG.run(TestNG.java:1017)
at org.testng.TestNG.privateMain(TestNG.java:1354)
at org.testng.TestNG.main(TestNG.java:1323)

It doesn't seem like something that's related to the issue being fixed here.
@ymanton what's your opinion on this?

@pshipton
Copy link
Member

The failures are all known problems, not related to this PR.

@mpirvu
Copy link
Contributor

mpirvu commented Sep 19, 2019

In this case, this commit is ready to merged.

@mpirvu mpirvu merged commit 0449f02 into eclipse-openj9:master Sep 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

openjdk11_j9_extended.functional_ppc64_aix testSCCMLSoftmx_1 not found Stored JITHINT attached data
3 participants