hotspot/src/share/vm/memory/universe.cpp
changeset 33964 6d5466bf96ae
parent 31592 43f48e165466
parent 33962 a96fba52fc81
child 33967 c500568a6ecf
equal deleted inserted replaced
31770:f246795523ea 33964:6d5466bf96ae
   348   // ---
   348   // ---
   349   // New
   349   // New
   350   // Have already been initialized.
   350   // Have already been initialized.
   351   _objectArrayKlassObj->append_to_sibling_list();
   351   _objectArrayKlassObj->append_to_sibling_list();
   352 
   352 
   353   // Compute is_jdk version flags.
       
   354   // Only 1.3 or later has the java.lang.Shutdown class.
       
   355   // Only 1.4 or later has the java.lang.CharSequence interface.
       
   356   // Only 1.5 or later has the java.lang.management.MemoryUsage class.
       
   357   if (JDK_Version::is_partially_initialized()) {
       
   358     uint8_t jdk_version;
       
   359     Klass* k = SystemDictionary::resolve_or_null(
       
   360         vmSymbols::java_lang_management_MemoryUsage(), THREAD);
       
   361     CLEAR_PENDING_EXCEPTION; // ignore exceptions
       
   362     if (k == NULL) {
       
   363       k = SystemDictionary::resolve_or_null(
       
   364           vmSymbols::java_lang_CharSequence(), THREAD);
       
   365       CLEAR_PENDING_EXCEPTION; // ignore exceptions
       
   366       if (k == NULL) {
       
   367         k = SystemDictionary::resolve_or_null(
       
   368             vmSymbols::java_lang_Shutdown(), THREAD);
       
   369         CLEAR_PENDING_EXCEPTION; // ignore exceptions
       
   370         if (k == NULL) {
       
   371           jdk_version = 2;
       
   372         } else {
       
   373           jdk_version = 3;
       
   374         }
       
   375       } else {
       
   376         jdk_version = 4;
       
   377       }
       
   378     } else {
       
   379       jdk_version = 5;
       
   380     }
       
   381     JDK_Version::fully_initialize(jdk_version);
       
   382   }
       
   383 
       
   384   #ifdef ASSERT
   353   #ifdef ASSERT
   385   if (FullGCALot) {
   354   if (FullGCALot) {
   386     // Allocate an array of dummy objects.
   355     // Allocate an array of dummy objects.
   387     // We'd like these to be at the bottom of the old generation,
   356     // We'd like these to be at the bottom of the old generation,
   388     // so that when we free one and then collect,
   357     // so that when we free one and then collect,