diff options
author | Sverker Eriksson <[email protected]> | 2016-06-23 19:30:37 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2016-09-19 15:50:05 +0200 |
commit | abc2f4fdae2d62b5d2843082dbb4437595973b38 (patch) | |
tree | 9381520c75c1e379f18253457221bf52a21425bb /erts/emulator/beam/erl_db_hash.h | |
parent | ff7eb12d002afbffacae5429bd9bb0819aa2d146 (diff) | |
download | otp-abc2f4fdae2d62b5d2843082dbb4437595973b38.tar.gz otp-abc2f4fdae2d62b5d2843082dbb4437595973b38.tar.bz2 otp-abc2f4fdae2d62b5d2843082dbb4437595973b38.zip |
erts: Redesign ets with separate segment tables
* Keep it simple(r)
* To prepare for both dynamic sized segments and segtabs
Diffstat (limited to 'erts/emulator/beam/erl_db_hash.h')
-rw-r--r-- | erts/emulator/beam/erl_db_hash.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/erts/emulator/beam/erl_db_hash.h b/erts/emulator/beam/erl_db_hash.h index 081ff8fafc..2d9b5e308a 100644 --- a/erts/emulator/beam/erl_db_hash.h +++ b/erts/emulator/beam/erl_db_hash.h @@ -51,6 +51,7 @@ typedef struct db_table_hash { DbTableCommon common; erts_smp_atomic_t segtab; /* The segment table (struct segment**) */ + struct segment* first_segtab[1]; erts_smp_atomic_t szm; /* current size mask. */ /* SMP: nslots and nsegs are protected by is_resizing or table write lock */ @@ -64,9 +65,6 @@ typedef struct db_table_hash { erts_smp_atomic_t is_resizing; /* grow/shrink in progress */ DbTableHashFineLocks* locks; #endif -#ifdef VALGRIND - struct ext_segment* top_ptr_to_segment_with_active_segtab; -#endif } DbTableHash; |