equal
deleted
inserted
replaced
86 inline bool requires_marking(const void* entry, G1CollectedHeap* heap) { |
86 inline bool requires_marking(const void* entry, G1CollectedHeap* heap) { |
87 // Includes rejection of NULL pointers. |
87 // Includes rejection of NULL pointers. |
88 assert(heap->is_in_reserved(entry), |
88 assert(heap->is_in_reserved(entry), |
89 "Non-heap pointer in SATB buffer: " PTR_FORMAT, p2i(entry)); |
89 "Non-heap pointer in SATB buffer: " PTR_FORMAT, p2i(entry)); |
90 |
90 |
91 HeapRegion* region = heap->heap_region_containing_raw(entry); |
91 HeapRegion* region = heap->heap_region_containing(entry); |
92 assert(region != NULL, "No region for " PTR_FORMAT, p2i(entry)); |
92 assert(region != NULL, "No region for " PTR_FORMAT, p2i(entry)); |
93 if (entry >= region->next_top_at_mark_start()) { |
93 if (entry >= region->next_top_at_mark_start()) { |
94 return false; |
94 return false; |
95 } |
95 } |
96 |
96 |