Foreign memory access with classes

Johannes Lichtenberger lichtenberger.johannes at gmail.com
Tue Nov 8 16:16:43 UTC 2022


@Gavin Ray <ray.gavin97 at gmail.com>, is the source code of UmbraDB somewhere
available? Of course, it should possible to pad the pages to a certain
predefined length if required (currently, the page fragments are
word-aligned, but maybe I should also introduce a bunch of predefined
buffer-classes -- should also have some advantage in regards to io_uring,
for instance) :-)

@Maurizio Cimadamore <maurizio.cimadamore at oracle.com>, can you give a small
example? I've never used the Linker API but will have a look into it. I'm
updating the project to every new Java version, so currently using Java 19.

Am Di., 8. Nov. 2022 um 16:22 Uhr schrieb Maurizio Cimadamore <
maurizio.cimadamore at oracle.com>:

>
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/panama-dev/attachments/20221108/ec38800b/attachment.htm>


More information about the panama-dev mailing list