<div>Dear all,</div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0);"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0);">On a machine with the 13th gen Intel CPU, WhiteBox test in the file CPUInfoTest.java fails.</div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0);"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0);">The test in question checks the features returned from the CPUInfo class against a hardcoded set of well known CPU features inside the test, that looks like this:</div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0);"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0);"></div><div><span> wellKnownCPUFeatures = Set.of( "cx8", "cmov", "fxsr", "ht", "mmx", "3dnowpref", "sse", "sse2", "sse3", "ssse3", "sse4a", "sse4.1", "sse4.2", "popcnt", "lzcnt", "tsc", "tscinvbit", "tscinv", "avx", "avx2", "aes", "erms", "clmul", "bmi1", "bmi2", "rtm", "adx", "avx512f", "avx512dq", "avx512pf", "avx512er", "avx512cd", "avx512bw", "avx512vl", "sha", "fma", "vzeroupper", "avx512_vpopcntdq", "avx512_vpclmulqdq", "avx512_vaes", "avx512_vnni", "clflush", "clflushopt", "clwb", "avx512_vbmi2", "avx512_vbmi", "rdtscp", "rdpid", "hv", "fsrm", "avx512_bitalg", "gfni", "f16c", "pku", "ospke", "cet_ibt", "cet_ss", "avx512_ifma");</span></div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0);"><span><br></span></div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0);"><span>This set of strings on the other hand does not account for the SERIALIZE instruction, added in the 12th generation of Intel Core processors (codenamed Alder Lake), while the processor inspection implementation in <span>/src/hotspot/cpu/x86/vm_version_x86.cpp picks up the flag for it, thus leading to a discrepancy between the features set in the test and the features string obtained from CPUInfo class, when ran on the 12th gen processors and higher.</span></span></div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0);"><span><span><br></span></span></div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0);"><span><span>The support for this feature seems to have been added to the code base with the following commit: <a href="https://github.com/openjdk/jdk/commit/9583e3657e43cc1c6f2101a64534564db2a9bd84" title="8284161: Implementation of Virtual Thread">8284161: Implementation of Virtual Thread</a>, but the authors may have missed adding the "serialize" string to the set of well known CPU features in the CPUInfoTest.java file.<br></span></span></div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0);"><br><span></span></div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0);">I would like to extend the wellKnownCPUFeatures set with the "serialize" keyword, unless there is a reason that this keyword is missing that I do not see?</div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0);"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0);">If that isn't the case, I would appreciate getting some support with creating an issue in JBS, since I am not an author yet :)<br></div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0);"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0);">I look forward to your feedback!</div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0);"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0);">Best Regards,</div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0);">Kosta Stojiljkovic<br></div>