Foreign memory access with classes
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Tue Nov 8 15:22:01 UTC 2022
On 08/11/2022 15:12, Gavin Ray wrote:
> I'm not sure how the JVM GC works, but I think that MemorySegment
> allocation probably calls "malloc" somewhere down the line
That's correct.
Also, if you combine memory segments with the Linker API, you might
"re-alloc" memory as required. E.g. keep a reference to a "current"
segment, of a given size, which can be re-allocated when more size is
required.
Maurizio
More information about the panama-dev
mailing list