8064571: java/lang/instrument/IsModifiableClassAgent.java: assert(length > 0) failed: should only be called if table is present
Summary: Remove tautological assert
Reviewed-by: coleenp, lfoltan, sspitsyn, jiangli
--- a/hotspot/src/share/vm/oops/constMethod.cpp Thu Nov 13 10:39:35 2014 -0800
+++ b/hotspot/src/share/vm/oops/constMethod.cpp Fri Nov 14 12:45:55 2014 -0500
@@ -293,7 +293,6 @@
MethodParametersElement* ConstMethod::method_parameters_start() const {
u2* addr = method_parameters_length_addr();
u2 length = *addr;
- assert(length > 0, "should only be called if table is present");
addr -= length * sizeof(MethodParametersElement) / sizeof(u2);
return (MethodParametersElement*) addr;
}