JDK-8002272 : JVM AES support
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: hs25
  • Priority: P1
  • Status: Closed
  • Resolution: Not an Issue
  • OS: linux_ubuntu
  • CPU: x86
  • Submitted: 2012-11-05
  • Updated: 2012-12-21
  • Resolved: 2012-11-05
Related Reports
Duplicate :  
My Intel i5-520M supports AES (See: http://ark.intel.com/products/47341/Intel-Core-i5-520M-Processor-3M-Cache-2_40-GHz)

The JVM though says that's not true:

ajiva@azeem-t410 ~ $ ~/jdk8/bin/java -XX:+UseAES -XX:+UseAESIntrinsics -version
Java HotSpot(TM) 64-Bit Server VM warning: AES intrinsics not available on this CPU
java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-b63)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b07, mixed mode)

Although /proc/cpuinfo shows:

flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt aes lahf_lm ida arat dtherm tpr_shadow vnmi flexpriority ept vpid

Which shows AES support

The issue is resolved by 8004835 fix.

AES intrinsics uses AVX instructions which are not present on that CPU: // The AES intrinsic stubs require AES instruction support (of course) // but also require AVX mode for misaligned SSE access if (UseAES && (UseAVX > 0)) { if (FLAG_IS_DEFAULT(UseAESIntrinsics)) { UseAESIntrinsics = true; } } else if (UseAESIntrinsics) { if (!FLAG_IS_DEFAULT(UseAESIntrinsics)) warning("AES intrinsics not available on this CPU"); FLAG_SET_DEFAULT(UseAESIntrinsics, false); }