From 43d285771b43f578ce822ead20cc9010f6466d72 Mon Sep 17 00:00:00 2001 From: jjenista Date: Wed, 10 Nov 2010 23:16:07 +0000 Subject: [PATCH] poolalloc with no poolfree should be benign, but it causes wacky behavior in moldyn. It could just be altering the timing and exposing a latent bug, but for now lets go back to strict MALLOC --- Robust/src/Runtime/oooJava/hashStructure.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Robust/src/Runtime/oooJava/hashStructure.c b/Robust/src/Runtime/oooJava/hashStructure.c index d13a79ec..9eb89720 100644 --- a/Robust/src/Runtime/oooJava/hashStructure.c +++ b/Robust/src/Runtime/oooJava/hashStructure.c @@ -50,20 +50,22 @@ HashStructure* rcr_createHashtable(int sizeofWaitingQueue){ newTable->array[i].head=NULL; newTable->array[i].tail=NULL; } - newTable->memPoolRead = poolcreate( sizeof(ReadBinItem_rcr), NULL ); - newTable->memPoolWrite = poolcreate( sizeof(WriteBinItem_rcr), NULL ); + //newTable->memPoolRead = poolcreate( sizeof(ReadBinItem_rcr), NULL ); + //newTable->memPoolWrite = poolcreate( sizeof(WriteBinItem_rcr), NULL ); return newTable; } WriteBinItem_rcr* rcr_createWriteBinItem( HashStructure* htable ){ - WriteBinItem_rcr* binitem=(WriteBinItem_rcr*)poolalloc( htable->memPoolWrite ); + //WriteBinItem_rcr* binitem=(WriteBinItem_rcr*)poolalloc( htable->memPoolWrite ); + WriteBinItem_rcr* binitem=(WriteBinItem_rcr*)RUNMALLOC(sizeof(WriteBinItem_rcr)); binitem->item.type=WRITEBIN; binitem->item.next=NULL; return binitem; } ReadBinItem_rcr* rcr_createReadBinItem( HashStructure* htable ){ - ReadBinItem_rcr* binitem=(ReadBinItem_rcr*)poolalloc( htable->memPoolRead ); + //ReadBinItem_rcr* binitem=(ReadBinItem_rcr*)poolalloc( htable->memPoolRead ); + ReadBinItem_rcr* binitem=(ReadBinItem_rcr*)RUNMALLOC(sizeof(ReadBinItem_rcr)); binitem->index=0; binitem->item.type=READBIN; binitem->item.next=NULL; -- 2.34.1