aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_db.c
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2013-03-27 18:44:08 +0100
committerRickard Green <[email protected]>2013-04-03 17:09:36 +0200
commit8d70fd874ae4da853ac79f4349fbf4a985950656 (patch)
treebf7c2a0ec719e681c85c299fa759621b61e677fe /erts/emulator/beam/erl_db.c
parent05f11890bdfec4bfc3a78e191a87e70a937ffc54 (diff)
downloadotp-8d70fd874ae4da853ac79f4349fbf4a985950656.tar.gz
otp-8d70fd874ae4da853ac79f4349fbf4a985950656.tar.bz2
otp-8d70fd874ae4da853ac79f4349fbf4a985950656.zip
Be less eager requesting wakeup for cleanup jobs
Diffstat (limited to 'erts/emulator/beam/erl_db.c')
-rw-r--r--erts/emulator/beam/erl_db.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/erts/emulator/beam/erl_db.c b/erts/emulator/beam/erl_db.c
index d0afc8ed8d..98c2988323 100644
--- a/erts/emulator/beam/erl_db.c
+++ b/erts/emulator/beam/erl_db.c
@@ -264,9 +264,10 @@ static void schedule_free_dbtable(DbTable* tb)
* function has returned).
*/
ASSERT(erts_refc_read(&tb->common.ref, 0) == 0);
- erts_schedule_thr_prgr_later_op(free_dbtable,
- (void *) tb,
- &tb->release.data);
+ erts_schedule_thr_prgr_later_cleanup_op(free_dbtable,
+ (void *) tb,
+ &tb->release.data,
+ sizeof(DbTable));
}
static ERTS_INLINE void db_init_lock(DbTable* tb, int use_frequent_read_lock,