< prev index next >

src/share/vm/gc/g1/concurrentMark.hpp

Print this page




  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_VM_GC_G1_CONCURRENTMARK_HPP
  26 #define SHARE_VM_GC_G1_CONCURRENTMARK_HPP
  27 
  28 #include "classfile/javaClasses.hpp"
  29 #include "gc/g1/g1RegionToSpaceMapper.hpp"
  30 #include "gc/g1/heapRegionSet.hpp"
  31 #include "gc/shared/gcId.hpp"
  32 #include "gc/shared/taskqueue.hpp"
  33 
  34 class G1CollectedHeap;
  35 class CMBitMap;
  36 class CMTask;
  37 class ConcurrentMark;
  38 typedef GenericTaskQueue<oop, mtGC>            CMTaskQueue;
  39 typedef GenericTaskQueueSet<CMTaskQueue, mtGC> CMTaskQueueSet;
  40 
  41 // Closure used by CM during concurrent reference discovery
  42 // and reference processing (during remarking) to determine
  43 // if a particular object is alive. It is primarily used
  44 // to determine if referents of discovered reference objects
  45 // are alive. An instance is also embedded into the
  46 // reference processor as the _is_alive_non_header field
  47 class G1CMIsAliveClosure: public BoolObjectClosure {
  48   G1CollectedHeap* _g1;
  49  public:
  50   G1CMIsAliveClosure(G1CollectedHeap* g1) : _g1(g1) { }
  51 




  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_VM_GC_G1_CONCURRENTMARK_HPP
  26 #define SHARE_VM_GC_G1_CONCURRENTMARK_HPP
  27 
  28 #include "classfile/javaClasses.hpp"
  29 #include "gc/g1/g1RegionToSpaceMapper.hpp"
  30 #include "gc/g1/heapRegionSet.hpp"

  31 #include "gc/shared/taskqueue.hpp"
  32 
  33 class G1CollectedHeap;
  34 class CMBitMap;
  35 class CMTask;
  36 class ConcurrentMark;
  37 typedef GenericTaskQueue<oop, mtGC>            CMTaskQueue;
  38 typedef GenericTaskQueueSet<CMTaskQueue, mtGC> CMTaskQueueSet;
  39 
  40 // Closure used by CM during concurrent reference discovery
  41 // and reference processing (during remarking) to determine
  42 // if a particular object is alive. It is primarily used
  43 // to determine if referents of discovered reference objects
  44 // are alive. An instance is also embedded into the
  45 // reference processor as the _is_alive_non_header field
  46 class G1CMIsAliveClosure: public BoolObjectClosure {
  47   G1CollectedHeap* _g1;
  48  public:
  49   G1CMIsAliveClosure(G1CollectedHeap* g1) : _g1(g1) { }
  50 


< prev index next >