-
Type: Improvement
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: 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.