RVM

Avoid back references in java.lang.reflect VMXXX classes

Details

  • Number of attachments :
    0

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.

Issue Links

Activity

Hide
Ian Rogers added a comment -

Patch in r14905.

Show
Ian Rogers added a comment - Patch in r14905.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: