Summary:
This tags certain static locals, wich may get duplicated via dynamic
linking and inlining, as safe to have multiple copies at runtime,
making this subtle behavior explicit.
Reviewed By: igorsugak
Differential Revision:
D4082929
fbshipit-source-id:
ba4e23cb121e957a43f5659a1ca3432cb89cb8f3
BENCHMARK_PARAM(BENCHFUN(ctorFromArray), 32768);
void BENCHFUN(ctorFromTwoPointers)(size_t iters, size_t arg) {
- static STRING s;
+ /* library-local */ static STRING s;
BENCHMARK_SUSPEND {
if (s.size() < arg) s.resize(arg);
}