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

Support to make a proc shareable #3700

Closed
wants to merge 2 commits into from
Closed

Support to make a proc shareable #3700

wants to merge 2 commits into from

Conversation

ko1
Copy link
Contributor

@ko1 ko1 commented Oct 25, 2020

This PR has two commits:

  • Manage isolated proc more strictly.
  • Support Ractor.make_shareable(a_proc).

[Feature #17284]

Isolated Proc prohibit to access outer local variables, but it was
violated by binding and so on, so they should be error.
Shareable Proc objects are needed for several reasons, and
Ractor.make_shareable(a_proc) creates a shareable Proc, which is
more flexible than isolated Proc because it allows to read outer
local variables. However, the proc can only see the snapshot of
the snapshot which contains the values which are captured at the
timing of Ractor.make_shareable(a_proc). All read-able objects
are made sharable (~= deep frozen).

[Feature #17284]
@ko1 ko1 force-pushed the proc_shareable branch 2 times, most recently from a473f3d to 626a01e Compare October 25, 2020 23:32
@ko1 ko1 closed this Oct 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant