< prev index next >

src/hotspot/share/memory/universe.cpp

Print this page

  39 #include "gc/shared/collectedHeap.inline.hpp"
  40 #include "gc/shared/gcArguments.hpp"
  41 #include "gc/shared/gcConfig.hpp"
  42 #include "gc/shared/gcLogPrecious.hpp"
  43 #include "gc/shared/gcTraceTime.inline.hpp"
  44 #include "gc/shared/oopStorageSet.hpp"
  45 #include "gc/shared/stringdedup/stringDedup.hpp"
  46 #include "gc/shared/tlab_globals.hpp"
  47 #include "logging/log.hpp"
  48 #include "logging/logStream.hpp"
  49 #include "memory/metadataFactory.hpp"
  50 #include "memory/metaspaceClosure.hpp"
  51 #include "memory/metaspaceCounters.hpp"
  52 #include "memory/metaspaceUtils.hpp"
  53 #include "memory/oopFactory.hpp"
  54 #include "memory/resourceArea.hpp"
  55 #include "memory/universe.hpp"
  56 #include "oops/compressedOops.hpp"
  57 #include "oops/instanceKlass.hpp"
  58 #include "oops/instanceMirrorKlass.hpp"

  59 #include "oops/klass.inline.hpp"
  60 #include "oops/objArrayOop.inline.hpp"
  61 #include "oops/oop.inline.hpp"
  62 #include "oops/oopHandle.inline.hpp"
  63 #include "oops/typeArrayKlass.hpp"
  64 #include "prims/resolvedMethodTable.hpp"
  65 #include "runtime/arguments.hpp"
  66 #include "runtime/atomic.hpp"
  67 #include "runtime/flags/jvmFlagLimit.hpp"
  68 #include "runtime/handles.inline.hpp"
  69 #include "runtime/init.hpp"
  70 #include "runtime/java.hpp"
  71 #include "runtime/jniHandles.hpp"
  72 #include "runtime/thread.inline.hpp"
  73 #include "runtime/timerTrace.hpp"
  74 #include "services/memoryService.hpp"
  75 #include "utilities/align.hpp"
  76 #include "utilities/autoRestore.hpp"
  77 #include "utilities/debug.hpp"
  78 #include "utilities/formatBuffer.hpp"

 346       assert(_the_array_interfaces_array->at(0) ==
 347              vmClasses::Cloneable_klass(), "u3");
 348       assert(_the_array_interfaces_array->at(1) ==
 349              vmClasses::Serializable_klass(), "u3");
 350     } else
 351 #endif
 352     {
 353       // Set up shared interfaces array.  (Do this before supers are set up.)
 354       _the_array_interfaces_array->at_put(0, vmClasses::Cloneable_klass());
 355       _the_array_interfaces_array->at_put(1, vmClasses::Serializable_klass());
 356     }
 357 
 358     initialize_basic_type_klass(boolArrayKlassObj(), CHECK);
 359     initialize_basic_type_klass(charArrayKlassObj(), CHECK);
 360     initialize_basic_type_klass(floatArrayKlassObj(), CHECK);
 361     initialize_basic_type_klass(doubleArrayKlassObj(), CHECK);
 362     initialize_basic_type_klass(byteArrayKlassObj(), CHECK);
 363     initialize_basic_type_klass(shortArrayKlassObj(), CHECK);
 364     initialize_basic_type_klass(intArrayKlassObj(), CHECK);
 365     initialize_basic_type_klass(longArrayKlassObj(), CHECK);


 366   } // end of core bootstrapping
 367 
 368   {
 369     Handle tns = java_lang_String::create_from_str("<null_sentinel>", CHECK);
 370     _the_null_sentinel = OopHandle(vm_global(), tns());
 371   }
 372 
 373   // Create a handle for reference_pending_list
 374   _reference_pending_list = OopHandle(vm_global(), NULL);
 375 
 376   // Maybe this could be lifted up now that object array can be initialized
 377   // during the bootstrapping.
 378 
 379   // OLD
 380   // Initialize _objectArrayKlass after core bootstraping to make
 381   // sure the super class is set up properly for _objectArrayKlass.
 382   // ---
 383   // NEW
 384   // Since some of the old system object arrays have been converted to
 385   // ordinary object arrays, _objectArrayKlass will be loaded when

  39 #include "gc/shared/collectedHeap.inline.hpp"
  40 #include "gc/shared/gcArguments.hpp"
  41 #include "gc/shared/gcConfig.hpp"
  42 #include "gc/shared/gcLogPrecious.hpp"
  43 #include "gc/shared/gcTraceTime.inline.hpp"
  44 #include "gc/shared/oopStorageSet.hpp"
  45 #include "gc/shared/stringdedup/stringDedup.hpp"
  46 #include "gc/shared/tlab_globals.hpp"
  47 #include "logging/log.hpp"
  48 #include "logging/logStream.hpp"
  49 #include "memory/metadataFactory.hpp"
  50 #include "memory/metaspaceClosure.hpp"
  51 #include "memory/metaspaceCounters.hpp"
  52 #include "memory/metaspaceUtils.hpp"
  53 #include "memory/oopFactory.hpp"
  54 #include "memory/resourceArea.hpp"
  55 #include "memory/universe.hpp"
  56 #include "oops/compressedOops.hpp"
  57 #include "oops/instanceKlass.hpp"
  58 #include "oops/instanceMirrorKlass.hpp"
  59 #include "oops/instanceStackChunkKlass.hpp"
  60 #include "oops/klass.inline.hpp"
  61 #include "oops/objArrayOop.inline.hpp"
  62 #include "oops/oop.inline.hpp"
  63 #include "oops/oopHandle.inline.hpp"
  64 #include "oops/typeArrayKlass.hpp"
  65 #include "prims/resolvedMethodTable.hpp"
  66 #include "runtime/arguments.hpp"
  67 #include "runtime/atomic.hpp"
  68 #include "runtime/flags/jvmFlagLimit.hpp"
  69 #include "runtime/handles.inline.hpp"
  70 #include "runtime/init.hpp"
  71 #include "runtime/java.hpp"
  72 #include "runtime/jniHandles.hpp"
  73 #include "runtime/thread.inline.hpp"
  74 #include "runtime/timerTrace.hpp"
  75 #include "services/memoryService.hpp"
  76 #include "utilities/align.hpp"
  77 #include "utilities/autoRestore.hpp"
  78 #include "utilities/debug.hpp"
  79 #include "utilities/formatBuffer.hpp"

 347       assert(_the_array_interfaces_array->at(0) ==
 348              vmClasses::Cloneable_klass(), "u3");
 349       assert(_the_array_interfaces_array->at(1) ==
 350              vmClasses::Serializable_klass(), "u3");
 351     } else
 352 #endif
 353     {
 354       // Set up shared interfaces array.  (Do this before supers are set up.)
 355       _the_array_interfaces_array->at_put(0, vmClasses::Cloneable_klass());
 356       _the_array_interfaces_array->at_put(1, vmClasses::Serializable_klass());
 357     }
 358 
 359     initialize_basic_type_klass(boolArrayKlassObj(), CHECK);
 360     initialize_basic_type_klass(charArrayKlassObj(), CHECK);
 361     initialize_basic_type_klass(floatArrayKlassObj(), CHECK);
 362     initialize_basic_type_klass(doubleArrayKlassObj(), CHECK);
 363     initialize_basic_type_klass(byteArrayKlassObj(), CHECK);
 364     initialize_basic_type_klass(shortArrayKlassObj(), CHECK);
 365     initialize_basic_type_klass(intArrayKlassObj(), CHECK);
 366     initialize_basic_type_klass(longArrayKlassObj(), CHECK);
 367 
 368     InstanceStackChunkKlass::init_offset_of_stack();
 369   } // end of core bootstrapping
 370 
 371   {
 372     Handle tns = java_lang_String::create_from_str("<null_sentinel>", CHECK);
 373     _the_null_sentinel = OopHandle(vm_global(), tns());
 374   }
 375 
 376   // Create a handle for reference_pending_list
 377   _reference_pending_list = OopHandle(vm_global(), NULL);
 378 
 379   // Maybe this could be lifted up now that object array can be initialized
 380   // during the bootstrapping.
 381 
 382   // OLD
 383   // Initialize _objectArrayKlass after core bootstraping to make
 384   // sure the super class is set up properly for _objectArrayKlass.
 385   // ---
 386   // NEW
 387   // Since some of the old system object arrays have been converted to
 388   // ordinary object arrays, _objectArrayKlass will be loaded when
< prev index next >