188 |
188 |
189 static address safepoint_counter_addr() { return (address)&_safepoint_counter; } |
189 static address safepoint_counter_addr() { return (address)&_safepoint_counter; } |
190 }; |
190 }; |
191 |
191 |
192 // State class for a thread suspended at a safepoint |
192 // State class for a thread suspended at a safepoint |
193 class ThreadSafepointState: public CHeapObj<mtInternal> { |
193 class ThreadSafepointState: public CHeapObj<mtThread> { |
194 public: |
194 public: |
195 // These states are maintained by VM thread while threads are being brought |
195 // These states are maintained by VM thread while threads are being brought |
196 // to a safepoint. After SafepointSynchronize::end(), they are reset to |
196 // to a safepoint. After SafepointSynchronize::end(), they are reset to |
197 // _running. |
197 // _running. |
198 enum suspend_type { |
198 enum suspend_type { |