GabrielWithTina
GabrielWithTina
周老师,您好! 在拜读您的大作《深入理解Java虚拟机(第3版)》时, 在第12章我遇到两处比较i困惑的地方,反复阅读也没有理解清楚,所以查阅了相关资料,觉得这两处地方可能有些没说清楚。因此做了下面的笔记供您参考。我的水平很有限,如果我理解错了,请您谅解。 # **443页** 书中原文 > 如果对一个变量执行lock操作,那将会清空工作内存中此变量的值,在执行引擎使用这个变量之前,需要重新执行load或assign操作以初始化此变量 > > 对一个变量执行unlock操作之前,必须先把此变量同步回主内存(执行store,write操作) [虚拟机规范(J2SE 6)](https://docs.oracle.com/javase/specs/jvms/se6/html/Threads.doc.html#22214) 8.6节:Rules About the Interaction of Locks and Variables > Let T be any thread, let V be...
**Describe the bug** When zookeeper connection timeout and reconnect to zookeeper, master always down. but zookeeper can be connected (you can see the successful connection in the log. From the...