8287437: Temporarily disable Continuations::enabled() for platforms which don't have an implementation, yet

Reviewed-by: shade, alanb, rrich
This commit is contained in:
Martin Doerr 2022-05-30 09:00:50 +00:00
parent eb8d067b56
commit b1b9674663

@ -412,7 +412,11 @@ void Continuations::init() {
// 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() {
#if defined(AMD64) || defined(AARCH64)
return Arguments::enable_preview();
#else
return false;
#endif
}
// We initialize the _gc_epoch to 2, because previous_completed_gc_marking_cycle