Comments (2)
Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).
comment by @clalancette migrated from https://osrf-migration.github.io/ignition-gh-pages/#!/ignitionrobotics/ign-common/issues/34/rtld_lazy-vs-rtld_now-in-pluginloader (gazebosim/gz-common#34)#comment-44753481
My main concern with RTLD_LAZY
vs. RTLD_NOW
isn't really with performance, but more with debugging. As I see it, the big problem with RTLD_LAZY
is that you don't find out if you can't resolve a symbol until you actually try to call that symbol. That means that the program may be successfully running for a while, and then when some new functionality gets invoked the program crashes because it can't resolve the symbol. If we did RTLD_NOW
, then the symbol resolution would fail at program startup time and it is an easy thing for a developer to see, understand, debug, and fix.
With that said, I'd be in favor of just switching ignition to RTLD_NOW
and leaving it at that. If we want to make it configurable, I'm fine with that too, but would prefer RTLD_NOW
to be the default.
from gz-plugin.
Original comment by Michael Grey (Bitbucket: mxgrey, GitHub: mxgrey).
Failing early by default makes sense.
I would recommend a flag for the LoadLib(~)
function, since I think whoever is loading the library would have the best sense of how it should be loaded. But being able to set the Loader's default in addition to that would be reasonable.
from gz-plugin.
Related Issues (12)
- Create first release HOT 3
- `gz_TEST` not running on Windows CI
- Should provide GZ_ADD_PLUGIN as an alias to IGNITION_ADD_PLUGIN and friends
- Feature request: ign tool support for introspecting plugin libraries HOT 1
- LoadLibrary is a system function on Windows HOT 3
- Plugin loader could offer the option to load all known plugins HOT 1
- Provide Name accessor for Plugin class HOT 1
- Configuring incomplete, errors occurred! HOT 1
- Add standalone executable for ign-plugin-info command HOT 2
- INTEGRATION_WeakPluginPtr test fails HOT 1
- missing license file HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gz-plugin.