`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).

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

Commit messages:
 - 8382267: VectorMathLibrary uses locale-sensitive String.format to construct 
native symbol names

Changes: https://git.openjdk.org/jdk/pull/30748/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30748&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8382267
  Stats: 54 lines in 2 files changed: 52 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/30748.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/30748/head:pull/30748

PR: https://git.openjdk.org/jdk/pull/30748

Reply via email to