< prev index next >

src/hotspot/share/oops/oopsHierarchy.hpp

Print this page
rev 47383 : [mq]: OrderAccess_refactoring

*** 175,184 **** --- 175,193 ---- } \ volatile type##Oop& operator=(const volatile type##Oop& o) volatile {\ (void)const_cast<oop&>(oop::operator=(o)); \ return *this; \ } \ + }; \ + \ + template<> \ + struct PrimitiveConversions::Translate<type##Oop> : public TrueType { \ + typedef type##Oop Value; \ + typedef type##OopDesc* Decayed; \ + \ + static Decayed decay(Value x) { return (type##OopDesc*)x.obj(); } \ + static Value recover(Decayed x) { return type##Oop(x); } \ }; DEF_OOP(instance); DEF_OOP(array); DEF_OOP(objArray);
< prev index next >