8210168: JCK test .vm.classfmt.ins.code__002.code__00201m1.code__00201m1 hangs with -noverify
Check for 'bc_length > 0' to handle lengths of -1. Reviewed-by: coleenp
This commit is contained in:
parent
af1ce0a659
commit
d36066fdad
@ -400,7 +400,9 @@ void Rewriter::scan_method(Method* method, bool reverse, bool* invokespecial_err
|
||||
}
|
||||
}
|
||||
|
||||
assert(bc_length != 0, "impossible bytecode length");
|
||||
// Continuing with an invalid bytecode will fail in the loop below.
|
||||
// So guarantee here.
|
||||
guarantee(bc_length > 0, "Verifier should have caught this invalid bytecode");
|
||||
|
||||
switch (c) {
|
||||
case Bytecodes::_lookupswitch : {
|
||||
|
Loading…
Reference in New Issue
Block a user