projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Annotate some static locals as "library-local"
[folly.git]
/
folly
/
test
/
FBStringTestBenchmarks.cpp.h
diff --git
a/folly/test/FBStringTestBenchmarks.cpp.h
b/folly/test/FBStringTestBenchmarks.cpp.h
index 632f7bd61fddde143f34b240e949a88f5bb48219..f353001eea4a79ec0eec825cd0da46b09829b25b 100644
(file)
--- a/
folly/test/FBStringTestBenchmarks.cpp.h
+++ b/
folly/test/FBStringTestBenchmarks.cpp.h
@@
-60,7
+60,7
@@
void BENCHFUN(ctorFromArray)(size_t iters, size_t arg) {
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);
}