hotspot/src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.inline.hpp
changeset 7397 5b173b4ca846
parent 5547 f4b087cbb361
child 7419 263dd4e89b9d
equal deleted inserted replaced
7396:518b01b064ff 7397:5b173b4ca846
     1 /*
     1 /*
     2  * Copyright (c) 2001, 2008, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    20  * or visit www.oracle.com if you need additional information or have any
    20  * or visit www.oracle.com if you need additional information or have any
    21  * questions.
    21  * questions.
    22  *
    22  *
    23  */
    23  */
    24 
    24 
       
    25 #ifndef SHARE_VM_GC_IMPLEMENTATION_CONCURRENTMARKSWEEP_CONCURRENTMARKSWEEPGENERATION_INLINE_HPP
       
    26 #define SHARE_VM_GC_IMPLEMENTATION_CONCURRENTMARKSWEEP_CONCURRENTMARKSWEEPGENERATION_INLINE_HPP
       
    27 
       
    28 #include "gc_implementation/concurrentMarkSweep/cmsLockVerifier.hpp"
       
    29 #include "gc_implementation/concurrentMarkSweep/compactibleFreeListSpace.hpp"
       
    30 #include "gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.hpp"
       
    31 #include "gc_implementation/concurrentMarkSweep/concurrentMarkSweepThread.hpp"
       
    32 #include "gc_implementation/shared/gcUtil.hpp"
       
    33 #include "memory/defNewGeneration.hpp"
       
    34 
    25 inline void CMSBitMap::clear_all() {
    35 inline void CMSBitMap::clear_all() {
    26   assert_locked();
    36   assert_locked();
    27   // CMS bitmaps are usually cover large memory regions
    37   // CMS bitmaps are usually cover large memory regions
    28   _bm.clear_large();
    38   _bm.clear_large();
    29   return;
    39   return;
   503   // we should do better than this XXX
   513   // we should do better than this XXX
   504   MemRegion mr2(mr.start(), (HeapWord*)round_to((intptr_t)mr.end(),
   514   MemRegion mr2(mr.start(), (HeapWord*)round_to((intptr_t)mr.end(),
   505                  CardTableModRefBS::card_size /* bytes */));
   515                  CardTableModRefBS::card_size /* bytes */));
   506   _t->par_mark_range(mr2);
   516   _t->par_mark_range(mr2);
   507 }
   517 }
       
   518 
       
   519 #endif // SHARE_VM_GC_IMPLEMENTATION_CONCURRENTMARKSWEEP_CONCURRENTMARKSWEEPGENERATION_INLINE_HPP