8279189: Inaccurate comment about class VMThread

Reviewed-by: dholmes, kbarrett
This commit is contained in:
Xin Liu 2021-12-24 00:57:03 +00:00
parent 9d99a377bf
commit 22c15ddae5

@ -53,8 +53,7 @@ public:
};
//
// A single VMThread (the primordial thread) spawns all other threads
// and is itself used by other threads to offload heavy vm operations
// A single VMThread is used by other threads to offload heavy vm operations
// like scavenge, garbage_collect etc.
//
@ -78,7 +77,6 @@ class VMThread: public NamedThread {
void inner_execute(VM_Operation* op);
void wait_for_operation();
public:
// Constructor
VMThread();
@ -87,14 +85,15 @@ class VMThread: public NamedThread {
guarantee(false, "VMThread deletion must fix the race with VM termination");
}
// The ever running loop for the VMThread
void loop();
public:
bool is_running() const { return Atomic::load(&_is_running); }
// Tester
bool is_VM_thread() const { return true; }
// The ever running loop for the VMThread
void loop();
// Called to stop the VM thread
static void wait_for_vm_thread_exit();
static bool should_terminate() { return _should_terminate; }