From 3a690240336bda8582a15ca52f4dcb78be323dcd Mon Sep 17 00:00:00 2001 From: Mandy Chung Date: Tue, 6 Jul 2021 14:59:42 +0000 Subject: 8225667: Clarify the behavior of System::gc w.r.t. reference processing Reviewed-by: rriggs, kbarrett, tschatzl --- src/java.base/share/classes/java/lang/System.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/java.base/share/classes/java/lang/System.java') diff --git a/src/java.base/share/classes/java/lang/System.java b/src/java.base/share/classes/java/lang/System.java index a09770f490e..9022b1d9c08 100644 --- a/src/java.base/share/classes/java/lang/System.java +++ b/src/java.base/share/classes/java/lang/System.java @@ -1872,6 +1872,11 @@ public final class System { * There is no guarantee that this effort will recycle any particular * number of unused objects, reclaim any particular amount of space, or * complete at any particular time, if at all, before the method returns or ever. + * There is also no guarantee that this effort will determine + * the change of reachability in any particular number of objects, + * or that any particular number of {@link java.lang.ref.Reference Reference} + * objects will be cleared and enqueued. + * *

* The call {@code System.gc()} is effectively equivalent to the * call: -- cgit v1.3.1