Issue Details (XML | Word | Printable)

Key: RVM-225
Type: Improvement Improvement
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Ian Rogers
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
RVM

Private methods allocated space in the TIB

Created: 17/Sep/07 11:37 AM   Updated: 11/Apr/08 09:29 AM
Component/s: Runtime
Affects Version/s: 2.9.0, 2.9.0.1, 2.9.1
Fix Version/s: 1000

Time Tracking:
Not Specified


 Description  « Hide
Pointers to static methods are placed in the JTOC. Pointers to virtual methods are placed in the TIB. Special methods are non-virtual, their target is known at runtime and they don't need a virtual method dispatch. Private methods and object initializers are special methods invoked by invokespecial. For object initializers we turn the call into the same as an invokestatic with an object passed as argument 0. For private methods, however, we turn the call into the same as an invokevirtual. This reduces pressure on the JTOC but inflates the size of the TIB. We should consider altering this design and evaluating the performance impact.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.