[foreign-jextract] RFR: MemorySegmentPool + Allocator [v8]
Maurizio Cimadamore
mcimadamore at openjdk.java.net
Thu Apr 22 20:33:36 UTC 2021
On Thu, 22 Apr 2021 20:23:56 GMT, Radoslaw Smogura <github.com+7535718+rsmogura at openjdk.org> wrote:
>> That's a pity JMH does not allow sub measurements
>
> I think that issue is related how JVM shapes code. If I'll write something like this
> readSegment(s.memoryAddress.asSegment(size, scope));
> so I'll allocate a new segment based on address than the read performance goes up, and it's same as malloc version
See my other code comment - I think the issue here might be that the VM can't clearly see the segment size, so counted loop optimizations are not kicking in.
-------------
PR: https://git.openjdk.java.net/panama-foreign/pull/509
More information about the panama-dev
mailing list