On Mon, 25 Jul 2022 13:04:46 GMT, Peter Levart <plev...@openjdk.org> wrote:

> Just a note that the failing test is not about checking that cache is cleared 
> after plain System.gc(), but about checking that cache is NOT cleared after 
> System.gc() when there was no real memory pressure. The cache uses 
> SoftReference(s). So it appears that some gc(s) do clear SoftReference(s) on 
> System.gc(). Does WhiteBox GC util have a means to provoke gc without 
> SoftReference processing?

As I said above, there seem to be no such method. It would require hacking into 
each GC policy to prevent weakrefs clearing.

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

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

Reply via email to