On Fri, 1 Jul 2022 08:26:30 GMT, Xue-Lei Andrew Fan <xue...@openjdk.org> wrote:

>> Maybe not for this PR - but it could be useful to have a version of ForceGC 
>> that takes as parameter a `ReferenceQueue<T>` and a `Reference<T>`. That 
>> would be more efficient than creating a new object and waiting for a 
>> different cleaner thread to cleanup that object.
>
> @dfuch  Taking a reference as parameter could simplify the use of ForceGC.  I 
> though about this idea as well, when I had to check lambada expressions in 
> each call.  I would like to do it in the future so that this PR could focus 
> on less things.

Thanks @XueleiFan, that's fine by me!

-------------

PR: https://git.openjdk.org/jdk/pull/8979

Reply via email to