Uploaded image for project: 'JikesRVM'
  1. RVM-443

Avoid back references in java.lang.reflect VMXXX classes

    Details

      Description

      Currently the patten:

      ... Method { ...
      Method(..)

      { vmMethod = new VMMethod(...); vmMethod.method = this; }

      }

      ... VMMethod { ...
      Method method;
      ... invoke ...

      { method.isAccessible(...) .. }

      }

      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.

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                ianrogers Ian Rogers
                Reporter:
                ianrogers Ian Rogers
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: