changeset 7399:18499cb0b0ff

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
author emc
date Fri, 14 Nov 2014 12:45:55 -0500
parents 86feba25ac0b
children d25271a8f71e a1e5bc3d5ce9
files src/share/vm/oops/constMethod.cpp
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/oops/constMethod.cpp	Thu Nov 13 10:39:35 2014 -0800
+++ b/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;
 }