comparison src/share/vm/gc_implementation/g1/concurrentG1RefineThread.hpp @ 795:215f81b4d9b3

6841831: G1: assert(contains_reference(from),"We just added it!") fires Summary: During parallel rset updating we have to make sure that the worker ids of the refinement threads do not intersect with the worker ids that can be claimed by the mutator threads. Reviewed-by: tonyp
author iveresov
date Mon, 18 May 2009 11:52:46 -0700
parents 315a5d70b295
children bd02caa94611
comparison
equal deleted inserted replaced
794:315a5d70b295 795:215f81b4d9b3
32 friend class G1CollectedHeap; 32 friend class G1CollectedHeap;
33 33
34 double _vtime_start; // Initial virtual time. 34 double _vtime_start; // Initial virtual time.
35 double _vtime_accum; // Initial virtual time. 35 double _vtime_accum; // Initial virtual time.
36 int _worker_id; 36 int _worker_id;
37 int _worker_id_offset;
37 38
38 // The refinement threads collection is linked list. A predecessor can activate a successor 39 // The refinement threads collection is linked list. A predecessor can activate a successor
39 // when the number of the rset update buffer crosses a certain threshold. A successor 40 // when the number of the rset update buffer crosses a certain threshold. A successor
40 // would self-deactivate when the number of the buffers falls below the threshold. 41 // would self-deactivate when the number of the buffers falls below the threshold.
41 bool _active; 42 bool _active;
71 // For use by G1CollectedHeap, which is a friend. 72 // For use by G1CollectedHeap, which is a friend.
72 static SuspendibleThreadSet* sts() { return &_sts; } 73 static SuspendibleThreadSet* sts() { return &_sts; }
73 74
74 public: 75 public:
75 // Constructor 76 // Constructor
76 ConcurrentG1RefineThread(ConcurrentG1Refine* cg1r, ConcurrentG1RefineThread* next, int worker_id); 77 ConcurrentG1RefineThread(ConcurrentG1Refine* cg1r, ConcurrentG1RefineThread* next,
78 int worker_id_offset, int worker_id);
77 79
78 // Printing 80 // Printing
79 void print(); 81 void print();
80 82
81 // Total virtual time so far. 83 // Total virtual time so far.