@@ -34,10 +34,11 @@ // This assumes that the caller will allocate the handle in the appropriate // area. The reason for the encapsulation is to help with naming and to allow // future uses for read barriers. class OopHandle { + friend class VMStructs; private: oop* _obj; public: OopHandle() : _obj(NULL) {}