Foreign memory access with classes
Gavin Ray
ray.gavin97 at gmail.com
Tue Nov 8 17:28:08 UTC 2022
Unfortunately it isn't OSS, but there are two papers about it's
architecture (one about the buffer pool, and one about using coroutines
with io_uring):
- p29-neumann-cidr20.pdf (tum.de)
<https://db.in.tum.de/~freitag/papers/p29-neumann-cidr20.pdf>
- https://db.in.tum.de/~fent/papers/coroutines.pdf
On Tue, Nov 8, 2022 at 11:16 AM Johannes Lichtenberger <
lichtenberger.johannes at gmail.com> wrote:
> @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/718cba63/attachment.htm>
More information about the panama-dev
mailing list