execution: convert HashTable to SnapVector
[model-checker.git] / execution.h
index 12603b2fcb49bcf8555982aa09b02d2756925195..41a1bc1479ceb8f9d12a2ebb81fb6bacf925d6a6 100644 (file)
@@ -111,7 +111,7 @@ public:
 
        ModelAction * get_next_backtrack();
 
-       action_list_t * get_action_trace() const { return action_trace; }
+       action_list_t * get_action_trace() { return &action_trace; }
 
        SNAPSHOTALLOC
 private:
@@ -185,8 +185,8 @@ private:
 
        ModelAction * get_uninitialized_action(const ModelAction *curr) const;
 
-       action_list_t * const action_trace;
-       HashTable<int, Thread *, int> thread_map;
+       action_list_t action_trace;
+       SnapVector<Thread *> thread_map;
 
        /** Per-object list of actions. Maps an object (i.e., memory location)
         * to a trace of all actions performed on the object. */