-
Enhancement
-
Resolution: Fixed
-
P4
-
17, 21, 25, 26
-
b10
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8367713 | 25.0.2 | Victor Rudometov | P4 | Resolved | Fixed | master |
```
% build/linux-x86_64-server-release/images/jdk/bin/java -XX:+UnlockDiagnosticVMOptions -XX:+PrintFlagsFinal 2>&1 | grep IntelJcc
bool IntelJccErratumMitigation = true
% lscpu
...
Model name: AMD EPYC 9R14
```
It would be good to set the flag value itself ergonomically.
Something simple might do:
```
diff --git a/src/hotspot/cpu/x86/vm_version_x86.cpp b/src/hotspot/cpu/x86/vm_version_x86.cpp
index 42661bd7a2b..baeea79e7ea 100644
--- a/src/hotspot/cpu/x86/vm_version_x86.cpp
+++ b/src/hotspot/cpu/x86/vm_version_x86.cpp
@@ -1068,7 +1068,9 @@ void VM_Version::get_processor_features() {
}
if (FLAG_IS_DEFAULT(IntelJccErratumMitigation)) {
- _has_intel_jcc_erratum = compute_has_intel_jcc_erratum();
+ bool r = compute_has_intel_jcc_erratum();
+ _has_intel_jcc_erratum = r;
+ FLAG_SET_ERGO(IntelJccErratumMitigation, r);
} else {
_has_intel_jcc_erratum = IntelJccErratumMitigation;
}
```
Or, maybe purge the `VM_Version::_has_intel_jcc_erratum` completely, and replace it with `IntelJccErratumMitigation` checks.
- backported by
-
JDK-8367713 Set IntelJccErratumMitigation flag ergonomically
-
- Resolved
-
- caused by
-
JDK-8240370 Provide Intel JCC Erratum opt-out
-
- Resolved
-
- relates to
-
JDK-8234160 Enable optimized mitigation for Intel jcc erratum in C2
-
- Resolved
-
- links to
-
Commit(master) openjdk/jdk25u/569b97fa
-
Commit(master) openjdk/jdk/6c580472
-
Review(master) openjdk/jdk25u/195
-
Review(master) openjdk/jdk/26560
(2 links to)