Java 11 on latest Mac OS seems to lock the file system for minutes at a time

老子叫甜甜 提交于 2020-12-05 07:06:39

问题


Since upgrading to java 11 on my Macbook Pro (latest OS, etc.) compiling projects seems to often lock the entire file system for long periods of time. Anyone else having this problem? Any ideas how to debug it?

Update: I did a dtruss on the process and I see endless output like this. I don't know if this is significant or not.

gettimeofday(0x700001D00D98, 0x0, 0x0)       = 0 0
gettimeofday(0x7000011DCE18, 0x0, 0x0)       = 0 0
psynch_cvwait(0x7F8EF6417C10, 0x89A0100089B00, 0x0)      = -1 316
gettimeofday(0x700001D00D98, 0x0, 0x0)       = 0 0
psynch_cvwait(0x7F8EF6417C10, 0x89B0100089C00, 0x0)      = -1 316
gettimeofday(0x700001D00D98, 0x0, 0x0)       = 0 0
psynch_cvwait(0x7F8EF6417C10, 0x89C0100089D00, 0x0)      = -1 316
gettimeofday(0x700001D00D98, 0x0, 0x0)       = 0 0
psynch_cvwait(0x7F8EF6417C10, 0x89D0100089E00, 0x0)      = -1 316
gettimeofday(0x700001D00D98, 0x0, 0x0)       = 0 0
psynch_cvwait(0x7F8EF6417C10, 0x89E0100089F00, 0x0)      = -1 316

Just endless calls to that and then every once in a while:

stat64("<xxxx>.class\0", 0x700000CCBF30, 0x0)        = 0 0
lstat64("<xxxx>.class\0", 0x700000CCBDE8, 0x0)       = 0 0

Update: well, it's in the bug db now: https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8257477

来源:https://stackoverflow.com/questions/64107129/java-11-on-latest-mac-os-seems-to-lock-the-file-system-for-minutes-at-a-time

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