JDK 9 RFR of JDK-8168499: Workaround intermittent failures of IntersectionTargetTypeTest.java
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Sat Oct 22 17:57:59 UTC 2016
Hi,
the fix should address the immediate problem, but I'm not sure that
memory is the culprit here. I've been able to run all tests in
test/tools/javac/lambda (512 tests including several combo ones) using a
shared VM and only 64M of heap, which is way less than the default used
in a typical test run. To profile the test run I passed the -verbose:gc
option to the vm used by jtreg using the -vmoption and noted no
significant leak during the execution of tests in this folder. So, while
I believe that this tests ends up often with an intermittent failure, I
haven't been able to find evidence of a leak.
Maurizio
On 22/10/16 00:45, joe darcy wrote:
> Hello,
>
> The test
>
> tools/javac/lambda/intersection/IntersectionTargetTypeTest.java
>
> is seen to fail intermittently on win32. The suspected cause is the
> same as in other intermittent langtools failures on that platform
> (JDK-8163999).
>
> Please review the patch below to address this.
>
> Thanks,
>
> -Joe
>
>
> ---
> a/test/tools/javac/lambda/intersection/IntersectionTargetTypeTest.java
> Thu Oct 20 16:31:42 2016 -0700
> +++
> b/test/tools/javac/lambda/intersection/IntersectionTargetTypeTest.java
> Fri Oct 21 15:32:50 2016 -0700
> @@ -1,5 +1,5 @@
> /*
> - * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights
> reserved.
> + * Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights
> reserved.
> * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
> *
> * This code is free software; you can redistribute it and/or modify it
> @@ -26,6 +26,7 @@
> * @bug 8002099 8010822
> * @summary Add support for intersection types in cast expression
> * @modules jdk.compiler/com.sun.tools.javac.util
> + * @run main/othervm IntersectionTargetTypeTest
> */
>
> import com.sun.source.util.JavacTask;
>
>
More information about the compiler-dev
mailing list