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
Fix a bunch of data races.
[mono-project.git]
/
mono
/
benchmark
/
cmov1.cs
blob
d0c0d007e77b4997430291db95b59c818a80479e
1
using
System
;
2
class
T
{
3
static void
Main
() {
4
int
y
=
0
;
5
int
z
=
1
;
6
for
(
int
i
=
0
;
i
<
500000000
;
i
++) {
7
if
(
y
==
0
)
8
z
=
i
;
9
10
if
(
y
==
4
)
11
y
=
i
;
12
13
if
(
z
==
0
)
14
y
=
1
;
15
16
if
(
y
==
1
)
17
z
=
i
;
18
19
if
(
y
==
1
)
20
y
=
i
;
21
22
if
(
z
==
2
)
23
y
=
z
;
24
else
25
y
=
i
;
26
}
27
}
28
29
}