aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/hash.h
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2015-12-10 19:50:00 +0100
committerSverker Eriksson <[email protected]>2015-12-10 19:50:00 +0100
commit3f03004fcc7daedecf1fb7f936695bca513fa825 (patch)
tree19b7f1f8fc09de508bd4dc4f0ffee4ef83b2909b /erts/emulator/beam/hash.h
parentb249e54412fe1be63549b1cb9eee5d632df0fd64 (diff)
parent2afa7580910050b9b087a188215f27553cc0aba3 (diff)
downloadotp-3f03004fcc7daedecf1fb7f936695bca513fa825.tar.gz
otp-3f03004fcc7daedecf1fb7f936695bca513fa825.tar.bz2
otp-3f03004fcc7daedecf1fb7f936695bca513fa825.zip
Merge branch 'sverk/hash-thresholds'
* sverk/hash-thresholds: erts: Remove unused include files from hash.c erts: Redesign grow/shrink thresholds of hash.c erts: Remove dead code erts_hash_merge
Diffstat (limited to 'erts/emulator/beam/hash.h')
-rw-r--r--erts/emulator/beam/hash.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/erts/emulator/beam/hash.h b/erts/emulator/beam/hash.h
index 87fdb360e3..dc7e9c10c5 100644
--- a/erts/emulator/beam/hash.h
+++ b/erts/emulator/beam/hash.h
@@ -72,10 +72,11 @@ typedef struct hash
ErtsAlcType_t type;
char* name; /* Table name (static string, for debugging) */
int size; /* Number of slots */
- int size20percent; /* 20 percent of number of slots */
- int size80percent; /* 80 percent of number of slots */
- int ix; /* Size index in size table */
- int used; /* Number of slots used */
+ int shrink_threshold;
+ int grow_threshold;
+ int size_ix; /* Size index in size table */
+ int min_size_ix; /* Never shrink table smaller than this */
+ int nobjs; /* Number of objects in table */
HashBucket** bucket; /* Vector of bucket pointers (objects) */
} Hash;
@@ -93,6 +94,4 @@ void* hash_erase(Hash*, void*);
void* hash_remove(Hash*, void*);
void hash_foreach(Hash*, void (*func)(void *, void *), void *);
-void erts_hash_merge(Hash* src, Hash* dst);
-
#endif