equal
deleted
inserted
replaced
23 |
23 |
24 #include "precompiled.hpp" |
24 #include "precompiled.hpp" |
25 #include "gc/z/zAddress.inline.hpp" |
25 #include "gc/z/zAddress.inline.hpp" |
26 #include "gc/z/zForwarding.inline.hpp" |
26 #include "gc/z/zForwarding.inline.hpp" |
27 #include "gc/z/zForwardingTable.inline.hpp" |
27 #include "gc/z/zForwardingTable.inline.hpp" |
|
28 #include "gc/z/zGlobals.hpp" |
28 #include "gc/z/zGranuleMap.inline.hpp" |
29 #include "gc/z/zGranuleMap.inline.hpp" |
29 #include "utilities/debug.hpp" |
30 #include "utilities/debug.hpp" |
30 |
31 |
31 ZForwardingTable::ZForwardingTable() : |
32 ZForwardingTable::ZForwardingTable() : |
32 _map() {} |
33 _map(ZAddressOffsetMax) {} |
33 |
34 |
34 void ZForwardingTable::insert(ZForwarding* forwarding) { |
35 void ZForwardingTable::insert(ZForwarding* forwarding) { |
35 const uintptr_t addr = ZAddress::good(forwarding->start()); |
36 const uintptr_t addr = ZAddress::good(forwarding->start()); |
36 const size_t size = forwarding->size(); |
37 const size_t size = forwarding->size(); |
37 |
38 |