Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to distribute foreign pointers makes the emulator abort with an error message #143

Open
sjmackenzie opened this issue Apr 29, 2011 · 1 comment

Comments

@sjmackenzie
Copy link
Member

In platform/emulator/libdp/glue_mediators.cc, function glue_getMediator:

The type Co_Foreign_Pointer is not handled.
I believe it would be better to create an "unuable mediator" for foreign pointers and throw an exception on
the remote site if the fp is actually used.

Of course, it does not make much sense to distribute foreign pointers. But it can easily happen if some code (i.e. applied
functors) is distributed. And as long as the fp is not used, it does not do any harm.

@sjmackenzie
Copy link
Member Author

Date: 2009-05-21 14:01
Sender: Raphael Collet

Patched the trunk (rev 17220).
Date: 2009-05-21 09:56
Sender: Raphael Collet

This is perfectly correct, foreign pointers are simply not
handled by distribution. As you wrote, they should be
distributed as "unusables", i.e., those values may be
distributed but are only functional on their home site.
A fix should be available soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant