repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* TextControl.cs: Make this operation undoable.
[mono-project.git]
/
mono
/
tests
/
gc-stress.cs
blob
780397e0ad44578c604a4fc5eb03c2ddb50b3c04
1
using
System
;
2
3
class
T
{
4
5
static int
count
=
1000000
;
6
static int
loops
=
20
;
7
static object
obj
;
8
static object
obj2
;
9
10
static void
work
() {
11
for
(
int
i
=
0
;
i
<
count
; ++
i
) {
12
obj
=
new object
();
13
obj2
=
i
;
14
}
15
}
16
static void
Main
(
string
[]
args
) {
17
if
(
args
.
Length
>
0
)
18
loops
=
int
.
Parse
(
args
[
0
]);
19
if
(
args
.
Length
>
1
)
20
count
=
int
.
Parse
(
args
[
1
]);
21
for
(
int
i
=
0
;
i
<
loops
; ++
i
) {
22
work
();
23
}
24
}
25
}
26