[concurrency-interest] Deadlock with when no threads have the lock

Kirk Pepperdine kirk at kodewerk.com
Fri Jun 16 18:55:31 EDT 2017

Hi Ken,

If you have a lock with nothing holding on to it then either a VM thread has the lock. The most common culprit are GC threads. I’ve not taken a deep look at the code but you could set -XX:+PrintConcurrentLocks which would give you an idea if the problem is with the re-enterant lock. Not looked too deeply at the code but I don’t see anything obvious at the moment.

— Kirk

> On Jun 16, 2017, at 11:36 PM, Ken Sipe <kensipe at gmail.com> wrote:
> We have encountered a strange deadlock scenario in which it appears that all threads are waiting on acquiring a ReentrantLock, but no thread has the lock. 
> Any thoughts on this?
> https://gist.github.com/timcharper/9ab4fea9da4669e620507e85e764d94a <https://gist.github.com/timcharper/9ab4fea9da4669e620507e85e764d94a>
> Thanks,
> ken
> _______________________________________________
> Concurrency-interest mailing list
> Concurrency-interest at cs.oswego.edu
> http://cs.oswego.edu/mailman/listinfo/concurrency-interest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20170617/5705db4f/attachment.html>

More information about the Concurrency-interest mailing list