// Simple classes for wrapping oop and atomically accessed oop pointers // stored in OopStorage, or stored in the ClassLoaderData handles area. // These classes help with allocation, release, and NativeAccess loads and // stores with the appropriate barriers.
class OopHandle { friendclass VMStructs; private:
oop* _obj;
OopHandle& operator=(const OopHandle& copy) { // Allow "this" to be junk if copy is empty; needed by initialization of // raw memory in hashtables.
assert(is_empty() || copy.is_empty(), "can only copy if empty");
_obj = copy._obj; return *this;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.