diff options
author | Sverker Eriksson <[email protected]> | 2011-10-05 16:21:42 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2011-10-06 12:00:10 +0200 |
commit | f3d4ed5a10fea88b596ffa52f7b5b1f835f54fba (patch) | |
tree | db37774480e10e118f3f74f1c28c118503bd4dc1 /erts/emulator/beam/erl_db_hash.h | |
parent | d01551f400e2a7944dcc10319be0c9f248ca3179 (diff) | |
download | otp-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.h | 3 |
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; |