RFR 8220238 : Enhancing j.l.Runtime/System::gc specification with an explicit 'no guarantee' statement
Mandy Chung
mandy.chung at oracle.com
Wed May 29 23:24:00 UTC 2019
On 5/30/19 3:25 AM, Roger Riggs wrote:
> Hi,
>
> ok, thanks for the comments.
>
> Any other comments on:
> "* Runs the garbage collector in the Java Virtual Machine.
> * <p>
> * Calling this method suggests that the Java Virtual Machine
> * expend effort toward recycling unused objects in order to
> * make the memory they currently occupy available for reuse
> * by the Java Virtual Machine.
> * When control returns from the method call, the Java Virtual Machine
> * has made a best effort to reclaim space from all discarded objects.
> * 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.
> "
>
This version looks good. Nit: It may read better to say "reclaim space
from unused objects" as described in the following sentence.
> Issue:
> https://bugs.openjdk.java.net/browse/JDK-8220238
>
> CSR:
> https://bugs.openjdk.java.net/browse/JDK-8224760
>
Reviewed.
> Webrev:
> http://cr.openjdk.java.net/~rriggs/webrev-gc-8220238-1/
>
Mandy
More information about the core-libs-dev
mailing list