equal
deleted
inserted
replaced
22 */ |
22 */ |
23 |
23 |
24 #ifndef SHARE_GC_Z_ZFORWARDINGTABLE_INLINE_HPP |
24 #ifndef SHARE_GC_Z_ZFORWARDINGTABLE_INLINE_HPP |
25 #define SHARE_GC_Z_ZFORWARDINGTABLE_INLINE_HPP |
25 #define SHARE_GC_Z_ZFORWARDINGTABLE_INLINE_HPP |
26 |
26 |
|
27 #include "gc/z/zAddress.inline.hpp" |
27 #include "gc/z/zForwardingTable.hpp" |
28 #include "gc/z/zForwardingTable.hpp" |
28 #include "gc/z/zGranuleMap.inline.hpp" |
29 #include "gc/z/zGranuleMap.inline.hpp" |
29 |
30 |
30 inline ZForwarding* ZForwardingTable::get(uintptr_t addr) const { |
31 inline ZForwarding* ZForwardingTable::get(uintptr_t addr) const { |
31 return _map.get(addr); |
32 assert(!ZAddress::is_null(addr), "Invalid address"); |
|
33 return _map.get(ZAddress::offset(addr)); |
32 } |
34 } |
33 |
35 |
34 #endif // SHARE_GC_Z_ZFORWARDINGTABLE_INLINE_HPP |
36 #endif // SHARE_GC_Z_ZFORWARDINGTABLE_INLINE_HPP |