equal
deleted
inserted
replaced
29 #include "gc/g1/heapRegionManager.hpp" |
29 #include "gc/g1/heapRegionManager.hpp" |
30 #include "gc/g1/heapRegionSet.inline.hpp" |
30 #include "gc/g1/heapRegionSet.inline.hpp" |
31 |
31 |
32 inline HeapRegion* HeapRegionManager::addr_to_region(HeapWord* addr) const { |
32 inline HeapRegion* HeapRegionManager::addr_to_region(HeapWord* addr) const { |
33 assert(addr < heap_end(), |
33 assert(addr < heap_end(), |
34 err_msg("addr: " PTR_FORMAT " end: " PTR_FORMAT, p2i(addr), p2i(heap_end()))); |
34 "addr: " PTR_FORMAT " end: " PTR_FORMAT, p2i(addr), p2i(heap_end())); |
35 assert(addr >= heap_bottom(), |
35 assert(addr >= heap_bottom(), |
36 err_msg("addr: " PTR_FORMAT " bottom: " PTR_FORMAT, p2i(addr), p2i(heap_bottom()))); |
36 "addr: " PTR_FORMAT " bottom: " PTR_FORMAT, p2i(addr), p2i(heap_bottom())); |
37 |
37 |
38 HeapRegion* hr = _regions.get_by_address(addr); |
38 HeapRegion* hr = _regions.get_by_address(addr); |
39 return hr; |
39 return hr; |
40 } |
40 } |
41 |
41 |