JDK-8165193 : Workaround intermittent failures of JavacTreeScannerTest and SourceTreeScannerTest due to C2 memory usage
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2016-09-01
  • Updated: 2017-01-24
  • Resolved: 2016-09-01
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 9
9 b135Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
tools/javac/tree/JavacTreeScannerTest.java
tools/javac/tree/SourceTreeScannerTest.java

These tests also run into C2 memory usage issue, and maybe we need to make them run in othervm as workaround also (same workaround applied to other two javac tests in JDK-8163999).
Comments
Suggested workaround: diff --git a/test/tools/javac/tree/JavacTreeScannerTest.java b/test/tools/javac/tree/JavacTreeScannerTest.java --- a/test/tools/javac/tree/JavacTreeScannerTest.java +++ b/test/tools/javac/tree/JavacTreeScannerTest.java @@ -41,7 +41,7 @@ * jdk.compiler/com.sun.tools.javac.tree * jdk.compiler/com.sun.tools.javac.util * @build AbstractTreeScannerTest JavacTreeScannerTest - * @run main JavacTreeScannerTest -q -r . + * @run main/othervm JavacTreeScannerTest -q -r . */ import java.io.*; diff --git a/test/tools/javac/tree/SourceTreeScannerTest.java b/test/tools/javac/tree/SourceTreeScannerTest.java --- a/test/tools/javac/tree/SourceTreeScannerTest.java +++ b/test/tools/javac/tree/SourceTreeScannerTest.java @@ -41,7 +41,7 @@ * jdk.compiler/com.sun.tools.javac.tree * jdk.compiler/com.sun.tools.javac.util * @build AbstractTreeScannerTest SourceTreeScannerTest - * @run main SourceTreeScannerTest -q -r . + * @run main/othervm SourceTreeScannerTest -q -r . */ import java.io.*;
01-09-2016