< prev index next >

src/hotspot/share/runtime/init.cpp

Print this page
*** 39,10 ***
--- 39,11 ---
  #include "prims/jvmtiExport.hpp"
  #include "prims/methodHandles.hpp"
  #include "prims/universalNativeInvoker.hpp"
  #include "runtime/globals.hpp"
  #include "runtime/atomic.hpp"
+ #include "runtime/continuation.hpp"
  #include "runtime/flags/jvmFlag.hpp"
  #include "runtime/handles.inline.hpp"
  #include "runtime/icache.hpp"
  #include "runtime/init.hpp"
  #include "runtime/safepoint.hpp"

*** 65,10 ***
--- 66,11 ---
  void classLoader_init1();
  void compilationPolicy_init();
  void codeCache_init();
  void VM_Version_init();
  void stubRoutines_init1();
+ void stubRoutines_initContinuationStubs();
  jint universe_init();          // depends on codeCache_init and stubRoutines_init
  // depends on universe_init, must be before interpreter_init (currently only on SPARC)
  void gc_barrier_stubs_init();
  void interpreter_init_stub();  // before any methods loaded
  void interpreter_init_code();  // after methods loaded, but before they are linked

*** 89,10 ***
--- 91,12 ---
  // Initialization after compiler initialization
  bool universe_post_init();  // must happen after compiler_init
  void javaClasses_init();  // must happen after vtable initialization
  void stubRoutines_init2(); // note: StubRoutines need 2-phase init
  
+ void continuations_init(); // depends on flags (UseCompressedOops, LoomGenCode) and barrier sets
+ 
  // Do not disable thread-local-storage, as it is important for some
  // JNI/JVM/JVMTI functions and signal handlers to work properly
  // during VM shutdown
  void perfMemory_exit();
  void ostream_exit();

*** 122,10 ***
--- 126,11 ---
    if (status != JNI_OK)
      return status;
  
    AsyncLogWriter::initialize();
    gc_barrier_stubs_init();  // depends on universe_init, must be before interpreter_init
+   stubRoutines_initContinuationStubs();
    interpreter_init_stub();  // before methods get loaded
    accessFlags_init();
    InterfaceSupport_init();
    VMRegImpl::set_regName(); // need this before generate_stubs (for printing oop maps).
    SharedRuntime::generate_stubs();

*** 157,16 ***
--- 162,19 ---
      return JNI_ERR;
    }
    stubRoutines_init2(); // note: StubRoutines need 2-phase init
    MethodHandles::generate_adapters();
  
+   continuations_init();
+ 
    // All the flags that get adjusted by VM_Version_init and os::init_2
    // have been set so dump the flags now.
    if (PrintFlagsFinal || PrintFlagsRanges) {
      JVMFlag::printFlags(tty, false, PrintFlagsRanges);
    }
  
+ 
    return JNI_OK;
  }
  
  
  void exit_globals() {
< prev index next >