~ubuntu-branches/ubuntu/trusty/liburcu/trusty

« back to all changes in this revision

Viewing changes to tests/test_urcu_gc.c

  • Committer: Package Import Robot
  • Author(s): Stéphane Graber
  • Date: 2014-03-26 18:14:32 UTC
  • mfrom: (32.1.2 liburcu)
  • Revision ID: package-import@ubuntu.com-20140326181432-i2ji3z9twcfldety
* New upstream bugfix release (0.7.12).
  The latest upstream (in Debian) is 0.8.x but this causes feature
  change and soname bump which we don't want to do this late in the cycle.
* Cherry-pick upstream fix to re-introduce dropped symbol.

Show diffs side-by-side

added added

removed removed

Lines of Context:
416
416
                        "main", (unsigned long) pthread_self(),
417
417
                        (unsigned long) gettid());
418
418
 
419
 
        tid_reader = malloc(sizeof(*tid_reader) * nr_readers);
420
 
        tid_writer = malloc(sizeof(*tid_writer) * nr_writers);
421
 
        count_reader = malloc(sizeof(*count_reader) * nr_readers);
422
 
        tot_nr_writes = malloc(sizeof(*tot_nr_writes) * nr_writers);
423
 
        pending_reclaims = malloc(sizeof(*pending_reclaims) * nr_writers);
 
419
        tid_reader = calloc(nr_readers, sizeof(*tid_reader));
 
420
        tid_writer = calloc(nr_writers, sizeof(*tid_writer));
 
421
        count_reader = calloc(nr_readers, sizeof(*count_reader));
 
422
        tot_nr_writes = calloc(nr_writers, sizeof(*tot_nr_writes));
 
423
        pending_reclaims = calloc(nr_writers, sizeof(*pending_reclaims));
424
424
        if (reclaim_batch * sizeof(*pending_reclaims[i].queue)
425
425
                        < CAA_CACHE_LINE_SIZE)
426
426
                for (i = 0; i < nr_writers; i++)