<Beans Dev> Fwd: Re: [PATCH] test/jdk/java/beans/PropertyEditor/Test6397609.java failed in JITed code
Sergey.Bylokhov at oracle.com
Mon Jan 7 19:32:41 UTC 2019
On 05/01/2019 16:05, Fu Jie wrote:
> As far as I know, GC will finally be triggered if "System.gc()" is called repeatedly with the JVM flag -XX:-DisableExplicitGC.
This option is specified with -XX, which are non-standard, not stable and are subject to change without notice.
So it is not necessary to use it in the test, since the same result can be achieved differently.
I do not see the problem in the "limit xmx" + "throw/catch OOM" + "check the results".
I guess this is only correct way to check it without possibility to introduce infinite loop which checks weakref.get().
Why don't you like it?
Best regards, Sergey.
More information about the beans-dev