Ignore:
Timestamp:
Mar 8, 2018, 3:38:44 PM (8 years ago)
Author:
Aaron Moss <a3moss@…>
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:
037c072
Parents:
28bc8c8 (diff), 70969f8 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

Location:
src/tests/preempt_longrun
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • src/tests/preempt_longrun/Makefile.am

    r28bc8c8 r9d6f011  
    2323TIME = /usr/bin/time -f "%E"
    2424
    25 BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -O2 -DPREEMPTION_RATE=${preempt}
     25BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -O2 -DPREEMPTION_RATE=${preempt} -DLONG_TEST
    2626CFLAGS = ${BUILD_FLAGS}
    2727CC = @CFA_BINDIR@/@CFA_NAME@
  • src/tests/preempt_longrun/Makefile.in

    r28bc8c8 r9d6f011  
    454454REPEAT = ${abs_top_srcdir}/tools/repeat
    455455TIME = /usr/bin/time -f "%E"
    456 BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -O2 -DPREEMPTION_RATE=${preempt}
     456BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -O2 -DPREEMPTION_RATE=${preempt} -DLONG_TEST
    457457TESTS = block coroutine create disjoint enter enter3 processor stack wait yield
    458458all: all-am
  • src/tests/preempt_longrun/create.c

    r28bc8c8 r9d6f011  
    22#include <thread>
    33
    4 static const unsigned long N = 2_000ul;
     4static const unsigned long N = 60_000ul;
    55
    66#ifndef PREEMPTION_RATE
  • src/tests/preempt_longrun/enter.c

    r28bc8c8 r9d6f011  
    33#include <thread>
    44
    5 static const unsigned long N  = 70_000ul;
     5static const unsigned long N  = 2_100_000ul;
    66
    77#ifndef PREEMPTION_RATE
  • src/tests/preempt_longrun/enter3.c

    r28bc8c8 r9d6f011  
    33#include <thread>
    44
    5 static const unsigned long N  = 50_000ul;
     5static const unsigned long N  = 500_000ul;
    66
    77#ifndef PREEMPTION_RATE
  • src/tests/preempt_longrun/processor.c

    r28bc8c8 r9d6f011  
    1212}
    1313
    14 thread worker_t {};
    15 
    16 void main(worker_t & this) {}
    17 
    18 extern processor *   mainProcessor;
    19 extern thread_desc * mainThread;
    20 
    2114int main(int argc, char* argv[]) {
    22         for(int i = 0; i < N; i++) {
    23                 assert(this_processor == mainProcessor);
    24                 assert(this_thread == mainThread);
    25                 processor p;
     15        processor * p[15];
     16        for ( int pi = 0; pi < 15; pi++ ) {
     17                p[pi] = new();
     18        }
     19        for ( int i = 0; i < N; i++) {
     20                int pi = i % 15;
     21                delete( p[pi] );
     22                p[pi] = new();
    2623        }
    2724}
  • src/tests/preempt_longrun/yield.c

    r28bc8c8 r9d6f011  
    22#include <thread>
    33
     4#ifdef LONG_TEST
     5static const unsigned long N = 9_750_000ul;
     6#else
    47static const unsigned long N = 325_000ul;
     8#endif
    59
    610#ifndef PREEMPTION_RATE
Note: See TracChangeset for help on using the changeset viewer.