Temporary fix to avoid a segfault during execution of pobj test

programs, that's caused by an on-stack allocation of a very big array...
Permanent (future) fix: switch to dynamically allocated hash tables.
This commit is contained in:
Gilad Arnold 2004-12-15 01:27:17 +00:00
parent 3e720695a6
commit e30aca6138

View file

@ -59,8 +59,8 @@ struct pobj {
#define POBJ_REP_MAX_EXP 14 #define POBJ_REP_MAX_EXP 14
#define POBJ_REP_MAX (1 << POBJ_REP_MAX_EXP) #define POBJ_REP_MAX (1 << POBJ_REP_MAX_EXP)
#define CONVERT_HASH_NBUCKEXP 18 #define CONVERT_HASH_NBUCKEXP 10
#define UPDATE_HASH_NBUCKEXP 18 #define UPDATE_HASH_NBUCKEXP 10
#define UPDATE_QUEUE_MAX_EXP 10 #define UPDATE_QUEUE_MAX_EXP 10
#define UPDATE_QUEUE_MAX (1 << UPDATE_QUEUE_MAX_EXP) #define UPDATE_QUEUE_MAX (1 << UPDATE_QUEUE_MAX_EXP)
@ -74,7 +74,7 @@ struct pobj_rep_list_item {
int next_index; int next_index;
void *objid; void *objid;
size_t size; size_t size;
int type_index;; int type_index;
recordid rid; recordid rid;
}; };
/* TODO: switch to growable data structure. */ /* TODO: switch to growable data structure. */