-
Notifications
You must be signed in to change notification settings - Fork 497
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
how drop rayon whren it in a dylib and dylib should be droped? #1101
Comments
What target are you running on? (e.g. |
rustup default:stable-x86_64-unknown-linux-gnu (default) |
OK, so with all I'm not sure, but it might work if you guarantee all rayon threads have completely exited before you try to unload. You can't do that at all with the global pool, and an explicit But even with all that, it's possible that some code might have registered TLS destructors in non-rayon threads too, and I have no idea what could be done about that. |
Here's a prototype of that: master...cuviper:rayon:join-scoped |
load dylib in fedora using
libloading
, but after calling the function in dylib when there's some rayon work, dylib is not drop correctly.When I removed all the rayon code,
libloading
drop dylib works fine.What should I do?
lsof | grep 'MyLibName'
always got 8(4c8t) instancesThe text was updated successfully, but these errors were encountered: