-
Bug
-
Resolution: Fixed
-
P3
-
17
-
CPUs with 256-byte dcache line size
-
b16
-
generic
-
generic
Recently we tested OpenJDK on some CPUs with 256-byte dcache line. HotSpot AOT tests failed because the shared library compiled with the same VM options on the same machine cannot be loaded back to the VM.
Below command sequence shows a way to reproduce this issue.
$ getconf -a | grep LEVEL1_DCACHE_LINESIZE
LEVEL1_DCACHE_LINESIZE 256
$ jaotc --output a.so Hello.class
$ java -XX:+UnlockExperimentalVMOptions -XX:+UseAOT -XX:AOTLibrary=./a.so -XX:+PrintAOT Hello
Shared file ./a.so error: ContendedPaddingWidth has different value '256' from current '128'
4 1 skipped ./a.so aot library
Below command sequence shows a way to reproduce this issue.
$ getconf -a | grep LEVEL1_DCACHE_LINESIZE
LEVEL1_DCACHE_LINESIZE 256
$ jaotc --output a.so Hello.class
$ java -XX:+UnlockExperimentalVMOptions -XX:+UseAOT -XX:AOTLibrary=./a.so -XX:+PrintAOT Hello
Shared file ./a.so error: ContendedPaddingWidth has different value '256' from current '128'
4 1 skipped ./a.so aot library