From: Brian Demsky Date: Tue, 10 Dec 2019 07:42:23 +0000 (-0800) Subject: small edits X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6fe36b2ea5cb9cd9ab58dab7f011b33d2a097e30;p=c11tester.git small edits --- diff --git a/Makefile b/Makefile index c1d0e232..4f83cd99 100644 --- a/Makefile +++ b/Makefile @@ -18,11 +18,9 @@ LDFLAGS := -ldl SHARED := -Wl,-undefined,dynamic_lookup -dynamiclib endif -TESTS_DIR := test - MARKDOWN := doc/Markdown/Markdown.pl -all: $(LIB_SO) tests README.html +all: $(LIB_SO) README.html debug: CPPFLAGS += -DCONFIG_DEBUG debug: all @@ -58,7 +56,6 @@ $(LIB_SO): $(OBJECTS) PHONY += clean clean: rm -f *.o *.so .*.d *.pdf *.dot - $(MAKE) -C $(TESTS_DIR) clean PHONY += mrclean mrclean: clean @@ -68,10 +65,6 @@ PHONY += tags tags: ctags -R -PHONY += tests -tests: $(LIB_SO) -# $(MAKE) -C $(TESTS_DIR) - BENCH_DIR := benchmarks PHONY += benchmarks diff --git a/execution.h b/execution.h index 4a453bb2..54934891 100644 --- a/execution.h +++ b/execution.h @@ -136,11 +136,12 @@ private: /** The scheduler to use: tracks the running/ready Threads */ Scheduler * const scheduler; - action_list_t action_trace; SnapVector thread_map; SnapVector pthread_map; uint32_t pthread_counter; + action_list_t action_trace; + /** Per-object list of actions. Maps an object (i.e., memory location) * to a trace of all actions performed on the object. * Used only for SC fences, unlocks, & wait. @@ -151,8 +152,10 @@ private: * to a trace of all actions performed on the object. */ HashTable condvar_waiters_map; + /** Per-object list of actions that each thread performed. */ HashTable *, uintptr_t, 2> obj_thrd_map; + /** Per-object list of writes that each thread performed. */ HashTable *, uintptr_t, 2> obj_wr_thrd_map; HashTable obj_last_sc_map;