diff options
| author | Mandy Chung <mchung@openjdk.org> | 2021-07-06 14:59:42 +0000 |
|---|---|---|
| committer | Mandy Chung <mchung@openjdk.org> | 2021-07-06 14:59:42 +0000 |
| commit | 3a690240336bda8582a15ca52f4dcb78be323dcd (patch) | |
| tree | 356f6ad6c4ed49189b81a413dca5ea1036745597 /src/java.base/share/classes/java/lang/System.java | |
| parent | 2b20778225527a3ccd3ced2a4246c5943f467e06 (diff) | |
| download | openjdk-3a690240336bda8582a15ca52f4dcb78be323dcd.tar.gz openjdk-3a690240336bda8582a15ca52f4dcb78be323dcd.zip | |
8225667: Clarify the behavior of System::gc w.r.t. reference processing
Reviewed-by: rriggs, kbarrett, tschatzl
Diffstat (limited to 'src/java.base/share/classes/java/lang/System.java')
| -rw-r--r-- | src/java.base/share/classes/java/lang/System.java | 5 |
1 files changed, 5 insertions, 0 deletions
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. + * * <p> * The call {@code System.gc()} is effectively equivalent to the * call: |
