From: bdemsky Date: Thu, 9 Apr 2009 07:01:04 +0000 (+0000) Subject: fix same bug in DSTM system X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3b1df8bb32cabbe9019136249dbc108e51c2d1ff;p=IRC.git fix same bug in DSTM system --- diff --git a/Robust/src/Runtime/DSTM/interface/objstr.c b/Robust/src/Runtime/DSTM/interface/objstr.c index 5b982268..be04a8d6 100644 --- a/Robust/src/Runtime/DSTM/interface/objstr.c +++ b/Robust/src/Runtime/DSTM/interface/objstr.c @@ -49,7 +49,7 @@ void *objstrAlloc(objstr_t **osptr, unsigned int size) { unsigned int newsize=size>DEFAULT_OBJ_STORE_SIZE?size:DEFAULT_OBJ_STORE_SIZE; objstr_t *os=(objstr_t *)calloc(1,(sizeof(objstr_t) + newsize)); void *ptr=&os[1]; - os->next=store; + os->next=*osptr; (*osptr)=os; os->size=newsize; os->top=((char *)ptr)+size;