From 31b68fba31ac5aa90a12f2616f9264922d8a3e4f Mon Sep 17 00:00:00 2001 From: bdemsky Date: Sat, 16 Apr 2011 00:10:35 +0000 Subject: [PATCH] add enqueue to garbage.h --- Robust/src/Runtime/garbage.h | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/Robust/src/Runtime/garbage.h b/Robust/src/Runtime/garbage.h index 8d82ea12..a2a1f629 100644 --- a/Robust/src/Runtime/garbage.h +++ b/Robust/src/Runtime/garbage.h @@ -14,6 +14,49 @@ struct pointerblock { struct pointerblock *next; }; +//Need to check if pointers are transaction pointers +//this also catches the special flag value of 1 for local copies +#ifdef DSTM +#define ENQUEUE(orig, dst) \ + if ((!(((unsigned int)orig)&0x1))) { \ + if (orig>=curr_heapbase&&orig=curr_heapbase&&orig