Analysis on JDK-8022321 java/lang/ref/OOMEInReferenceHandler.java fails intermittently
kim.barrett at oracle.com
Wed Mar 23 20:53:25 UTC 2016
> On Mar 23, 2016, at 4:42 PM, Peter Levart <peter.levart at gmail.com> wrote:
> Hi Kim,
> Thinking more about your approach. Basically your idea is to detect that there are no more unprocessed but pending or enqueued Cleanables by timing out on waiting for next Cleanable to be processed. In that case the timeout should be reset when each Cleanable is detected to be processed so that when there's a "silence" detected for at least the whole timeout period, we can claim with enough probability that there are no more unprocessed Cleanables either pending or enqueued and that we can give up with OOME.
Exactly, and much better stated than I did.
More information about the core-libs-dev