X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/301989b17111d6a39df60385a4c2e73fcff8cd86..31f8d2188a6cfd24c58c7503728bc1317be2f073:/src/mc/ChunkedData.cpp diff --git a/src/mc/ChunkedData.cpp b/src/mc/ChunkedData.cpp index 8a5d3349f9..4e8499e453 100644 --- a/src/mc/ChunkedData.cpp +++ b/src/mc/ChunkedData.cpp @@ -9,7 +9,7 @@ #include -#include +#include // xbt_pagesize and friends #include #include "src/mc/AddressSpace.hpp" @@ -28,7 +28,7 @@ namespace mc { * @return Snapshot page numbers of this new snapshot */ ChunkedData::ChunkedData(PageStore& store, AddressSpace& as, - remote_ptr addr, std::size_t page_count, + RemotePtr addr, std::size_t page_count, const std::size_t* ref_page_numbers, const std::uint64_t* pagemap) { store_ = &store; @@ -44,8 +44,9 @@ ChunkedData::ChunkedData(PageStore& store, AddressSpace& as, continue; } - remote_ptr page = remote(addr.address() + (i << xbt_pagebits)); - xbt_assert(mc_page_offset((void*)page.address())==0, + RemotePtr page = remote((void*) + simgrid::mc::mmu::join(i, addr.address())); + xbt_assert(simgrid::mc::mmu::split(page.address()).second == 0, "Not at the beginning of a page"); /* Adding another copy (and a syscall) will probably slow things a lot.