JDK-8236139 : [Graal] java/lang/RuntimeTests/exec/LotsOfOutput.java fails with JVMCI enabled
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 14
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-12-17
  • Updated: 2019-12-27
  • Resolved: 2019-12-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 14 JDK 15
14 b29Fixed 15Fixed
Related Reports
Relates :  
Description
Test java/lang/RuntimeTests/exec/LotsOfOutput.java 
fails with JVMCI enabled. The log is following:

consuming memory: i: 1, prev: 4465816, used: 5514360, delta: 1048544
consuming memory: i: 2, prev: 5514360, used: 6562928, delta: 1048568
consuming memory: i: 3, prev: 6562928, used: 7611512, delta: 1048584
consuming memory: i: 4, prev: 7611512, used: 8093920, delta: 482408
consuming memory: i: 5, prev: 8093920, used: 9142432, delta: 1048512
consuming memory: i: 6, prev: 9142432, used: 10192672, delta: 1050240
consuming memory: i: 7, prev: 10192672, used: 16000128, delta: 5807456
consuming memory: i: 8, prev: 16000128, used: 16482536, delta: 482408
consuming memory: i: 9, prev: 16482536, used: 18579648, delta: 2097112
----------System.err:(13/821)----------
java.lang.Exception: Process consumes memory: growing 4
	at LotsOfOutput.main(LotsOfOutput.java:65)
	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:564)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:832)

JavaTest Message: Test threw exception: java.lang.Exception: Process consumes memory: growing 4
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.Exception: Process consumes memory: growing 4
Comments
URL: https://hg.openjdk.java.net/jdk/jdk14/rev/52485fd39fcb User: epavlova Date: 2019-12-19 21:40:32 +0000
19-12-2019

webrev: http://cr.openjdk.java.net/~epavlova//8236139/webrev.00/index.html
19-12-2019

Ok, I see what happened. The test always failed and is part of test/jdk/ProblemList-graal.txt. However the tests was recently moved from java/lang/Runtime/exec/ to java/lang/RuntimeTests/exec/ but corresponding entry in ProblemList-graal.txt was not updated.
19-12-2019

While I am agree that the test can easy fail with Graal as it is not aware of objects allocation triggered by Graal I don't understand why this failure started to appear recently. I launched mach5 testing of this test on macos with 3 jdk14 builds - b15, b26, b27 and the test failed almost every time. So the failure is not related to recent jdk/hs changes. Could it be we did some changes in macos hosts configurations which started to provoke this error more frequently? Leonid [~lmesnik]?
19-12-2019

ILW = MMM = P3 (For now triaging this one as P3 testbug for 14.) Hi [~epavlova], please review this task. Also can this be closed as duplicate of JDK-8196611? Thanks
18-12-2019

Test executed with following options: -XX:+CreateCoredumpOnCrash -ea -esa -server -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+UseJVMCICompiler -Djvmci.Compiler=graal -XX:+TieredCompilation
17-12-2019