From 469aa8b9b3b719a9fd13bfe750751ccd878cb206 Mon Sep 17 00:00:00 2001 From: Robert Morris Date: Thu, 15 Sep 2016 12:01:52 -0400 Subject: [PATCH] xx --- spinlock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spinlock.c b/spinlock.c index 7b372ef..2f0e873 100644 --- a/spinlock.c +++ b/spinlock.c @@ -56,7 +56,7 @@ release(struct spinlock *lk) // past this point, to ensure that all the stores in the critical // section are visible to other cores before the lock is released. // Both the C compiler and the hardware may re-order loads and - // stores; __sync_synchronize() tells them both to not re-order. + // stores; __sync_synchronize() tells them both not to. __sync_synchronize(); // Release the lock, equivalent to lk->locked = 0.