JRockit internally translates all methods with an implicit monitor object into methods with an explicit one, similar to what is shown in the second part of example, in order to avoid the special case with the synchronized flag. (查看原文)
这小节提到Java字节码指令集里有monitorenter与monitorexit两条指令用于实现同步的功能。但这俩字节码主要用来实现synchronized块;synchronized方法却并没直接用这两条指令,而是在方法的元数据上记录它有ACC_SYNCHRONIZED属性。 JRockit internally translates all methods with an implicit monitor object into methods with an explicit one, similar to what is shown in the second part of example, in order to avoid ...
JRockit internally translates all methods with an implicit monitor object into methods with an explicit one, similar to what is shown in the second part of example, in order to avoid the special case with the synchronized flag.引自 Threads and Synchronization - The Java bytecode implementation
这小节提到Java字节码指令集里有monitorenter与monitorexit两条指令用于实现同步的功能。但这俩字节码主要用来实现synchronized块;synchronized方法却并没直接用这两条指令,而是在方法的元数据上记录它有ACC_SYNCHRONIZED属性。 JRockit internally translates all methods with an implicit monitor object into methods with an explicit one, similar to what is shown in the second part of example, in order to avoid ...
JRockit internally translates all methods with an implicit monitor object into methods with an explicit one, similar to what is shown in the second part of example, in order to avoid the special case with the synchronized flag.引自 Threads and Synchronization - The Java bytecode implementation
这小节提到Java字节码指令集里有monitorenter与monitorexit两条指令用于实现同步的功能。但这俩字节码主要用来实现synchronized块;synchronized方法却并没直接用这两条指令,而是在方法的元数据上记录它有ACC_SYNCHRONIZED属性。 JRockit internally translates all methods with an implicit monitor object into methods with an explicit one, similar to what is shown in the second part of example, in order to avoid ...
JRockit internally translates all methods with an implicit monitor object into methods with an explicit one, similar to what is shown in the second part of example, in order to avoid the special case with the synchronized flag.引自 Threads and Synchronization - The Java bytecode implementation
0 有用 bluedavy 2013-05-25 15:16:27
对于相对JVM了解的人而言非常值得读。
0 有用 jiangyy 2013-06-21 09:38:55
很不错的书,但仍然不是写给专业人士看的
0 有用 Tao 2011-06-14 20:55:17
前4章还是很值得看的
1 有用 henry 2016-07-07 16:14:17
前面讲解原理的部分很好,后面讲Mission Control的时候,比较没意思。推广我的中文翻译版 https://github.com/caoxudong/caoxudong.github.com
0 有用 秋叶刀市 2011-12-17 00:08:56
其实jvm值得我们去深入的研究,尤其对调优之类的。发现除了这本书就没有jvm一线的书了,当然inside jvm感觉还不够in。感觉hotspot的文档写的真够可以的,基本上就可以用没什么来形容。最近在看jrockit和jlikes的文档,感觉商业的就是不一样,doc writer写的让人看着很舒服。最近看了一些后边关于jrmc,jra和jfc部分,终于系统的了解了一把,感觉真tmd的强大啊。
0 有用 匋艮 2020-06-05 16:17:42
关于 JVM 的工作原理讲得非常清晰。看了前面6章,后面介绍 JRockit Mission Control 工具的章节稍微看了一点,由于用的是JDK 1.6 所以不太想继续看下去了。另外,阅读过程中的一些感受如下:1. 概念名词好多,看得有点头痛,慢慢来吧。每学一个新的计算机基础领域,就会遇到大量的概念名词,已经习惯了,就是有点痛。2. 看这本书需要对系统结构和操作系统比较熟悉。
1 有用 henry 2016-07-07 16:14:17
前面讲解原理的部分很好,后面讲Mission Control的时候,比较没意思。推广我的中文翻译版 https://github.com/caoxudong/caoxudong.github.com
0 有用 jiangyy 2013-06-21 09:38:55
很不错的书,但仍然不是写给专业人士看的
0 有用 bluedavy 2013-05-25 15:16:27
对于相对JVM了解的人而言非常值得读。
0 有用 秋叶刀市 2011-12-17 00:08:56
其实jvm值得我们去深入的研究,尤其对调优之类的。发现除了这本书就没有jvm一线的书了,当然inside jvm感觉还不够in。感觉hotspot的文档写的真够可以的,基本上就可以用没什么来形容。最近在看jrockit和jlikes的文档,感觉商业的就是不一样,doc writer写的让人看着很舒服。最近看了一些后边关于jrmc,jra和jfc部分,终于系统的了解了一把,感觉真tmd的强大啊。