Skip to content

Commit e7cda26

Browse files
committed
Fix classification of some microkernels
1 parent 9cb7634 commit e7cda26

3 files changed

Lines changed: 10 additions & 7 deletions

File tree

File renamed without changes.

micro-benchmarks/DRB142-acquirerelease-orig-yes.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* variable.
1616
*
1717
* Implicit flush must be used after critical construct, after line:34 and before line:35 to avoid data race.
18-
* Data Race pair: x@34:9:W vs. x@34:9:W
18+
* Data Race pair: x@34:9:W vs. x@43:11:R
1919
* */
2020

2121

@@ -39,9 +39,8 @@ int main(){
3939
while (tmp == 0) {
4040
#pragma omp atomic read acquire
4141
tmp = y;
42-
}
43-
#pragma omp critical
44-
{ if (x!=10) printf("x = %d\n", x); }
42+
}
43+
if (x!=10) printf("x = %d\n", x);
4544
}
4645
}
4746
return 0;

micro-benchmarks/DRB189-barrier3-yes.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@
1111
* This is a program based on a dataset contributed by
1212
* Wenhao Wu and Stephen F. Siegel @Univ. of Delaware.
1313
14-
* one synchronization commented out.
15-
* enters. So race on x can occur.
16-
* Data race pair: x@104:9:W vs. x@111:9:W
14+
* As soon as one thread releases all locks, the other thread can perform multiple
15+
* barrier_wait() cycles ending up concurrent execution of different epochs.
16+
* Data race pair: x@108:9:W vs. x@115:9:W
17+
x@108:9:W vs. x@103:58:R
18+
x@108:9:W vs. x@110:58:R
19+
x@101:58:R vs. x@115:9:W
20+
x@110:58:R vs. x@115:9:W
1721
*/
1822

1923
#include <stdio.h>

0 commit comments

Comments
 (0)