On 19 Mar 2013, at 19:56, Mircea Markus <mmarkus(a)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/351e29d327d163ca8e941edf8...
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/t7Hr8q...
This class would be aggregated in the DataContainer in the case we
use infinispan in server mode, right?
--
Manik Surtani
manik(a)jboss.org
twitter.com/maniksurtani
Platform Architect, JBoss Data Grid
http://red.ht/data-grid