mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8140257: Add support for "gc service threads" to ConcurrentGCThread
Push up the common run() and stop() methods from subclasses to ConcurrentGCThread, as well as declaration iof run_service() stop_service(). Reviewed-by: kbarrett, pliden
This commit is contained in:
parent
8c894a92ef
commit
f6810526ab
15 changed files with 111 additions and 223 deletions
|
@ -38,13 +38,8 @@ class ConcurrentMarkThread: public ConcurrentGCThread {
|
|||
|
||||
double _vtime_start; // Initial virtual time.
|
||||
double _vtime_accum; // Accumulated virtual time.
|
||||
|
||||
double _vtime_mark_accum;
|
||||
|
||||
public:
|
||||
virtual void run();
|
||||
|
||||
private:
|
||||
G1ConcurrentMark* _cm;
|
||||
|
||||
enum State {
|
||||
|
@ -93,9 +88,6 @@ class ConcurrentMarkThread: public ConcurrentGCThread {
|
|||
// as the CM thread might take some time to wake up before noticing
|
||||
// that started() is set and set in_progress().
|
||||
bool during_cycle() { return !idle(); }
|
||||
|
||||
// shutdown
|
||||
void stop();
|
||||
};
|
||||
|
||||
#endif // SHARE_VM_GC_G1_CONCURRENTMARKTHREAD_HPP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue