mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8197988: T2 test javax/net/ssl/interop/ClientHelloChromeInterOp.java failed after JDK-8164278
Reviewed-by: alanb
This commit is contained in:
parent
48b9835669
commit
739c973204
1 changed files with 2 additions and 1 deletions
|
@ -692,8 +692,9 @@ public class Base64 {
|
||||||
int dp = 0;
|
int dp = 0;
|
||||||
int bits = 0;
|
int bits = 0;
|
||||||
int shiftto = 18; // pos of first byte of 4-byte atom
|
int shiftto = 18; // pos of first byte of 4-byte atom
|
||||||
|
|
||||||
while (sp < sl) {
|
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);
|
int sl0 = sp + ((sl - sp) & ~0b11);
|
||||||
while (sp < sl0) {
|
while (sp < sl0) {
|
||||||
int b1 = base64[src[sp++] & 0xff];
|
int b1 = base64[src[sp++] & 0xff];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue