//initializes data structures needed for the RCR traverser
if(state.RCR && rcr != null) {
outmethod.println(" initializeStructsRCR();");
+ outmethod.println(" createAndFillMasterHashStructureArray();");
}
}
#define SHIFTBITS 4
#endif
-__thread dchashlistnode_t *dc_c_table;
-__thread dchashlistnode_t *dc_c_list;
-__thread dcliststruct_t *dc_c_structs;
+__thread dchashlistnode_t *dc_c_table = NULL;
+__thread dchashlistnode_t *dc_c_list = NULL;
+__thread dcliststruct_t *dc_c_structs= NULL;
__thread unsigned int dc_c_size;
__thread unsigned INTPTR dc_c_mask;
__thread unsigned int dc_c_numelements;
}
void hashRCRreset() {
+ if(dc_c_table == NULL) {
+ hashRCRCreate(128, 0.75);
+ }
+
dchashlistnode_t *ptr = dc_c_table;
if (dc_c_numelements<(dc_c_size>>SHIFTBITS)) {