< prev index next >

src/hotspot/share/gc/g1/g1FullCollector.hpp

Print this page




  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_GC_G1_G1FULLCOLLECTOR_HPP
  26 #define SHARE_GC_G1_G1FULLCOLLECTOR_HPP
  27 
  28 #include "gc/g1/g1FullGCCompactionPoint.hpp"
  29 #include "gc/g1/g1FullGCMarker.hpp"

  30 #include "gc/shared/preservedMarks.hpp"
  31 #include "gc/shared/referenceProcessor.hpp"
  32 #include "gc/shared/taskqueue.hpp"
  33 #include "memory/allocation.hpp"
  34 
  35 class AbstractGangTask;
  36 class G1CMBitMap;
  37 class G1FullGCMarker;
  38 class G1FullGCScope;
  39 class G1FullGCCompactionPoint;
  40 class ReferenceProcessor;
  41 
  42 // The G1FullCollector holds data associated with the current Full GC.
  43 class G1FullCollector : StackObj {
  44   G1FullGCScope*            _scope;
  45   uint                      _num_workers;
  46   G1FullGCMarker**          _markers;
  47   G1FullGCCompactionPoint** _compaction_points;
  48   G1CMBitMap*               _mark_bitmap;
  49   OopQueueSet               _oop_queue_set;
  50   ObjArrayTaskQueueSet      _array_queue_set;
  51   PreservedMarksSet         _preserved_marks_set;
  52   ReferenceProcessor*       _reference_processor;
  53   G1FullGCCompactionPoint   _serial_compaction_point;
  54 

  55   ReferenceProcessorIsAliveMutator _is_alive_mutator;
  56 
  57 public:
  58   G1FullCollector(G1FullGCScope* scope,
  59                   ReferenceProcessor* reference_processor,
  60                   G1CMBitMap* mark_bitmap,
  61                   uint workers);
  62   ~G1FullCollector();
  63 
  64   void prepare_collection();
  65   void collect();
  66   void complete_collection();
  67 
  68   G1FullGCScope*           scope() { return _scope; }
  69   uint                     workers() { return _num_workers; }
  70   G1FullGCMarker*          marker(uint id) { return _markers[id]; }
  71   G1FullGCCompactionPoint* compaction_point(uint id) { return _compaction_points[id]; }
  72   G1CMBitMap*              mark_bitmap() { return _mark_bitmap; }
  73   OopQueueSet*             oop_queue_set() { return &_oop_queue_set; }
  74   ObjArrayTaskQueueSet*    array_queue_set() { return &_array_queue_set; }




  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_GC_G1_G1FULLCOLLECTOR_HPP
  26 #define SHARE_GC_G1_G1FULLCOLLECTOR_HPP
  27 
  28 #include "gc/g1/g1FullGCCompactionPoint.hpp"
  29 #include "gc/g1/g1FullGCMarker.hpp"
  30 #include "gc/g1/g1FullGCOopClosures.hpp"
  31 #include "gc/shared/preservedMarks.hpp"
  32 #include "gc/shared/referenceProcessor.hpp"
  33 #include "gc/shared/taskqueue.hpp"
  34 #include "memory/allocation.hpp"
  35 
  36 class AbstractGangTask;
  37 class G1CMBitMap;
  38 class G1FullGCMarker;
  39 class G1FullGCScope;
  40 class G1FullGCCompactionPoint;
  41 class ReferenceProcessor;
  42 
  43 // The G1FullCollector holds data associated with the current Full GC.
  44 class G1FullCollector : StackObj {
  45   G1FullGCScope*            _scope;
  46   uint                      _num_workers;
  47   G1FullGCMarker**          _markers;
  48   G1FullGCCompactionPoint** _compaction_points;
  49   G1CMBitMap*               _mark_bitmap;
  50   OopQueueSet               _oop_queue_set;
  51   ObjArrayTaskQueueSet      _array_queue_set;
  52   PreservedMarksSet         _preserved_marks_set;
  53   ReferenceProcessor*       _reference_processor;
  54   G1FullGCCompactionPoint   _serial_compaction_point;
  55 
  56   G1IsAliveClosure          _is_alive;
  57   ReferenceProcessorIsAliveMutator _is_alive_mutator;
  58 
  59 public:
  60   G1FullCollector(G1FullGCScope* scope,
  61                   ReferenceProcessor* reference_processor,
  62                   G1CMBitMap* mark_bitmap,
  63                   uint workers);
  64   ~G1FullCollector();
  65 
  66   void prepare_collection();
  67   void collect();
  68   void complete_collection();
  69 
  70   G1FullGCScope*           scope() { return _scope; }
  71   uint                     workers() { return _num_workers; }
  72   G1FullGCMarker*          marker(uint id) { return _markers[id]; }
  73   G1FullGCCompactionPoint* compaction_point(uint id) { return _compaction_points[id]; }
  74   G1CMBitMap*              mark_bitmap() { return _mark_bitmap; }
  75   OopQueueSet*             oop_queue_set() { return &_oop_queue_set; }
  76   ObjArrayTaskQueueSet*    array_queue_set() { return &_array_queue_set; }


< prev index next >