#include "ObjectHash.h"
#ifdef MULTICORE
+#include "methodheaders.h"
#include "runtime_arch.h"
+#include "multicoreruntime.h"
#else
#include <stdio.h>
#endif
+
#ifdef DMALLOC
#include "dmalloc.h"
#endif
}
struct ObjectHash * allocateObjectHash(int size) {
- struct ObjectHash *thisvar; //=(struct ObjectHash *)RUNMALLOC(sizeof(struct ObjectHash));
+ struct ObjectHash *thisvar;
if (size <= 0) {
#ifdef MULTICORE
- BAMBOO_EXIT(0xf001);
+ BAMBOO_EXIT();
#else
printf("Negative Hashtable size Exception\n");
exit(-1);
}
}
thisvar->size=newsize;
- RUNFREE(thisvar->bucket);
+ RUNFREE_I(thisvar->bucket);
thisvar->bucket=newbucket;
}