< prev index next >

src/hotspot/share/gc/g1/g1ConcurrentMark.inline.hpp

Print this page




  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_G1CONCURRENTMARK_INLINE_HPP
  26 #define SHARE_VM_GC_G1_G1CONCURRENTMARK_INLINE_HPP
  27 
  28 #include "gc/g1/g1CollectedHeap.inline.hpp"
  29 #include "gc/g1/g1ConcurrentMark.hpp"
  30 #include "gc/g1/g1ConcurrentMarkBitMap.inline.hpp"
  31 #include "gc/g1/g1ConcurrentMarkObjArrayProcessor.inline.hpp"

  32 #include "gc/g1/g1Policy.hpp"
  33 #include "gc/g1/g1RegionMarkStatsCache.inline.hpp"
  34 #include "gc/g1/g1RemSetTrackingPolicy.hpp"
  35 #include "gc/g1/heapRegionRemSet.hpp"
  36 #include "gc/g1/heapRegion.hpp"
  37 #include "gc/shared/suspendibleThreadSet.hpp"
  38 #include "gc/shared/taskqueue.inline.hpp"
  39 #include "utilities/bitMap.inline.hpp"
  40 
  41 inline bool G1CMIsAliveClosure::do_object_b(oop obj) {
  42   return !_g1h->is_obj_ill(obj);
  43 }
  44 
  45 inline bool G1CMSubjectToDiscoveryClosure::do_object_b(oop obj) {
  46   // Re-check whether the passed object is null. With ReferentBasedDiscovery the
  47   // mutator may have changed the referent's value (i.e. cleared it) between the
  48   // time the referent was determined to be potentially alive and calling this
  49   // method.
  50   if (obj == NULL) {
  51     return false;




  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_G1CONCURRENTMARK_INLINE_HPP
  26 #define SHARE_VM_GC_G1_G1CONCURRENTMARK_INLINE_HPP
  27 
  28 #include "gc/g1/g1CollectedHeap.inline.hpp"
  29 #include "gc/g1/g1ConcurrentMark.hpp"
  30 #include "gc/g1/g1ConcurrentMarkBitMap.inline.hpp"
  31 #include "gc/g1/g1ConcurrentMarkObjArrayProcessor.inline.hpp"
  32 #include "gc/g1/g1OopClosures.inline.hpp"
  33 #include "gc/g1/g1Policy.hpp"
  34 #include "gc/g1/g1RegionMarkStatsCache.inline.hpp"
  35 #include "gc/g1/g1RemSetTrackingPolicy.hpp"
  36 #include "gc/g1/heapRegionRemSet.hpp"
  37 #include "gc/g1/heapRegion.hpp"
  38 #include "gc/shared/suspendibleThreadSet.hpp"
  39 #include "gc/shared/taskqueue.inline.hpp"
  40 #include "utilities/bitMap.inline.hpp"
  41 
  42 inline bool G1CMIsAliveClosure::do_object_b(oop obj) {
  43   return !_g1h->is_obj_ill(obj);
  44 }
  45 
  46 inline bool G1CMSubjectToDiscoveryClosure::do_object_b(oop obj) {
  47   // Re-check whether the passed object is null. With ReferentBasedDiscovery the
  48   // mutator may have changed the referent's value (i.e. cleared it) between the
  49   // time the referent was determined to be potentially alive and calling this
  50   // method.
  51   if (obj == NULL) {
  52     return false;


< prev index next >