Details
-
Bug
-
Status: Resolved
-
P3
-
Resolution: Fixed
-
18, 19
-
b30
-
x86
-
linux
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8289627 | 20 | Vladimir Ivanov | P3 | Resolved | Fixed | b05 |
JDK-8291376 | 19.0.2 | Vladimir Ivanov | P3 | Resolved | Fixed | b01 |
JDK-8291213 | 19.0.1 | Vladimir Ivanov | P3 | Resolved | Fixed | b04 |
Description
While benchmarking AVX related tests on x86 server machines, it was observed that the test throughput of the release build is ~35x slower than that of the fastdebug build. A sample test case named TestShortRShift.java is also attached.
Preliminarily performance analysis revealed that the fastdebug version is running AVX instructions whereas the debug version is falling back to the scalar instruction.
--------------------------------------------------------------------------
Below we list the main function that is being tested in TestShortRShift.java
public static void mainTest(long numIterations) {
while (numIterations > 0) {
for (int i = 0; i < BUFFER_SIZE; i++) {
// Code below would be run using x86 AVX instructions
outputBuffer[i] = (short)(inputBuffer[i] >> 3);
}
numIterations--;
}
}
Preliminarily performance analysis revealed that the fastdebug version is running AVX instructions whereas the debug version is falling back to the scalar instruction.
--------------------------------------------------------------------------
Below we list the main function that is being tested in TestShortRShift.java
public static void mainTest(long numIterations) {
while (numIterations > 0) {
for (int i = 0; i < BUFFER_SIZE; i++) {
// Code below would be run using x86 AVX instructions
outputBuffer[i] = (short)(inputBuffer[i] >> 3);
}
numIterations--;
}
}
Attachments
Issue Links
- backported by
-
JDK-8289627 C2: Loop opts are missing during OSR compilation
-
- Resolved
-
-
JDK-8291213 C2: Loop opts are missing during OSR compilation
-
- Resolved
-
-
JDK-8291376 C2: Loop opts are missing during OSR compilation
-
- Resolved
-
- relates to
-
JDK-8272330 C2: Cleanup profile counter scaling
-
- Resolved
-
(1 links to)