Ignore:
Timestamp:
Jun 29, 2018, 4:14:15 PM (7 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
new-env
Children:
184557e
Parents:
97397a26 (diff), 28f3a19 (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 remote-tracking branch 'origin/with_gc' into new-env

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/preempt_longrun/processor.c

    r97397a26 rb21c77a  
    22#include <thread>
    33#include <time>
     4
     5#include <unistd.h>
     6
     7#include "long_tests.h"
    48
    59#ifndef PREEMPTION_RATE
     
    1115}
    1216
    13 static const unsigned long N = 5_000ul;
     17static const unsigned long N = 50_000ul;
    1418
    1519int main(int argc, char* argv[]) {
     
    1822                p[pi] = new();
    1923        }
    20         for ( int i = 0; i < N; i++) {
     24        for ( int i = 0; TEST(i < N); i++) {
    2125                int pi = i % 15;
    2226                delete( p[pi] );
    2327                p[pi] = new();
     28                KICK_WATCHDOG;
     29        }
     30        for ( int pi = 0; pi < 15; pi++ ) {
     31                delete( p[pi] );
    2432        }
    2533}
Note: See TracChangeset for help on using the changeset viewer.