< prev index next >

src/hotspot/share/oops/instanceKlass.inline.hpp

Print this page
rev 49211 : 8199472: Fix non-PCH build after JDK-8199319

@@ -27,15 +27,21 @@
 
 #include "memory/iterator.hpp"
 #include "oops/instanceKlass.hpp"
 #include "oops/klass.hpp"
 #include "oops/oop.inline.hpp"
+#include "runtime/handles.inline.hpp"
 #include "runtime/orderAccess.inline.hpp"
 #include "utilities/debug.hpp"
 #include "utilities/globalDefinitions.hpp"
 #include "utilities/macros.hpp"
 
+// additional member function to return a handle
+inline instanceHandle InstanceKlass::allocate_instance_handle(TRAPS) {
+  return instanceHandle(THREAD, allocate_instance(THREAD));
+}
+
 inline Klass* InstanceKlass::array_klasses_acquire() const {
   return OrderAccess::load_acquire(&_array_klasses);
 }
 
 inline void InstanceKlass::release_set_array_klasses(Klass* k) {
< prev index next >