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

Fixing local_new_component #2983

Closed
wants to merge 1 commit into from
Closed

Fixing local_new_component #2983

wants to merge 1 commit into from

Conversation

sithhell
Copy link
Member

@sithhell sithhell commented Nov 3, 2017

This patch fixes problems with local_new such that the allocation of local
components goes through the runtime_support server to facilitate component
factories.

This patch fixes problems with local_new such that the allocation of local
components goes through the runtime_support server to facilitate component
factories.
@sithhell sithhell added this to the 1.1.0 milestone Nov 3, 2017
@hkaiser
Copy link
Member

hkaiser commented Nov 3, 2017

Apparently it all boils down to the fact that local_new circumvents using our factory mechanism for components which can cause for the allocation to happen in a different module than the deallocation. Using the runtime_support object to allocate the component (even for local_new) ensures that the component is created using the factory.

Copy link
Member

@hkaiser hkaiser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@hkaiser
Copy link
Member

hkaiser commented Nov 4, 2017

@sithhell this breaks circleci now.

@sithhell
Copy link
Member Author

sithhell commented Nov 7, 2017

This isn't going to work as proposed ... I am working on a proper fix right now to avoid multiple instances of the heap.

@sithhell sithhell closed this Nov 7, 2017
@hkaiser hkaiser deleted the fix_local_new branch January 15, 2018 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants