< prev index next >

src/hotspot/share/runtime/continuation.cpp

Print this page
*** 420,11 ***
  }
  
  // While virtual threads are in Preview, there are some VM mechanisms we disable if continuations aren't used
  // See NMethodSweeper::do_stack_scanning and nmethod::is_not_on_continuation_stack
  bool Continuations::enabled() {
!   return VMContinuations && Arguments::enable_preview();
  }
  
  // We initialize the _gc_epoch to 2, because previous_completed_gc_marking_cycle
  // subtracts the value by 2, and the type is unsigned. We don't want underflow.
  //
--- 420,12 ---
  }
  
  // While virtual threads are in Preview, there are some VM mechanisms we disable if continuations aren't used
  // See NMethodSweeper::do_stack_scanning and nmethod::is_not_on_continuation_stack
  bool Continuations::enabled() {
!   // return VMContinuations && Arguments::enable_preview();
+   return VMContinuations;
  }
  
  // We initialize the _gc_epoch to 2, because previous_completed_gc_marking_cycle
  // subtracts the value by 2, and the type is unsigned. We don't want underflow.
  //
< prev index next >