-
Enhancement
-
Resolution: Fixed
-
P3
-
21, 22
-
b03
-
riscv
-
linux
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8310539 | 21.0.1 | Vladimir Kempik | P3 | Resolved | Fixed | b02 |
JDK-8317833 | 17.0.10 | Olga Mikhaltcova | P3 | Resolved | Fixed | b01 |
For example ( trp_lam is a perf event for misaligned read faults):
#
# Samples: 20K of event 'trp_lam'
# Event count (approx.): 63238
#
# Overhead Command Shared Object Symbol
# ........ ............... ................. ..................................................
#
84.40% finagle/netty4- [JIT] tid 21164 [.] int java.lang.String.indexOf(java.lang.String)
14.75% java [JIT] tid 21164 [.] int java.lang.String.indexOf(java.lang.String)
0.77% finagle-http-wo [JIT] tid 21164 [.] int java.lang.String.indexOf(java.lang.String)
Later I found this also can be partialy reproduced with StringIndexOf.advancedWithMediumSub jmh test
In some cases, String.IndexOf intrinsic performance could be up to 50x times worse than expected. ( on h/w without misaligned access support)
- backported by
-
JDK-8310539 RISC-V: String.indexOf intrinsic may produce misaligned memory loads
-
- Resolved
-
-
JDK-8317833 RISC-V: String.indexOf intrinsic may produce misaligned memory loads
-
- Resolved
-
- links to
-
Commit openjdk/jdk17u-dev/8e4f66a6
-
Commit openjdk/jdk21u/79d44fde
-
Commit openjdk/jdk/6b942893
-
Review openjdk/jdk17u-dev/1857
-
Review openjdk/jdk21/20
-
Review openjdk/jdk21u/2
-
Review openjdk/jdk/14320