< prev index next >

src/hotspot/share/aot/aotLoader.cpp

Print this page




  85       (*heap)->metadata_do(f);
  86     }
  87   }
  88 }
  89 
  90 void AOTLoader::mark_evol_dependent_methods(InstanceKlass* dependee) {
  91   if (UseAOT) {
  92     FOR_ALL_AOT_HEAPS(heap) {
  93       (*heap)->mark_evol_dependent_methods(dependee);
  94     }
  95   }
  96 }
  97 
  98 /**
  99  * List of core modules for which we search for shared libraries.
 100  */
 101 static const char* modules[] = {
 102   "java.base",
 103   "java.logging",
 104   "jdk.compiler",
 105   "jdk.scripting.nashorn",
 106   "jdk.internal.vm.ci",
 107   "jdk.internal.vm.compiler"
 108 };
 109 
 110 void AOTLoader::initialize() {
 111   TraceTime timer("AOT initialization", TRACETIME_LOG(Info, aot, startuptime));
 112 
 113   if (FLAG_IS_DEFAULT(UseAOT) && AOTLibrary != NULL) {
 114     // Don't need to set UseAOT on command line when AOTLibrary is specified
 115     FLAG_SET_DEFAULT(UseAOT, true);
 116   }
 117   if (UseAOT) {
 118     // EagerInitialization is not compatible with AOT
 119     if (EagerInitialization) {
 120       if (PrintAOT) {
 121         warning("EagerInitialization is not compatible with AOT (switching AOT off)");
 122       }
 123       FLAG_SET_DEFAULT(UseAOT, false);
 124       return;
 125     }




  85       (*heap)->metadata_do(f);
  86     }
  87   }
  88 }
  89 
  90 void AOTLoader::mark_evol_dependent_methods(InstanceKlass* dependee) {
  91   if (UseAOT) {
  92     FOR_ALL_AOT_HEAPS(heap) {
  93       (*heap)->mark_evol_dependent_methods(dependee);
  94     }
  95   }
  96 }
  97 
  98 /**
  99  * List of core modules for which we search for shared libraries.
 100  */
 101 static const char* modules[] = {
 102   "java.base",
 103   "java.logging",
 104   "jdk.compiler",

 105   "jdk.internal.vm.ci",
 106   "jdk.internal.vm.compiler"
 107 };
 108 
 109 void AOTLoader::initialize() {
 110   TraceTime timer("AOT initialization", TRACETIME_LOG(Info, aot, startuptime));
 111 
 112   if (FLAG_IS_DEFAULT(UseAOT) && AOTLibrary != NULL) {
 113     // Don't need to set UseAOT on command line when AOTLibrary is specified
 114     FLAG_SET_DEFAULT(UseAOT, true);
 115   }
 116   if (UseAOT) {
 117     // EagerInitialization is not compatible with AOT
 118     if (EagerInitialization) {
 119       if (PrintAOT) {
 120         warning("EagerInitialization is not compatible with AOT (switching AOT off)");
 121       }
 122       FLAG_SET_DEFAULT(UseAOT, false);
 123       return;
 124     }


< prev index next >