论坛首页 Java企业应用论坛

深入理解JVM

浏览 59502 次
锁定老帖子 主题:深入理解JVM
该帖已经被评为精华帖
作者 正文
   发表时间:2010-09-02  
不错。最近闲着没事也想了解jvm了。
0 请登录后投票
   发表时间:2010-09-02  
谢谢lz的分享。。。
0 请登录后投票
   发表时间:2010-09-02  

学习了,这文章看着就舒服 

 

0 请登录后投票
   发表时间:2010-09-02  
好文章,受教了
0 请登录后投票
   发表时间:2010-09-02  
mootools215 写道
研究jvm有啥好处没?

对java机制理解更深入,立竿见影的就是排查一些程序错误很有帮助
不过看了虚拟机发现还不够,编译原理什么的最好还看看,现在才觉出大学那些专业课还真是值得一学的
不过那时候没什么实践也听不懂
0 请登录后投票
   发表时间:2010-09-02  
很好。我不知道自己怎么看不到图片。想看看图片
  • 大小: 42 KB
0 请登录后投票
   发表时间:2010-09-02  
打算了解jvm,谢谢LZ的这篇文章
0 请登录后投票
   发表时间:2010-09-02  
bugmenot 写道
请问楼主大大这篇是《深入Java虚拟机(原书第2版)》的概要读书笔记吗?

JVM规范对操作数栈区的规定好怪哦
引用
Each entry on the operand stack can hold a value of any Java virtual machine type, including a value of type long or type double.

引用
At any point in time an operand stack has an associated depth, where a value of type long or double contributes two units to the depth and a value of any other type contributes one unit.


其实不怪?在操作栈上,每一个槽位存储一个JVM类型的值(4字节),由于Long/Double值需要8个字节,因此,JVM使用两个槽位来存储一个Long/Double值。
0 请登录后投票
   发表时间:2010-09-02  
看完inside  jvm  这些就不是什么了!但概括的很好
0 请登录后投票
   发表时间:2010-09-02  
wangzaixiang 写道
bugmenot 写道
请问楼主大大这篇是《深入Java虚拟机(原书第2版)》的概要读书笔记吗?

JVM规范对操作数栈区的规定好怪哦
引用
Each entry on the operand stack can hold a value of any Java virtual machine type, including a value of type long or type double.

引用
At any point in time an operand stack has an associated depth, where a value of type long or double contributes two units to the depth and a value of any other type contributes one unit.


其实不怪?在操作栈上,每一个槽位存储一个JVM类型的值(4字节),由于Long/Double值需要8个字节,因此,JVM使用两个槽位来存储一个Long/Double值。

大大,小的觉着怪的是操作数栈明明只能通过load/store/push/pop/ldc/dup/swap指令来操作,操作的单元也是entry而不是slot,但“深度”却还是要把double和long计算为2,多别扭
0 请登录后投票
论坛首页 Java企业应用版

跳转论坛:
Global site tag (gtag.js) - Google Analytics