Skip to main content

zhen ma's Library tagged jvm   View Popular, Search in Google

Apr
7
2010

  • The web application creates an object of a class loaded by the web application class loader and then places this object in a registry that has been loaded by a different
    class loader.
  • If the object is not removed, the registry retains a reference to the object, the object retains a reference to the class and the class retains a reference to the class loader. This pins the class loader in memory.
  • 1 more annotation(s)...
Jan
25
2010

  • 这是 volatile 常见用例——用一个 volatile 字段作为“守护”表明已经初始化了一组共享变量。JSR 133 Expert Group 决定让 volatile 读写不能与其他内存操作一起重新排序是有意义的——可以准确地支持这种和其他类似的用例。在新的内存模型下,如果当线程 A 写入 volatile 变量 V 而线程 B 读取 V 时,那么在写入 V 时,A 可见的所有变量值现在都可以保证对 B 是可见的。结果就是作用更大的   volatile 语义,代价是访问 volatile 字段时会对性能产生更大的影响。
1 - 4 of 4
Showing 20 items per page

Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »

Join Diigo
Move to top