PERFORCE change 152515 for review

Peter Wemm peter at wemm.org
Wed Nov 5 02:22:21 PST 2008


On Wed, Nov 5, 2008 at 1:45 AM, Peter Wemm <peter at freebsd.org> wrote:
> http://perforce.freebsd.org/chv.cgi?CH=152515
>
> Change 152515 by peter at peter_overcee on 2008/11/05 09:44:49
>
>        Make libthr threads work.  Exiting/shutdown leaves a bit to be desired.
>        Sometimes everything exits without doing the final error report.  I think
>        this is what happens if the last thread calls thr_exit() after the main
>        thread has already called exit().

peter at overcee[ 1:52AM]~/fbp4/valgrind-1342> valgrind
--leak-check=full ~/pp -v -i 1000 -n 4
==80442== Memcheck, a memory error detector.
==80442== Copyright (C) 2002-2008, and GNU GPL'd, by Julian Seward et al.
==80442== Using LibVEX rev export, a library for dynamic binary translation.
==80442== Copyright (C) 2004-2008, and GNU GPL'd, by OpenWorks LLP.
==80442== Using valgrind-3.4.0.SVN, a dynamic binary instrumentation framework.
==80442== Copyright (C) 2000-2008, and GNU GPL'd, by Julian Seward et al.
==80442== For more details, rerun with: -v
==80442==

PING-PONG CONFIGURATION:

target (-i) = 1000
ntables (-n) = 4
sleepms (-z) = 0
pthread_scope (-s) = process
pthread_process (-p) = private
concurrency (-c) = 0
stacksize (-S) = 0

8 threads initialised in 44ms
4 games completed in 149ms
==80442==
==80442== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
==80442== malloc/free: in use at exit: 10,020 bytes in 41 blocks.
==80442== malloc/free: 44 allocs, 3 frees, 10,212 bytes allocated.
==80442== For counts of detected errors, rerun with: -v
==80442== searching for pointers to 41 not-freed blocks.
==80442== checked 17,202,640 bytes.
==80442==
==80442== LEAK SUMMARY:
==80442==    definitely lost: 0 bytes in 0 blocks.
==80442==      possibly lost: 0 bytes in 0 blocks.
==80442==    still reachable: 5,924 bytes in 40 blocks.
==80442==         suppressed: 4,096 bytes in 1 blocks.
==80442== Reachable blocks (those to which a pointer was found) are not shown.
==80442== To see them, rerun with: --leak-check=full --show-reachable=yes

-- 
Peter Wemm - peter at wemm.org; peter at FreeBSD.org; peter at yahoo-inc.com; KI6FJV
"All of this is for nothing if we don't go to the stars" - JMS/B5
"If Java had true garbage collection, most programs would delete
themselves upon execution." -- Robert Sewell


More information about the p4-projects mailing list