[foreign-memaccess+abi] RFR: 8313238: Improve the performance of strlen for null-terminated strings [v3]
    Per Minborg 
    pminborg at openjdk.org
       
    Mon Aug  7 11:02:55 UTC 2023
    
    
  
On Thu, 3 Aug 2023 14:10:55 GMT, Radoslaw Smogura <duke at openjdk.org> wrote:
>> Per Minborg has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Break out native invocations in separate methods
>
> src/java.base/share/classes/jdk/internal/foreign/StringSupport.java line 123:
> 
>> 121:                 segment = segment.asSlice(start);
>> 122:             }
>> 123:             long len = segment.byteSize() < MAX_TRIVIAL_SIZE
> 
> When calling `strlen` should it be considered if segments is heap or off-heap?
The linker can call native methods where the segment is heap-based too.
-------------
PR Review Comment: https://git.openjdk.org/panama-foreign/pull/857#discussion_r1285711891
    
    
More information about the panama-dev
mailing list