PR163: descriptor_params_from_paramtypes is protected by a mutex now (per descriptor...
[cacao.git] / src / vm / method.cpp
index 7adb88a84afd9ae03b874905e23e7f930a7868f4..337eb27bcd4e7e14339e206977677d4ca8637127 100644 (file)
@@ -735,8 +735,7 @@ int32_t method_get_parametercount(methodinfo *m)
        
        /* is the descriptor fully parsed? */
 
-       if (md->params == NULL)
-               descriptor_params_from_paramtypes(md, m->flags);
+       descriptor_params_from_paramtypes(md, m->flags);
 
        paramcount = md->paramcount;
 
@@ -771,8 +770,7 @@ java_handle_objectarray_t *method_get_parametertypearray(methodinfo *m)
 
        /* is the descriptor fully parsed? */
 
-       if (m->parseddesc->params == NULL)
-               descriptor_params_from_paramtypes(md, m->flags);
+       descriptor_params_from_paramtypes(md, m->flags);
 
        paramtypes = md->paramtypes;
        paramcount = md->paramcount;