8309637: runtime/handshake/HandshakeTimeoutTest.java fails with "has not cleared handshake op" and SIGILL

Reviewed-by: dholmes, coleenp
This commit is contained in:
Patricio Chilano Mateo 2023-07-10 19:09:27 +00:00
parent 63f32fbe97
commit 57e7e82fa1
5 changed files with 34 additions and 34 deletions

View file

@ -110,7 +110,7 @@ class WatcherThread: public NonJavaThread {
private:
static WatcherThread* _watcher_thread;
static bool _startable;
static bool _run_all_tasks;
// volatile due to at least one lock-free read
volatile static bool _should_terminate;
public:
@ -137,9 +137,9 @@ class WatcherThread: public NonJavaThread {
// Create and start the single instance of WatcherThread, or stop it on shutdown
static void start();
static void stop();
// Only allow start once the VM is sufficiently initialized
// Otherwise the first task to enroll will trigger the start
static void make_startable();
// Allow executing registered tasks once the VM is sufficiently
// initialized. Meanwhile only error reporting will be checked.
static void run_all_tasks();
private:
int sleep() const;
};