Commits

Remi Meier committed 53410d7

fix

Comments (0)

Files changed (4)

 #define NB_PAGES            (256*256)    // 256MB
 #define NB_THREADS          2
 #define MAP_PAGES_FLAGS     (MAP_SHARED | MAP_ANONYMOUS | MAP_NORESERVE)
-#define LARGE_OBJECT_WORDS  220  // XXX was 36
+#define LARGE_OBJECT_WORDS  230  // XXX was 36
 #define NB_NURSERY_PAGES    1024
 #define LENGTH_SHADOW_STACK   163840
 
         if (interactive) {
             Du_Print(res, 1);
         }
+        _du_save1(stm_thread_local_obj);
         stm_stop_transaction();
+        _du_restore1(stm_thread_local_obj);
 
         Du_TransactionRun();
         if (!interactive)
 extern pthread_t *all_threads;
 extern int all_threads_count;
 
+extern __thread DuObject *stm_thread_local_obj;  /* XXX temp */
 #endif  /* _DUHTON_H_ */
     _du_write1(root);
     root->cdr = stm_thread_local_obj;
     stm_stop_transaction();
+    
     stm_thread_local_obj = NULL;
 
     run_all_threads();