RFR(L): 8069539: RSA acceleration
Andrew Haley
aph at redhat.com
Tue May 5 09:06:11 UTC 2015
On 05/05/15 02:13, Vladimir Kozlov wrote:
> I think it was last mail in open list. There were discussions in private.
> Here is upadted webrev:
>
> http://cr.openjdk.java.net/~kvn/8069539/webrev.01/
>
> It include changes in java/math/BigInteger.java which added range
> checks and moved intrinsified code into private methods.
>
> Andrew Haley has additional suggestions we can discuss now. Andrew,
> can you show proposed changes to java code?
OK. The changes I'd like to make to the Java code are fairly minor,
but they make possible a better design of the intrinsics. It's not
really possible to write a 64-bit version of Montgomery reduction in
pure Java (because it uses a 128-bit product internally) but I will
produce a JNI version as a demonstration of what I'd like to do in an
intrinsic.
> I would like to have only simple java changes (methods splitting)
> and do experiments/changes with word-reversal later.
Sure. The word-reversal is internal to the native intrinsics; it
won't affect the Java code at all.
Andrew.
More information about the hotspot-compiler-dev
mailing list