On 19 Mar 2013, at 19:56, Mircea Markus <[email protected]> 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
[email protected]
twitter.com/maniksurtani

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


_______________________________________________
infinispan-dev mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/infinispan-dev

Reply via email to