sun.nio.ch.DirectBuffer and jdk9/jigsaw

Chris Hegarty chris.hegarty at oracle.com
Thu Feb 23 16:10:17 UTC 2017


> On 23 Feb 2017, at 11:30, Vitaly Davidovich <vitalyd at gmail.com> wrote:
>> ...
> The buffers are reused by having them point to different native memory
> block addresses; those blocks are managed by native code.  As mentioned,
> the ByteBuffer (DirectByteBuffer concretely) is used as the Java level
> interface/view of native memory, allowing Java and native code to
> communicate.

So a DBB, under your code, may report a different address at some time
in the future, to that of what it currently reports?  I was not aware of this
usecase. Is any similar code available on the web, or elsewhere, so we
could try to determine why this is being done?

-Chris.



More information about the jigsaw-dev mailing list