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

Register the thread calling pony_init #1712

Merged
merged 1 commit into from
Mar 17, 2017
Merged

Conversation

Praetonus
Copy link
Member

Previously, the thread initialising the runtime would use the runtime context of one of the scheduler threads. Now that the pony_unregister_thread function exists and is freeing the runtime context of the schedulers when the runtime exits, the initialising thread must have its own context.

This should fix the segfault encountered by #1629.

Previously, the thread initialising the runtime would use the runtime
context of one of the scheduler threads. Now that the
pony_unregister_thread function exists and is freeing the runtime
context of the schedulers when the runtime exits, the initialising
thread must have its own context.
@jemc jemc merged commit e203264 into ponylang:master Mar 17, 2017
@Praetonus Praetonus deleted the init-register branch March 17, 2017 21:05
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

Successfully merging this pull request may close these issues.

2 participants