Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1160

configure flag for MONGOC_NO_AUTOMATIC_GLOBALS

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.3.5
    • Affects Version/s: 1.4.0
    • Component/s: 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:
            bjori Hannes Magnusson
            Reporter:
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: