< prev index next >

src/hotspot/share/memory/oopFactory.hpp

Print this page
rev 52749 : Bootstrap method consolidation
* clean up and simplify JDK support code for BSM invocation
* simplify JVM bootstrap handshake: use BootstrapCallInfo only
* remove unused JVM paths and data fields
* move bootstrap argument processing from MethodHandleNatives to ConstantPool
* remove ConstantGroup; merge argument access into BootstrapCallInfo
* adjust BSM argument access: remove copyArguments, add argumentRef API
* add metadata-free BSM modes, including symbolic arguments from CP


  53   // create java.lang.Object[]
  54   static objArrayOop     new_objectArray(int length, TRAPS)  {
  55     assert(Universe::objectArrayKlassObj() != NULL, "Too early?");
  56     return ObjArrayKlass::
  57       cast(Universe::objectArrayKlassObj())->allocate(length, THREAD);
  58   }
  59 
  60   static typeArrayOop    new_charArray           (const char* utf8_str,  TRAPS);
  61   static typeArrayOop    new_tenured_charArray(int length, TRAPS);
  62 
  63   static typeArrayOop    new_typeArray(BasicType type, int length, TRAPS);
  64   static typeArrayOop    new_typeArray_nozero(BasicType type, int length, TRAPS);
  65   static typeArrayOop    new_symbolArray(int length, TRAPS);
  66 
  67   // Regular object arrays
  68   static objArrayOop     new_objArray(Klass* klass, int length, TRAPS);
  69 
  70   // Helpers that return handles
  71   static objArrayHandle  new_objArray_handle(Klass* klass, int length, TRAPS);
  72   static typeArrayHandle new_byteArray_handle(int length, TRAPS);


  73 };
  74 
  75 #endif // SHARE_VM_MEMORY_OOPFACTORY_HPP


  53   // create java.lang.Object[]
  54   static objArrayOop     new_objectArray(int length, TRAPS)  {
  55     assert(Universe::objectArrayKlassObj() != NULL, "Too early?");
  56     return ObjArrayKlass::
  57       cast(Universe::objectArrayKlassObj())->allocate(length, THREAD);
  58   }
  59 
  60   static typeArrayOop    new_charArray           (const char* utf8_str,  TRAPS);
  61   static typeArrayOop    new_tenured_charArray(int length, TRAPS);
  62 
  63   static typeArrayOop    new_typeArray(BasicType type, int length, TRAPS);
  64   static typeArrayOop    new_typeArray_nozero(BasicType type, int length, TRAPS);
  65   static typeArrayOop    new_symbolArray(int length, TRAPS);
  66 
  67   // Regular object arrays
  68   static objArrayOop     new_objArray(Klass* klass, int length, TRAPS);
  69 
  70   // Helpers that return handles
  71   static objArrayHandle  new_objArray_handle(Klass* klass, int length, TRAPS);
  72   static typeArrayHandle new_byteArray_handle(int length, TRAPS);
  73   static typeArrayHandle new_intArray_handle(int length, TRAPS);
  74   static typeArrayHandle new_typeArray_handle(BasicType type, int length, TRAPS);
  75 };
  76 
  77 #endif // SHARE_VM_MEMORY_OOPFACTORY_HPP
< prev index next >