Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: 1000
-
Component/s: Runtime, Runtime: Object Model
-
Labels:None
Description
The RVM currently passes around raw Object instances and then converts them to ObjectReference instances when passing the object to MMTk. It would be nicer if the entire runtime worked with ObjectReference instances rather than raw Object instances. The conversion between Object and ObjectReference should also be made explicit throughout the entire RVM by using ObjectReference.fromObject() and ObjectReference.toObject().. And rather than assigning ObjectReference to null it should be set to ObjectReference.nullReference()
Initial experimentation demonstrated a "cleaner" feeling codebase in almost all circumstances with the exception of areas that caused excessively verbose boxing/unboxing such as; VM_Reflection, TIB manipulation and in some of the array manipulation code.