Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions CacheInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -380,11 +380,13 @@ void EntryTypeGravityNode::unpackSingle(CkCacheFillMsg<KeyType> *msg, Tree::Bina

*(CkCacheFillMsg<KeyType> **) (((char*)node)-PAD_reply) = msg;

// Overwrite virtual pointer table. Something like this will be
// needed for heterogeneous architectures. Commented out for now
// since it breaks on the PGI compiler.
// Restore the virtual function table pointer: the nodes arrive as raw
// bytes from another process, and where processes map the executable
// at different addresses (position-independent executables under
// address-space randomization, e.g. macOS) the sender's pointer is not
// valid here. Harmless where the addresses agree.

// memcpy(node, &vptr, sizeof(void*));
memcpy(node, &vptr, sizeof(void*));

if (!isRoot) CmiReference(UsrToEnv(msg));
for (int i=0; i < 2; ++i) {
Expand Down
Loading