projects
/
platform
/
upstream
/
libgc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
108aaf5
)
Fix local variable declarations in disclaim_bench
author
Ivan Maidanski
<ivmai@mail.ru>
Wed, 19 Oct 2016 08:09:33 +0000
(11:09 +0300)
committer
Ivan Maidanski
<ivmai@mail.ru>
Wed, 19 Oct 2016 08:09:33 +0000
(11:09 +0300)
* tests/disclaim_bench.c (main): Place (move) tI, tF local variable
declarations (in the block) before any statement.
tests/disclaim_bench.c
patch
|
blob
|
history
diff --git
a/tests/disclaim_bench.c
b/tests/disclaim_bench.c
index
bf9048f
..
18c6e60
100644
(file)
--- a/
tests/disclaim_bench.c
+++ b/
tests/disclaim_bench.c
@@
-119,12
+119,12
@@
int main(int argc, char **argv)
printf("\t\t\tfin. ratio time/s time/fin.\n");
for (model = model_min; model <= model_max; ++model) {
double t = 0.0;
- free_count = 0;
-
# ifdef CLOCK_TYPE
CLOCK_TYPE tI, tF;
+
GET_TIME(tI);
# endif
+ free_count = 0;
for (i = 0; i < ALLOC_CNT; ++i) {
int k = rand() % KEEP_CNT;
keep_arr[k] = testobj_new(model);