8064571: java/lang/instrument/IsModifiableClassAgent.java: assert(length > 0) failed: should only be called if table is present
authoremc
Fri, 14 Nov 2014 12:45:55 -0500
changeset 27658 90cae28ee3cb
parent 27657 f4fcaa1bb2d4
child 27660 e83fef4e1f56
child 27664 2e9a963d4ec7
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
hotspot/src/share/vm/oops/constMethod.cpp
--- 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;
 }