aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2011-05-10 20:25:53 +0200
committerRickard Green <[email protected]>2011-05-13 14:23:10 +0200
commit673f5d1bf684f15ac5526d8a21552eca9a0c9052 (patch)
treedb05a7890116ee98280170db4100d0ac65d2ff60 /erts
parent434cab885e50dd72f3c4f87f30d9ee21085cc657 (diff)
downloadotp-673f5d1bf684f15ac5526d8a21552eca9a0c9052.tar.gz
otp-673f5d1bf684f15ac5526d8a21552eca9a0c9052.tar.bz2
otp-673f5d1bf684f15ac5526d8a21552eca9a0c9052.zip
Ensure that all rehashing information are seen when done
This is not a bugfix. The change is done in order to avoid a future bug.
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/beam/safe_hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/safe_hash.c b/erts/emulator/beam/safe_hash.c
index 21d6ce9304..3e9243c77d 100644
--- a/erts/emulator/beam/safe_hash.c
+++ b/erts/emulator/beam/safe_hash.c
@@ -99,7 +99,7 @@ static void rehash(SafeHash* h, int grow_limit)
erts_free(h->type, (void *) old_tab);
}
/*else already done */
- erts_smp_atomic_set(&h->is_rehashing, 0);
+ erts_smp_atomic_set_relb(&h->is_rehashing, 0);
}