Add limit for MemorySegment.allocateNative
Robert Lu
robberphex at gmail.com
Sun Jun 21 03:59:48 UTC 2020
The jdk.incubator.foreign is really fast, but unlike
ByteBuffer.allocateDirect , there is no such limit like
XX:MaxDirectMemorySize .
How could the user set max memory size used by jdk.incubator.foreign?
Could I submit a patch to count jdk.incubator.foreign's memory to
java.nio.Bits#RESERVED_MEMORY, and follow the limit of
XX:MaxDirectMemorySize?
--
Robert Lu <robberphex at gmail.com>
About me: https://www.robberphex.com/about-me
More information about the panama-dev
mailing list