RFR (M): 8143925: Enhancing CounterMode.crypt() for AES

Kharbas, Kishor kishor.kharbas at intel.com
Tue Nov 24 22:33:17 UTC 2015


Hello all,

I request the community to review a patch for enhancing CounterMode.crypt() for AES. This patch defines intrinsic for CounterMode.crypt() to leverage the parallel nature of AES in Counter (CTR) Mode.
This is achieved by operating on 6 blocks in parallel to issue independent x86 AES-NI instructions and keep the CPU pipeline full.

Testing on micro-benchmark has shown a speedup of 4x-6x.

Bug id:
   https://bugs.openjdk.java.net/browse/JDK-8143925
Webrev:
  hotspot: http://cr.openjdk.java.net/~mcberg/8143925/hotspot/webrev.02/
  jdk: http://cr.openjdk.java.net/~mcberg/8143925/jdk/webrev.01/

Much appreciated!
Kishor Kharbas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20151124/22411b76/attachment.html>


More information about the hotspot-compiler-dev mailing list