RFR: 8371571: Consolidate and enhance bulk memory segment ops benchmarks [v2]

Jorn Vernee jvernee at openjdk.org
Thu Nov 13 19:02:32 UTC 2025


On Thu, 13 Nov 2025 18:58:48 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

>> Per Minborg has updated the pull request incrementally with three additional commits since the last revision:
>> 
>>  - Remove lingering comment
>>  - Refactor and use long arrays
>>  - Remove BulkOps
>
> test/micro/org/openjdk/bench/java/lang/foreign/SegmentBulkFill.java line 114:
> 
>> 112:             segment = switch (SegmentType.valueOf(segmentType)) {
>> 113:                 case HEAP   -> heapSegment;
>> 114:                 case NATIVE -> Arena.ofAuto().allocateFrom(JAVA_LONG, heapSegment, JAVA_LONG, 0L, baseArray.length);
> 
> Suggestion:
> 
>                 case NATIVE -> Arena.ofAuto().allocateFrom(JAVA_LONG, baseArray);

(and same for the other 2)

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28260#discussion_r2524601213


More information about the core-libs-dev mailing list