11 2013 档案
摘要:Greg Mattes推荐的介绍并发编程的书Java Concurrency in Practicevolatile 的语义:“… the volatile modifier guarantees that any thread that reads a field will see the most recently written value.”- Josh Bloch这意味着,对于被声明为volatile的域,当写操作发生时,所有的读操作都会看到这个change,既然有局部缓存存在。当一个域被synchronized 方法或代码块 guarded 的时候,就没必要把一个域声明为volat
阅读全文
摘要:execution engine:运行时栈current stack frame主要保存了 local variable table, operand stack, dynamic linking, return address and some other additional info。方法调用(确定调用哪个方法的过程):这类加载阶段就能够确定调用版本的符号应用,直接转化为方法的直接引用(方法在内存中的入口地址),这其中有四类方法:静态方法、私有方法、实例构造器 和 父类方法,这类方法也统称为非虚方法,其他的方法都称为虚方法(除去final修饰的方法)。静态分派(Static dispat
阅读全文

浙公网安备 33010602011771号