31 #include "gc_implementation/g1/heapRegionRemSet.hpp" |
31 #include "gc_implementation/g1/heapRegionRemSet.hpp" |
32 #include "gc_implementation/g1/heapRegionSeq.inline.hpp" |
32 #include "gc_implementation/g1/heapRegionSeq.inline.hpp" |
33 #include "memory/genOopClosures.inline.hpp" |
33 #include "memory/genOopClosures.inline.hpp" |
34 #include "memory/iterator.hpp" |
34 #include "memory/iterator.hpp" |
35 #include "oops/oop.inline.hpp" |
35 #include "oops/oop.inline.hpp" |
|
36 |
|
37 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC |
36 |
38 |
37 int HeapRegion::LogOfHRGrainBytes = 0; |
39 int HeapRegion::LogOfHRGrainBytes = 0; |
38 int HeapRegion::LogOfHRGrainWords = 0; |
40 int HeapRegion::LogOfHRGrainWords = 0; |
39 size_t HeapRegion::GrainBytes = 0; |
41 size_t HeapRegion::GrainBytes = 0; |
40 size_t HeapRegion::GrainWords = 0; |
42 size_t HeapRegion::GrainWords = 0; |
827 if (!_g1h->is_in_closed_subset(obj) || _g1h->is_obj_dead_cond(obj, _vo)) { |
829 if (!_g1h->is_in_closed_subset(obj) || _g1h->is_obj_dead_cond(obj, _vo)) { |
828 MutexLockerEx x(ParGCRareEvent_lock, |
830 MutexLockerEx x(ParGCRareEvent_lock, |
829 Mutex::_no_safepoint_check_flag); |
831 Mutex::_no_safepoint_check_flag); |
830 |
832 |
831 if (!_failures) { |
833 if (!_failures) { |
832 gclog_or_tty->print_cr(""); |
834 gclog_or_tty->cr(); |
833 gclog_or_tty->print_cr("----------"); |
835 gclog_or_tty->print_cr("----------"); |
834 } |
836 } |
835 if (!_g1h->is_in_closed_subset(obj)) { |
837 if (!_g1h->is_in_closed_subset(obj)) { |
836 HeapRegion* from = _g1h->heap_region_containing((HeapWord*)p); |
838 HeapRegion* from = _g1h->heap_region_containing((HeapWord*)p); |
837 gclog_or_tty->print_cr("Field "PTR_FORMAT |
839 gclog_or_tty->print_cr("Field "PTR_FORMAT |
882 if (is_bad) { |
884 if (is_bad) { |
883 MutexLockerEx x(ParGCRareEvent_lock, |
885 MutexLockerEx x(ParGCRareEvent_lock, |
884 Mutex::_no_safepoint_check_flag); |
886 Mutex::_no_safepoint_check_flag); |
885 |
887 |
886 if (!_failures) { |
888 if (!_failures) { |
887 gclog_or_tty->print_cr(""); |
889 gclog_or_tty->cr(); |
888 gclog_or_tty->print_cr("----------"); |
890 gclog_or_tty->print_cr("----------"); |
889 } |
891 } |
890 gclog_or_tty->print_cr("Missing rem set entry:"); |
892 gclog_or_tty->print_cr("Missing rem set entry:"); |
891 gclog_or_tty->print_cr("Field "PTR_FORMAT" " |
893 gclog_or_tty->print_cr("Field "PTR_FORMAT" " |
892 "of obj "PTR_FORMAT", " |
894 "of obj "PTR_FORMAT", " |