aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_db_hash.h
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2011-10-05 16:21:42 +0200
committerSverker Eriksson <[email protected]>2011-10-06 12:00:10 +0200
commitf3d4ed5a10fea88b596ffa52f7b5b1f835f54fba (patch)
treedb37774480e10e118f3f74f1c28c118503bd4dc1 /erts/emulator/beam/erl_db_hash.h
parentd01551f400e2a7944dcc10319be0c9f248ca3179 (diff)
downloadotp-f3d4ed5a10fea88b596ffa52f7b5b1f835f54fba.tar.gz
otp-f3d4ed5a10fea88b596ffa52f7b5b1f835f54fba.tar.bz2
otp-f3d4ed5a10fea88b596ffa52f7b5b1f835f54fba.zip
ETS: Fix valgrind PossiblyLost in ETS hash tables
Add an extra pointer to start of segment with the active segment table to get rid of PossiblyLost errors without the need of a too general suppression that may hide real memory leaks in ETS.
Diffstat (limited to 'erts/emulator/beam/erl_db_hash.h')
-rw-r--r--erts/emulator/beam/erl_db_hash.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_db_hash.h b/erts/emulator/beam/erl_db_hash.h
index e0285fa5ed..23ac493118 100644
--- a/erts/emulator/beam/erl_db_hash.h
+++ b/erts/emulator/beam/erl_db_hash.h
@@ -58,6 +58,9 @@ typedef struct db_table_hash {
#ifdef ERTS_SMP
DbTableHashFineLocks* locks;
#endif
+#ifdef VALGRIND
+ struct ext_segment* top_ptr_to_segment_with_active_segtab;
+#endif
} DbTableHash;