src/hotspot/share/interpreter/rewriter.cpp
changeset 51592 1ddd1ec04431
parent 51467 12997ebbc0d8
child 53746 bdccafc038a2
--- a/src/hotspot/share/interpreter/rewriter.cpp	Thu Aug 30 09:34:10 2018 +0200
+++ b/src/hotspot/share/interpreter/rewriter.cpp	Thu Aug 30 09:08:23 2018 -0400
@@ -400,7 +400,9 @@
       }
     }
 
-    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   : {