From 9cb94a37b8422c345e175fe03a39b99d825a9180 Mon Sep 17 00:00:00 2001 From: adash Date: Wed, 28 Feb 2007 01:53:39 +0000 Subject: [PATCH] test file for dstm functions --- Robust/src/Runtime/DSTM/interface/main.c | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Robust/src/Runtime/DSTM/interface/main.c diff --git a/Robust/src/Runtime/DSTM/interface/main.c b/Robust/src/Runtime/DSTM/interface/main.c new file mode 100644 index 00000000..3a6f44f7 --- /dev/null +++ b/Robust/src/Runtime/DSTM/interface/main.c @@ -0,0 +1,25 @@ +#include +#include +#include +#include "dstm.h" + +#define size 1000000 + + +obj_addr_table_t mlut; +int classsize[]={sizeof(int),sizeof(char),sizeof(short), sizeof(void *)}; + +int main() { + int i; + + dstm_init(); + create_objstr(size); + createHash(&mlut, HASH_SIZE, 0.75); + + for(i=0; i< 4 ; i++) { + createObject(i); + } + + createObject(3); + return 0; +} -- 2.34.1