Changes in kernel/test/synch/rcu1.c [8848276:7850dda] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/synch/rcu1.c
r8848276 r7850dda 27 27 */ 28 28 29 #include <assert.h> 29 30 #include <test.h> 30 31 #include <arch.h> … … 81 82 static void run_thread(size_t k, void (*func)(void*), void *arg) 82 83 { 83 ASSERT(thread[k] == NULL);84 assert(thread[k] == NULL); 84 85 85 86 thread[k] = thread_create(func, arg, TASK, THREAD_FLAG_NONE, … … 130 131 static void run_one(void (*func)(void*), void *arg) 131 132 { 132 ASSERT(one_idx < MAX_THREADS);133 assert(one_idx < MAX_THREADS); 133 134 run_thread(one_idx, func, arg); 134 135 ++one_idx; … … 138 139 static void join_one(void) 139 140 { 140 ASSERT(0 < one_idx && one_idx <= MAX_THREADS);141 assert(0 < one_idx && one_idx <= MAX_THREADS); 141 142 142 143 --one_idx; … … 168 169 static void get_seq(size_t from, size_t to, size_t steps, size_t *seq) 169 170 { 170 ASSERT(0 < steps && from <= to && 0 < to);171 assert(0 < steps && from <= to && 0 < to); 171 172 size_t inc = (to - from) / (steps - 1); 172 173 … … 304 305 static void one_cb_done(rcu_item_t *item) 305 306 { 306 ASSERT( ((item_w_cookie_t *)item)->cookie == magic_cookie);307 assert( ((item_w_cookie_t *)item)->cookie == magic_cookie); 307 308 one_cb_is_done = 1; 308 309 TPRINTF("Callback()\n"); … … 388 389 static void seq_func(void *arg) 389 390 { 391 /* 392 * Temporarily workaround GCC 7.1.0 internal 393 * compiler error when compiling for riscv64. 394 */ 395 #ifndef KARCH_riscv64 390 396 seq_work_t *work = (seq_work_t*)arg; 391 397 … … 434 440 } 435 441 436 } 442 } 443 #else 444 (void) seq_cb; 445 #endif 437 446 } 438 447 … … 560 569 { 561 570 preempt_t *p = (preempt_t*)arg; 562 ASSERT(!p->e.exited);571 assert(!p->e.exited); 563 572 564 573 TPRINTF("reader_prev{ "); … … 580 589 { 581 590 preempt_t *p = (preempt_t*)arg; 582 ASSERT(!p->e.exited);591 assert(!p->e.exited); 583 592 584 593 TPRINTF("reader_inside_cur{ "); … … 605 614 { 606 615 preempt_t *p = (preempt_t*)arg; 607 ASSERT(!p->e.exited);616 assert(!p->e.exited); 608 617 609 618 TPRINTF("reader_cur{ "); … … 627 636 { 628 637 preempt_t *p = (preempt_t*)arg; 629 ASSERT(!p->e.exited);638 assert(!p->e.exited); 630 639 631 640 TPRINTF("reader_next1{ "); … … 649 658 { 650 659 preempt_t *p = (preempt_t*)arg; 651 ASSERT(!p->e.exited);660 assert(!p->e.exited); 652 661 653 662 TPRINTF("reader_next2{ ");
Note:
See TracChangeset
for help on using the changeset viewer.