mirror of
https://github.com/darlinghq/darling-openjdk.git
synced 2024-11-30 15:50:29 +00:00
8225648: [TESTBUG] java/lang/annotation/loaderLeak/Main.java fails with -Xcomp
Reviewed-by: alanb, iklam
This commit is contained in:
parent
e576eaa483
commit
8d62f19e8d
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2004, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2004, 2019, 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
|
||||
@ -56,6 +56,7 @@ public class Main {
|
||||
if (c.get() == null) throw new AssertionError();
|
||||
System.gc();
|
||||
System.gc();
|
||||
Reference.reachabilityFence(loader);
|
||||
loader = null;
|
||||
|
||||
// Might require multiple calls to System.gc() for weak-references
|
||||
|
Loading…
Reference in New Issue
Block a user