Skip to content

Commit

Permalink
https://github.com/netty/netty/pull/3833
Browse files Browse the repository at this point in the history
业务线程alloc, 结果被在netty4中 却被IO线程release掉的, 这导致pooledBuf前边那层基于threadLocal的cache出了些问题(就是业务线程alloc时不断的cache不命中, 因为release时归还到别的线程的cache中了)
netty/netty#3833  norman的改法是:
pooledBuf中绑定cache, 谁alloc的就rlease给谁, 这就又导致release时可能引起多个线程的竞争条件(比如可能存在这样的场景:线程1线程2都要release到线程3的cache中), norman用一个MPSC队列解决的这个竞争(MPSC就是多生产者单消费者), 这个队列倒是很有意思, 感兴趣参考jctools https://github.com/JCTools/JCTools
  • Loading branch information
fengjc committed Nov 2, 2015
1 parent 4e4918c commit e1c6c06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -22,7 +22,7 @@
</modules>

<properties>
<netty.version>4.1.0.Beta6</netty.version>
<netty.version>4.1.0.Beta7</netty.version>
<jmh.version>1.9.3</jmh.version>
<barchart.version>2.3.0</barchart.version>
<javassist.version>3.19.0-GA</javassist.version>
Expand Down

0 comments on commit e1c6c06

Please sign in to comment.