< prev index next >

src/hotspot/share/memory/universe.cpp

Print this page

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

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


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

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

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