8197988: T2 test javax/net/ssl/interop/ClientHelloChromeInterOp.java failed after JDK-8164278

Reviewed-by: alanb
This commit is contained in:
Xueming Shen 2018-02-15 00:25:01 -08:00
parent 48b9835669
commit 739c973204

@ -692,8 +692,9 @@ public class Base64 {
int dp = 0;
int bits = 0;
int shiftto = 18; // pos of first byte of 4-byte atom
while (sp < sl) {
if (bits == 0 && sp + 4 < sl) { // fast path
if (shiftto == 18 && sp + 4 < sl) { // fast path
int sl0 = sp + ((sl - sp) & ~0b11);
while (sp < sl0) {
int b1 = base64[src[sp++] & 0xff];