Given the single threaded nature of this benchmark, I was fully expecting Escape Analysis to elide the lock thus rendering StringBuffer performance equivalent to that of StringBuilder.
明确了这个基准测试的单线程化的本质后,我期待着逸出分析会消除锁,从而将StringBuffer的性能提到了与StringBuilder相同的水平。
I was hoping that escape analysis combined with lock elision would have a much greater influence than it did.
我也希望逸出分析与锁省略一起更能够做到更好,产生更多的影响。
Heathcliff, on second thoughts, resolved to avoid a struggle against the three underlings; he seized the poker, smashed the lock from the inner door, and made his escape as they tramped in.
希刺克厉夫一转念,决定避免和这三位仆人打斗一场。他抓了把火钳,敲开里门的锁,在他们踏着大步进来时,他已逃掉了。
Consequently escape analysis will determine that its' lock cannot be safely elided.
所以逸出分析会判断出stringbuffer的锁不能安全地被忽略。
In addition to escape analysis and lock elision, Mustang has some other optimizations for locking performance as well.
除了Escape分析和锁省略,Mustang还有一些锁定性能方面的优化。
Abruzzi tells Lincoln the plan is to lock James up in a moving van; they'll release him once the escape is complete.
Abruzzi告诉Lincoln,计划将James关在一个搬家货车里,等他们逃出去后就放了他。
Abruzzi tells Lincoln the plan is to lock James up in a moving van; they'll release him once the escape is complete.
Abruzzi告诉Lincoln,计划将James关在一个搬家货车里,等他们逃出去后就放了他。
应用推荐