src/share/vm/aot/aotLoader.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File hotspot Sdiff src/share/vm/aot

src/share/vm/aot/aotLoader.cpp

Print this page




  96   return aotm->exception_begin();
  97 }
  98 
  99 // Flushing and deoptimization in case of evolution
 100 void AOTLoader::flush_evol_dependents_on(instanceKlassHandle dependee) {
 101   // make non entrant and mark for deoptimization
 102   FOR_ALL_AOT_HEAPS(heap) {
 103     (*heap)->flush_evol_dependents_on(dependee);
 104   }
 105   Deoptimization::deoptimize_dependents();
 106 }
 107 
 108 /**
 109  * List of core modules for which we search for shared libraries.
 110  */
 111 static const char* modules[] = {
 112   "java.base",
 113   "java.logging",
 114   "jdk.compiler",
 115   "jdk.scripting.nashorn",
 116   "jdk.vm.ci",
 117   "jdk.vm.compiler"
 118 };
 119 
 120 void AOTLoader::initialize() {
 121   if (FLAG_IS_DEFAULT(UseAOT) && AOTLibrary != NULL) {
 122     // Don't need to set UseAOT on command line when AOTLibrary is specified
 123     FLAG_SET_DEFAULT(UseAOT, true);
 124   }
 125   if (UseAOT) {
 126     // EagerInitialization is not compatible with AOT
 127     if (EagerInitialization) {
 128       if (PrintAOT) {
 129         warning("EagerInitialization is not compatible with AOT (switching AOT off)");
 130       }
 131       FLAG_SET_DEFAULT(UseAOT, false);
 132       return;
 133     }
 134 
 135     // -Xint is not compatible with AOT
 136     if (Arguments::is_interpreter_only()) {
 137       if (PrintAOT) {




  96   return aotm->exception_begin();
  97 }
  98 
  99 // Flushing and deoptimization in case of evolution
 100 void AOTLoader::flush_evol_dependents_on(instanceKlassHandle dependee) {
 101   // make non entrant and mark for deoptimization
 102   FOR_ALL_AOT_HEAPS(heap) {
 103     (*heap)->flush_evol_dependents_on(dependee);
 104   }
 105   Deoptimization::deoptimize_dependents();
 106 }
 107 
 108 /**
 109  * List of core modules for which we search for shared libraries.
 110  */
 111 static const char* modules[] = {
 112   "java.base",
 113   "java.logging",
 114   "jdk.compiler",
 115   "jdk.scripting.nashorn",
 116   "jdk.internal.vm.ci",
 117   "jdk.internal.vm.compiler"
 118 };
 119 
 120 void AOTLoader::initialize() {
 121   if (FLAG_IS_DEFAULT(UseAOT) && AOTLibrary != NULL) {
 122     // Don't need to set UseAOT on command line when AOTLibrary is specified
 123     FLAG_SET_DEFAULT(UseAOT, true);
 124   }
 125   if (UseAOT) {
 126     // EagerInitialization is not compatible with AOT
 127     if (EagerInitialization) {
 128       if (PrintAOT) {
 129         warning("EagerInitialization is not compatible with AOT (switching AOT off)");
 130       }
 131       FLAG_SET_DEFAULT(UseAOT, false);
 132       return;
 133     }
 134 
 135     // -Xint is not compatible with AOT
 136     if (Arguments::is_interpreter_only()) {
 137       if (PrintAOT) {


src/share/vm/aot/aotLoader.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File