Shortcomings of the original JMM.
原始jmm的缺点。
JSR 133, chartered to fix the JMM, has several goals.
JSR 133被授权来修复J MM,它有几个目标。
After 24 rounds with JMM, JMM wins more rounds than Pacquiao.
总共24回合比赛,马奎兹赢了更多回合。
The locks are created when the map is created (there would be JMM problems if they were not.)
锁在创建map的时候被创建(如果不在此时创建锁,将会出现J MM问题。)
But synchronization also has another aspect: it enforces certain memory visibility rules as specified by the JMM.
但是同步还有另一个方面:正如JMM所指定,它强制实施某些内存可见性规则。
The other major area where the existing JMM caused some very confusing results was with memory operation reordering on volatile fields.
另一个主要领域是与volatile字段的内存操作重新排序有关,这个领域中现有JMM引起了一些非常混乱的结果。
In the absence of synchronization, it is allowable (according to the JMM) for two threads to see different values in the same memory location.
在缺少同步的情况下,J MM会允许两个线程在同一个内存地址上看到不同的值。
When a thread exits a synchronized block as part of releasing the associated monitor, the JMM requires that the local processor cache be flushed to main memory.
当线程为释放相关监视器而退出一个同步块时,J MM要求本地处理器缓冲刷新到主存中。
Modern processors differ substantially in their memory models; the JMM should accommodate as many possible architectures as practical, without sacrificing performance.
现代的处理器在它们的内存模型上有着很大的不同;JMM应该能够适合于实际的尽可能多的体系结构,而不会以牺牲性能为代价。
The existing JMM says that volatile reads and writes are to go directly to main memory, prohibiting caching values in registers and bypassing processor-specific caches.
现有JMM 表明易失性的读和写是直接和主存打交道的,这样避免了把值存储到寄存器或者绕过处理器特定的缓存。
The existing JMM says that volatile reads and writes are to go directly to main memory, prohibiting caching values in registers and bypassing processor-specific caches.
现有JMM 表明易失性的读和写是直接和主存打交道的,这样避免了把值存储到寄存器或者绕过处理器特定的缓存。
应用推荐