RFR 8220088 : Test "java/lang/annotation/loaderLeak/Main.java" fails with -Xcomp
Mandy Chung
mandy.chung at oracle.com
Mon Mar 18 17:25:49 UTC 2019
On 3/14/19 10:41 AM, Brent Christian wrote:
> On 3/13/19 6:08 PM, Martin Buchholz wrote:
>> Why not Reference.reachabilityFence ?
>
> You mean the mechanism for this precise situation. Yeah, OK.
>
> http://cr.openjdk.java.net/~bchristi/8220088/webrev.01/
The use of Reference.reachabilityFence is good.
You mentioned at one point that you wanted to move ForceGC
utility to test library. This test can convert to that when
it's available.
The other part of this patch is to remove the shell test.
Some suggested cleanup:
I would suggest to use jdk.test.lib.compiler.CompilerUtils
to compile A, B and C classes. and replace getClassImplFromDataBase
with Paths.readAllBytes.
Mandy
More information about the core-libs-dev
mailing list