mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02: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
1 changed files with 0 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue