Skip to content

Commit 22c15dd

Browse files
author
Xin Liu
committedDec 24, 2021
8279189: Inaccurate comment about class VMThread
Reviewed-by: dholmes, kbarrett
1 parent 9d99a37 commit 22c15dd

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed
 

‎src/hotspot/share/runtime/vmThread.hpp

+5-6
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ class VMOperationTimeoutTask : public PeriodicTask {
5353
};
5454

5555
//
56-
// A single VMThread (the primordial thread) spawns all other threads
57-
// and is itself used by other threads to offload heavy vm operations
56+
// A single VMThread is used by other threads to offload heavy vm operations
5857
// like scavenge, garbage_collect etc.
5958
//
6059

@@ -78,7 +77,6 @@ class VMThread: public NamedThread {
7877
void inner_execute(VM_Operation* op);
7978
void wait_for_operation();
8079

81-
public:
8280
// Constructor
8381
VMThread();
8482

@@ -87,14 +85,15 @@ class VMThread: public NamedThread {
8785
guarantee(false, "VMThread deletion must fix the race with VM termination");
8886
}
8987

88+
// The ever running loop for the VMThread
89+
void loop();
90+
91+
public:
9092
bool is_running() const { return Atomic::load(&_is_running); }
9193

9294
// Tester
9395
bool is_VM_thread() const { return true; }
9496

95-
// The ever running loop for the VMThread
96-
void loop();
97-
9897
// Called to stop the VM thread
9998
static void wait_for_vm_thread_exit();
10099
static bool should_terminate() { return _should_terminate; }

0 commit comments

Comments
 (0)
Please sign in to comment.