<p dir="ltr">Oops, that was my mistake - I thought the lock here was a j.u.c.Lock which of course doesn't even make sense given we're talking about ObjectMonitor. So disregard that bit.</p>
<p dir="ltr">Ignoring OOM and continuing just seems very fragile as it means you somehow know that all state is still consistent. Most java code isn't async exception safe, so it's hard to reason about state after OOM. Maybe Reference Handler is OK in that regard though.</p>
<p dir="ltr">Cheers</p>
<p dir="ltr">Thanks</p>
<p dir="ltr">Sent from my phone</p>