Hi to everyone! I've developed a memory mapped implementation of SequenceFile to be used inside Artemis's Journal and i've encountered a big question: can i use sun.misc.Unsafe?
I've noticed that between all the dependencies of Artemis there was Netty's libs with its PlatformDependent class and i've finally choose to use it instead of "naked" Unsafe,but i'm not completly satisfied by this solution because PlatformDependent does not provide all the methods of Unsafe (e.g. Unsafe::pageSize). With such methods there are a lot of improvements and features that can be developed, considering that in the future of Java there will be a place for a safer Unsafe :) There exists a good policy for all that cases in which something so "unsafe" and "platform dependend" is needed?What the other devs think about it? With Regards, Francesco -- View this message in context: http://activemq.2283324.n4.nabble.com/sun-misc-Unsafe-VS-io-netty-util-internal-PlatformDependent-VS-null-tp4712785.html Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
