Skip to content

Commit

Permalink
Fix classification of some microkernels
Browse files Browse the repository at this point in the history
  • Loading branch information
jprotze committed Sep 19, 2023
1 parent 9cb7634 commit bcaadd0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 3 additions & 4 deletions micro-benchmarks/DRB142-acquirerelease-orig-yes.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* variable.
*
* Implicit flush must be used after critical construct, after line:34 and before line:35 to avoid data race.
* Data Race pair: x@34:9:W vs. x@34:9:W
* Data Race pair: x@34:9:W vs. x@43:11:R
* */


Expand All @@ -39,9 +39,8 @@ int main(){
while (tmp == 0) {
#pragma omp atomic read acquire
tmp = y;
}
#pragma omp critical
{ if (x!=10) printf("x = %d\n", x); }
}
if (x!=10) printf("x = %d\n", x);
}
}
return 0;
Expand Down
6 changes: 5 additions & 1 deletion micro-benchmarks/DRB189-barrier3-yes.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
* one synchronization commented out.
* enters. So race on x can occur.
* Data race pair: x@104:9:W vs. x@111:9:W
* Data race pair: x@106:9:W vs. x@113:9:W
x@106:9:W vs. x@101:58:R
x@106:9:W vs. x@108:58:R
x@101:58:R vs. x@113:9:W
x@108:58:R vs. x@113:9:W
*/

#include <stdio.h>
Expand Down

0 comments on commit bcaadd0

Please sign in to comment.