Skip to content
Permalink
Browse files
8287437: Temporarily disable Continuations::enabled() for platforms w…
…hich don't have an implementation, yet

Reviewed-by: shade, alanb, rrich
  • Loading branch information
TheRealMDoerr committed May 30, 2022
1 parent eb8d067 commit b1b96746633487901cbc504ccd074cb856ed5327
Showing 1 changed file with 4 additions and 0 deletions.
@@ -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

1 comment on commit b1b9674

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on b1b9674 May 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.