JDK-8230454 : [Graal] Add "com/sun/crypto/provider/KeyFactory/TestProviderLeak.java" to Graal problem list
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11,12,13,14
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: generic
  • Submitted: 2019-09-03
  • Updated: 2024-06-17
  • Resolved: 2019-09-10
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
14 b14Fixed
Related Reports
Relates :  
Description
Jtreg test:

jdk/com/sun/crypto/provider/KeyFactory/TestProviderLeak.java
fails by throwing OutOfMemoryException:

Timeout for each iteration is 80 seconds
Before memory allocation:	15603016 bytes free
Exception during JVMCI compiler initialization:
java.lang.OutOfMemoryError: Java heap space
	at org.graalvm.compiler.hotspot.HotSpotGraalRuntime.<init>(jdk.internal.vm.compiler@14-internal/HotSpotGraalRuntime.java:144)
	at org.graalvm.compiler.hotspot.HotSpotGraalCompilerFactory.createCompiler(jdk.internal.vm.compiler@14-internal/HotSpotGraalCompilerFactory.java:156)
	at org.graalvm.compiler.hotspot.HotSpotGraalCompilerFactory.createCompiler(jdk.internal.vm.compiler@14-internal/HotSpotGraalCompilerFactory.java:134)
	at org.graalvm.compiler.hotspot.HotSpotGraalCompilerFactory.createCompiler(jdk.internal.vm.compiler@14-internal/HotSpotGraalCompilerFactory.java:52)
	at jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.getCompiler(jdk.internal.vm.ci@14-internal/HotSpotJVMCIRuntime.java:629)
	at jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.compileMethod(jdk.internal.vm.ci@14-internal/HotSpotJVMCIRuntime.java:696)
Here is the test message:

----------messages:(4/178)----------
command: main -Xmx20m TestProviderLeak
reason: User specified action: run main/othervm -Xmx20m TestProviderLeak 
Mode: othervm [/othervm specified]
elapsed time (seconds): 2.151
The full log: http://ent-x86-04.shanghai.arm.com/openjdk/test_results/jtreg/aarch64/201908260656_141277_v5_arm-d05-03_graal_-XX__UnlockExperime/jtwork_rerun/com/sun/crypto/provider/KeyFactory/TestProviderLeak.jtr

This exception is caused by "-Xmx20m", which is not enough for JVMCI initialization.  A simple fix is to move it to the problem list. Hope it's ok for libgraal, so that we can move it out from the problem list once libgraal is enabled.
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/65cad575ace3 User: njian Date: 2019-09-10 06:53:56 +0000
10-09-2019

Review thread: http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/2019-September/034948.html
10-09-2019

There doesn't seem to be any added value running this with Graal. In fact we could probably add -Xint and avoid the extra noise.
06-09-2019