Java Thread hanging without deadlocks

坚强是说给别人听的谎言 提交于 2019-12-04 15:36:53

The process is not hanging, you just simply happen to have found it in the state posted above. You can tell because the thread in question does not say BLOCKED as the others, so it is in normal execution.

Why the process is no longer executing might have different reasons, but I can assure you that none of them is associated with identityHashCode, as this is a well-tested internal Java function.

To proceed:

  • Compare the JVM state of several hangups. If it is always the same as above, the issue might be somewhere associated with hash generation. If not:

  • Post more relevant code so we can have a look at it. If the issue is not at this line of code, it has to be somewhere else (com.rits.cloning.Cloner sounds like a reasonable point to start looking).

  • Tell us what you are trying to archive, someone might find a bug or a better way to do it, that completely circumvents whatever is causing the issue.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!