Commit 22c15dd Xin Liu
committed Dec 24, 2021
1 parent 9d99a37 commit 22c15dd Copy full SHA for 22c15dd
File tree 1 file changed +5
-6
lines changed
src/hotspot/share/runtime
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -53,8 +53,7 @@ class VMOperationTimeoutTask : public PeriodicTask {
53
53
};
54
54
55
55
//
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
58
57
// like scavenge, garbage_collect etc.
59
58
//
60
59
@@ -78,7 +77,6 @@ class VMThread: public NamedThread {
78
77
void inner_execute (VM_Operation* op);
79
78
void wait_for_operation ();
80
79
81
- public:
82
80
// Constructor
83
81
VMThread ();
84
82
@@ -87,14 +85,15 @@ class VMThread: public NamedThread {
87
85
guarantee (false , " VMThread deletion must fix the race with VM termination" );
88
86
}
89
87
88
+ // The ever running loop for the VMThread
89
+ void loop ();
90
+
91
+ public:
90
92
bool is_running () const { return Atomic::load (&_is_running); }
91
93
92
94
// Tester
93
95
bool is_VM_thread () const { return true ; }
94
96
95
- // The ever running loop for the VMThread
96
- void loop ();
97
-
98
97
// Called to stop the VM thread
99
98
static void wait_for_vm_thread_exit ();
100
99
static bool should_terminate () { return _should_terminate; }
You can’t perform that action at this time.
0 commit comments