File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
src/hotspot/share/runtime Expand file tree Collapse file tree 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 {
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; }
You can’t perform that action at this time.
0 commit comments