RFR(S): 8068613: Wrong number of objects pending finalization start
Staffan Larsen
staffan.larsen at oracle.com
Wed Jan 28 10:38:56 UTC 2015
Looks good! How much testing have you done?
Thanks,
/Staffan
> On 28 jan 2015, at 11:31, Mattias Tobiasson <mattias.tobiasson at oracle.com> wrote:
>
> Hi,
> Could I please have a review of this test bug fix.
>
> bug: https://bugs.openjdk.java.net/browse/JDK-8068613
> webrev: http://cr.openjdk.java.net/~ykantser/8068613/webrev.01
>
> On line 90 and on line 246 (in the old version) the test does a short wait between
> Runtime.getRuntime().runFinalization() and
> MemoryMXBean.getObjectPendingFinalizationCount()
>
> The test expects getObjectPendingFinalizationCount() to return 0,
> but that sometimes fails on really slow servers.
>
> The fix will loop until getObjectPendingFinalizationCount() returns 0,
> or until it gives up after 100 tries.
>
> Thanks,
> Mattias
>
More information about the serviceability-dev
mailing list