From 98bd5f66a03b945916baa2a91c4aba3c837676d1 Mon Sep 17 00:00:00 2001 From: Sverker Eriksson Date: Mon, 4 Sep 2017 20:53:00 +0200 Subject: erts: Fix faulty ASSERT of table fixation counter Cannot read fix->counter safely without table lock. --- erts/emulator/beam/erl_db_util.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'erts/emulator/beam/erl_db_util.h') diff --git a/erts/emulator/beam/erl_db_util.h b/erts/emulator/beam/erl_db_util.h index 19055c6110..7ce104a84c 100644 --- a/erts/emulator/beam/erl_db_util.h +++ b/erts/emulator/beam/erl_db_util.h @@ -220,6 +220,9 @@ typedef struct db_fixation { Process* p; } procs; + /* Number of fixations on table from procs.p + * Protected by table write lock or read lock + fixlock + */ Uint counter; } DbFixation; -- cgit v1.2.3