configure flag for MONGOC_NO_AUTOMATIC_GLOBALS

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.3.5
    • Affects Version/s: 1.4.0
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      mongoc uses nondeterministic constructors and destructors to automatically init and cleanup mongoc.

      This is contrast to our documented requirement of needing explicit mongoc_init () and mongoc_cleanup ().
      It is also compiler specific, along with being platforms specific.
      It also creates absurd situations when the memory allocator is overloaded.

      A flag was added for this, which defaults to false – but we have no way of configuring this behavior to turn it off, other then explicit via cflags.

      We should add --enable-automatic-globals=[default yes]. Or maybe even default to false since this has been undocumented behavior all along?

            Assignee:
            Hannes Magnusson (Inactive)
            Reporter:
            Hannes Magnusson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: