-
Bug
-
Resolution: Cannot Reproduce
-
P3
-
16, 17
This branch:
https://github.com/openjdk/panama-foreign/compare/foreign-jextract...mcimadamore:small_copy_benchmark?expand=1
Contains a new benchmark "TestSmallCopy". No matter how the copy is done (slicing, or static method), the performance of the segment version is worse than when using unsafe directly.
This could be a result of the added safety check which are added by the segment version, but I believe we should investigate this deeper, as something related seems to be causing issues with Lucene.
https://github.com/openjdk/panama-foreign/compare/foreign-jextract...mcimadamore:small_copy_benchmark?expand=1
Contains a new benchmark "TestSmallCopy". No matter how the copy is done (slicing, or static method), the performance of the segment version is worse than when using unsafe directly.
This could be a result of the added safety check which are added by the segment version, but I believe we should investigate this deeper, as something related seems to be causing issues with Lucene.
- relates to
-
JDK-8268743 Require a better way for copying data between MemorySegments and on-heap arrays
-
- Closed
-
-
JDK-8269119 C2: Avoid redundant memory barriers in Unsafe.copyMemory0 intrinsic
-
- Resolved
-