Declare libbson vtable in MINIT instead of using a global

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Minor - P4
    • 1.10.0-alpha1, 1.10.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      According to Globals Management, GINIT is called once before MINIT (in both threaded and non-threaded models) and additionally once for each thread as it is spawned. Our libbson vtable is currently stored in an extension global (copied per thread) and initialized in GINIT. It would make more sense to declare this as a local variable within MINIT where it is assigned.

            Assignee:
            Jeremy Mikola
            Reporter:
            Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: