[foreign-jextract] RFR: MemorySegmentPool + Allocator [v8]

Radoslaw Smogura github.com+7535718+rsmogura at openjdk.java.net
Fri Apr 23 01:26:39 UTC 2021


On Fri, 23 Apr 2021 01:12:00 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

>> Catched! It's not int, I use calculate leading zeros, I guess this a barrier for VM. Replacing size by size with align makes it fast.
>> 
>> But  it's about size value
>
> Good catch - I'm not sure I follow the various @DontInline and such - I hope the code is not too tailored to the specific benchmark. But the numbers are rather good - now even the clean API gives numbers that beat malloc considerably (I honestly would leave the direct API alone). This is indeed a good direction - while I'm not planning to add something like this at this stage, we will, at some point after 17, ramp up some discussion around allocation strategy, and it seems like we got a good contender here ;-) 
> 
> Many thanks for your efforts.

I should thank you for help and motivation.

Now I've got highly tuned allocator to implement native I/O.

That's will be critical to provide buffers between native and heap memory.

Thanks again!

-------------

PR: https://git.openjdk.java.net/panama-foreign/pull/509


More information about the panama-dev mailing list