--- old/src/hotspot/share/ci/ciStreams.cpp 2019-01-30 13:51:49.000000000 -0800 +++ new/src/hotspot/share/ci/ciStreams.cpp 2019-01-30 13:51:48.000000000 -0800 @@ -336,18 +336,7 @@ // If this is a method invocation bytecode, get the constant pool // index of the invoked method. int ciBytecodeStream::get_method_index() { -#ifdef ASSERT - switch (cur_bc()) { - case Bytecodes::_invokeinterface: - case Bytecodes::_invokevirtual: - case Bytecodes::_invokespecial: - case Bytecodes::_invokestatic: - case Bytecodes::_invokedynamic: - break; - default: - ShouldNotReachHere(); - } -#endif + assert(Bytecodes::is_invoke(cur_bc()), "invalid bytecode: %s", Bytecodes::name(cur_bc())); if (has_index_u4()) return get_index_u4(); // invokedynamic return get_index_u2_cpcache();