Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 3.0.1
-
Component/s: Runtime: Class Library: GNU Classpath
-
Labels:None
-
Number of attachments :
Description
Currently the patten:
... Method { ...
Method(..)
}
... VMMethod { ...
Method method;
... invoke ...
}
is common in java.lang.reflect. The field holding the Method is non-final therefore we can't optimize the back reference away. It would be much more efficient if when calling VMMethod.invoke the Method was passed as an additional argument.
This effects Constructor too.
Patch in r14905.