X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Frcutorture.h;h=5ba3d2b0e85312318a3e849a1d98c6050faedbf4;hp=c5253d9cfead570db75313d237cd28b12b42e704;hb=4967f00583bf6700651649ef08cd6d4afe6c3b29;hpb=d9ce338dd3af50d73744b484d957875e77d4557a diff --git a/tests/rcutorture.h b/tests/rcutorture.h index c5253d9..5ba3d2b 100644 --- a/tests/rcutorture.h +++ b/tests/rcutorture.h @@ -79,7 +79,8 @@ char argsbuf[64]; #define GOFLAG_RUN 1 #define GOFLAG_STOP 2 -int goflag __attribute__((__aligned__(CAA_CACHE_LINE_SIZE))) = GOFLAG_INIT; +volatile int goflag __attribute__((__aligned__(CAA_CACHE_LINE_SIZE))) + = GOFLAG_INIT; #define RCU_READ_RUN 1000