mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-01 22:18:23 +00:00
8064571: java/lang/instrument/IsModifiableClassAgent.java: assert(length > 0) failed: should only be called if table is present
Remove tautological assert Reviewed-by: coleenp, lfoltan, sspitsyn, jiangli
This commit is contained in:
parent
b259ede692
commit
3e575a7078
@ -293,7 +293,6 @@ int ConstMethod::method_parameters_length() const {
|
||||
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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user