Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
llvm-epi-0.8
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Roger Ferrer
llvm-epi-0.8
Commits
db7d9e5d
Commit
db7d9e5d
authored
11 years ago
by
Dmitry Vyukov
Browse files
Options
Downloads
Patches
Plain Diff
tsan: comment out debug output in test
llvm-svn: 180787
parent
6d370943
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compiler-rt/lib/tsan/lit_tests/unaligned_race.cc
+3
-5
3 additions, 5 deletions
compiler-rt/lib/tsan/lit_tests/unaligned_race.cc
with
3 additions
and
5 deletions
compiler-rt/lib/tsan/lit_tests/unaligned_race.cc
+
3
−
5
View file @
db7d9e5d
...
...
@@ -107,8 +107,8 @@ void Test(bool main) {
for
(
int
sz1
=
0
;
sz1
<
3
;
sz1
++
)
{
for
(
int
off2
=
0
;
off2
<
accesssize
(
sz1
);
off2
++
)
{
for
(
int
rw
=
0
;
rw
<
2
;
rw
++
)
{
printf
(
"thr=%d off=%d sz1=%d off2=%d rw=%d p=%p
\n
"
,
main
,
off
,
sz1
,
off2
,
rw
,
obj
);
//
printf("thr=%d off=%d sz1=%d off2=%d rw=%d p=%p\n",
//
main, off, sz1, off2, rw, obj);
access1
(
main
,
off
,
sz1
,
off2
,
rw
,
(
char
*
)
obj
);
obj
+=
2
;
}
...
...
@@ -129,9 +129,7 @@ int main() {
pthread_create
(
&
th
,
0
,
Thread
,
0
);
Test
(
true
);
pthread_join
(
th
,
0
);
printf
(
"OK
\n
"
);
}
// WARNING: ThreadSanitizer: data race
//
CHECK:
WARNING: ThreadSanitizer: data race
// CHECK: ThreadSanitizer: reported 224 warnings
// CHECK: OK
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment