< prev index next >

src/hotspot/share/runtime/continuation.cpp

Print this page
*** 425,11 ***
    Continuation::init();
  }
  
  // While virtual threads are in Preview, there are some VM mechanisms we disable if continuations aren't used
  bool Continuations::enabled() {
!   return VMContinuations && Arguments::enable_preview();
  }
  
  #define CC (char*)  /*cast a literal from (const char*)*/
  #define FN_PTR(f) CAST_FROM_FN_PTR(void*, &f)
  
--- 425,12 ---
    Continuation::init();
  }
  
  // While virtual threads are in Preview, there are some VM mechanisms we disable if continuations aren't used
  bool Continuations::enabled() {
!   // return VMContinuations && Arguments::enable_preview();
+   return VMContinuations;
  }
  
  #define CC (char*)  /*cast a literal from (const char*)*/
  #define FN_PTR(f) CAST_FROM_FN_PTR(void*, &f)
  
< prev index next >