Changeset 28f3a19 for src/tests/preempt_longrun/processor.c
- Timestamp:
- Jun 27, 2018, 3:28:41 PM (7 years ago)
- Branches:
- new-env, with_gc
- Children:
- b21c77a
- Parents:
- 0182bfa (diff), 63238a4 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/preempt_longrun/processor.c
r0182bfa r28f3a19 2 2 #include <thread> 3 3 #include <time> 4 5 #include <unistd.h> 6 7 #include "long_tests.h" 4 8 5 9 #ifndef PREEMPTION_RATE … … 11 15 } 12 16 13 static const unsigned long N = 5 _000ul;17 static const unsigned long N = 50_000ul; 14 18 15 19 int main(int argc, char* argv[]) { … … 18 22 p[pi] = new(); 19 23 } 20 for ( int i = 0; i < N; i++) {24 for ( int i = 0; TEST(i < N); i++) { 21 25 int pi = i % 15; 22 26 delete( p[pi] ); 23 27 p[pi] = new(); 28 KICK_WATCHDOG; 29 } 30 for ( int pi = 0; pi < 15; pi++ ) { 31 delete( p[pi] ); 24 32 } 25 33 }
Note:
See TracChangeset
for help on using the changeset viewer.