Coder Social home page Coder Social logo

Comments (2)

osrf-migration avatar osrf-migration commented on May 29, 2024

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.

osrf-migration avatar osrf-migration commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.