Re: DirectBuffer deallocation
Posted by
gouessej on
Jan 15, 2016; 9:48am
URL: https://forum.jogamp.org/DirectBuffer-deallocation-tp4035990p4036038.html
As long as I use the GPL version 2 (without classpath exception unlike OpenJDK), you can't use my deallocator without using the same license (or a more recent version of the GPL but not the LGPL), that's exactly why I chose this license. By the way, if you have a doubt concerning my code, run the unit test TestDeallocationHelper.
Don't use sun.nio.ch.DirectBuffer if you want to make your code work with Java 1.9 and later without using an hidden switch but it will drive your code less smart and more complicated.