Skip to content

Commit

Permalink
Fix global allocator initialization order in test helper (bloomberg#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-e1off committed Oct 24, 2024
1 parent c5f3839 commit 1c69c3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/groups/mwc/mwctst/mwctst_testhelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -607,8 +607,8 @@
/* Global Allocator */ \
/* NOTE: The global allocator has a static storage duration to outlive */ \
/* all static objects using that allocator. */ \
INIT_METRICS_REGISTRY() \
static bslma::TestAllocator _gblAlloc("global", (s_verbosityLevel >= 4)); \
INIT_METRICS_REGISTRY() \
bslma::Default::setGlobalAllocator(&_gblAlloc);

#ifdef BSLS_PLATFORM_CMP_CLANG
Expand Down

0 comments on commit 1c69c3f

Please sign in to comment.