[infinispan-dev] Bye bye wrappers, ComparingConcurrentHashMapv8 is here (ISPN-2281)

Manik Surtani msurtani at redhat.com
Wed Mar 20 06:50:42 EDT 2013


On 19 Mar 2013, at 19:56, Mircea Markus <mmarkus at redhat.com> wrote:

>> 
>> 
>> Doing the latter was relatively simple (I have this stashed), but having a CHM that could take a byte[] as key wasn't that easy, since we can't change JDK CHM.
> why's that?  copyright?

A lot of JDK CHM code is private or package-protected so cannot be extended/overridden.

>> 
>> This is why, I've created a new CHM, based on the CHMv8, called ComparingConcurrentHashMapv8 (thx Tristan for the name!). The work for this can be seen in:https://github.com/galderz/infinispan/commit/351e29d327d163ca8e941edf873f6d46b43cfae1
> this relies on sun.misc.Unsafe, so won't work with a non-oracle JVM.

Not true - see this comment on the Disruptor forums, which also use sun.misc.Unsafe:

https://groups.google.com/forum/?fromgroups=#!topic/lmax-disruptor/t7Hr8qY400E

> This class would be aggregated in the DataContainer in the case we use infinispan in server mode, right?




--
Manik Surtani
manik at jboss.org
twitter.com/maniksurtani

Platform Architect, JBoss Data Grid
http://red.ht/data-grid




More information about the infinispan-dev mailing list