summaryrefslogtreecommitdiff
path: root/src/htscoremain.c
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2014-05-04 14:00:30 +0000
committerXavier Roche <xroche@users.noreply.github.com>2014-05-04 14:00:30 +0000
commit213359b3db44106fd5abbb84e4702fa5fe208e56 (patch)
tree94d2907f92bd56628a4000db832d6b48d9eddeed /src/htscoremain.c
parent3b1bf0b8afd5d5b5b7686bd0c6f7f3697f4e5dc2 (diff)
More hashtable stress
Diffstat (limited to 'src/htscoremain.c')
-rw-r--r--src/htscoremain.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/htscoremain.c b/src/htscoremain.c
index 1fd1b83..d52c02a 100644
--- a/src/htscoremain.c
+++ b/src/htscoremain.c
@@ -2526,7 +2526,11 @@ HTSEXT_API int hts_main2(int argc, char **argv, httrackp * opt) {
FMT();
if (bench[loop].type == DO_ADD
|| bench[loop].type == DO_DRY_ADD) {
+ size_t k;
result = inthash_write(hashtable, name, (uintptr_t) expected);
+ for(k = 0 ; k < /* stash_size*2 */ 32 ; k++) {
+ (void) inthash_write(hashtable, name, (uintptr_t) expected);
+ }
/* revert logic */
if (bench[loop].type == DO_DRY_ADD) {
result = result ? 0 : 1;
@@ -2534,7 +2538,11 @@ HTSEXT_API int hts_main2(int argc, char **argv, httrackp * opt) {
}
else if (bench[loop].type == DO_DEL
|| bench[loop].type == DO_DRY_DEL) {
+ size_t k;
result = inthash_remove(hashtable, name);
+ for(k = 0 ; k < /* stash_size*2 */ 32 ; k++) {
+ (void) inthash_remove(hashtable, name);
+ }
/* revert logic */
if (bench[loop].type == DO_DRY_DEL) {
result = result ? 0 : 1;