Skip to content

Commit 74b167b

Browse files
author
Alan Bateman
committed
8301819: Enable continuations code by default
Reviewed-by: kvn, dholmes, dcubed
1 parent 919a6da commit 74b167b

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/hotspot/share/runtime/continuation.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -26,7 +26,6 @@
2626
#include "classfile/vmSymbols.hpp"
2727
#include "gc/shared/barrierSetNMethod.hpp"
2828
#include "oops/method.inline.hpp"
29-
#include "runtime/arguments.hpp"
3029
#include "runtime/continuation.hpp"
3130
#include "runtime/continuationEntry.inline.hpp"
3231
#include "runtime/continuationHelper.inline.hpp"
@@ -411,9 +410,8 @@ void Continuations::init() {
411410
Continuation::init();
412411
}
413412

414-
// While virtual threads are in Preview, there are some VM mechanisms we disable if continuations aren't used
415413
bool Continuations::enabled() {
416-
return VMContinuations && Arguments::enable_preview();
414+
return VMContinuations;
417415
}
418416

419417
#define CC (char*) /*cast a literal from (const char*)*/

src/hotspot/share/runtime/continuation.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -39,7 +39,7 @@ class RegisterMap;
3939
class Continuations : public AllStatic {
4040
public:
4141
static void init();
42-
static bool enabled(); // TODO: used while virtual threads are in Preview; remove when GA
42+
static bool enabled();
4343
};
4444

4545
void continuations_init();

0 commit comments

Comments
 (0)