Changeset 70969f8 for src/tests/preempt_longrun
- Timestamp:
- Mar 8, 2018, 12:56:02 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 9d6f011, b2fe1c9
- Parents:
- e61de5b
- Location:
- src/tests/preempt_longrun
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/preempt_longrun/Makefile.am
re61de5b r70969f8 23 23 TIME = /usr/bin/time -f "%E" 24 24 25 BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -O2 -DPREEMPTION_RATE=${preempt} 25 BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -O2 -DPREEMPTION_RATE=${preempt} -DLONG_TEST 26 26 CFLAGS = ${BUILD_FLAGS} 27 27 CC = @CFA_BINDIR@/@CFA_NAME@ -
src/tests/preempt_longrun/Makefile.in
re61de5b r70969f8 454 454 REPEAT = ${abs_top_srcdir}/tools/repeat 455 455 TIME = /usr/bin/time -f "%E" 456 BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -O2 -DPREEMPTION_RATE=${preempt} 456 BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -O2 -DPREEMPTION_RATE=${preempt} -DLONG_TEST 457 457 TESTS = block coroutine create disjoint enter enter3 processor stack wait yield 458 458 all: all-am -
src/tests/preempt_longrun/processor.c
re61de5b r70969f8 19 19 for ( int i = 0; i < N; i++) { 20 20 int pi = i % 15; 21 //for ( volatile int j = 0; j < 10000; j++ );22 21 delete( p[pi] ); 23 22 p[pi] = new(); -
src/tests/preempt_longrun/yield.c
re61de5b r70969f8 2 2 #include <thread> 3 3 4 #ifdef LONG_TEST 5 static const unsigned long N = 9_750_000ul; 6 #else 4 7 static const unsigned long N = 325_000ul; 8 #endif 5 9 6 10 #ifndef PREEMPTION_RATE
Note:
See TracChangeset
for help on using the changeset viewer.