On Wed, 15 Apr 2026 19:14:30 GMT, Chen Liang <[email protected]> wrote:

>> `VectorMathLibrary.SVML.symbolName()` uses `String.format("%d", vlen)` 
>> without specifying `Locale.ROOT` to construct native symbol names for 
>> libjsvml.so lookup. Under locales that use non-ASCII digit systems (e.g. 
>> `ar-SA` Arabic-Indic, `hi-IN` Devanagari), the `%d` format specifier 
>> produces locale-specific digits, causing the FFI SymbolLookup to fail with 
>> `NoSuchElementException`.
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> test/jdk/jdk/incubator/vector/VectorMathLibraryLocaleTest.java line 49:
> 
>> 47:         // so it exercises the symbol name construction path.
>> 48:         FloatVector result = v.lanewise(VectorOperators.EXP);
>> 49:         System.out.println("exp(1.0) = " + result);
> 
> This test doesn't have any way to fail. So it might be better just to remove 
> this test completely if we can't verify?

If it throws it fails. We could add some simple operations to assert?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/30748#discussion_r3089481345

Reply via email to