Skip to content

Expose on-demand library load/unload in class loader constructor. #235

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

Closed

Conversation

remod
Copy link

@remod remod commented Mar 1, 2022

Currently, on-demand library loading/unloading is hard-coded to false. This leads to the fact that libraries are unloaded on destruction of the ClassLoader instance, which can throw exceptions (see #234).

In my use case I'd like to unload the libraries on-demand, so I do not have to deal with exceptions when the destructor of the ClassLoader instance is called.

This PR exposes the setting in the ClassLoader constructor. The default value is false for backwards compatibility.

@remod
Copy link
Author

remod commented Mar 7, 2022

@nuclearsandwich kind ping

@sloretz
Copy link
Contributor

sloretz commented Apr 23, 2025

Thank you for the PR!

Unfortunately I don't think we should merge this one. It changes ABI, and ABI breaks cannot be accepted into released ROS distros.

ROS Noetic will reach end-of-life on May 31st, 2025.

@sloretz sloretz closed this Apr 23, 2025
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