summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
621adb9)
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) {
BENCHMARK_PARAM(BENCHFUN(ctorFromArray), 32768);
void BENCHFUN(ctorFromTwoPointers)(size_t iters, size_t arg) {
+ /* library-local */ static STRING s;
BENCHMARK_SUSPEND {
if (s.size() < arg) s.resize(arg);
}
BENCHMARK_SUSPEND {
if (s.size() < arg) s.resize(arg);
}