|
From: Julian S. <js...@ac...> - 2009-05-20 08:21:39
|
Independently of your commit .. does this work reliably? It looks
distinctly un-thread-safe to me :-)
if (init_done)
return;
init_done = 1;
// actually do said initialisation
J
On Wednesday 20 May 2009, sv...@va... wrote:
> Author: njn
> Date: 2009-05-20 05:03:56 +0100 (Wed, 20 May 2009)
> New Revision: 10017
>
> Log:
> Trunk sync: whitespace.
>
>
>
> Modified:
> branches/DARWIN/coregrind/m_replacemalloc/vg_replace_malloc.c
>
>
> Modified: branches/DARWIN/coregrind/m_replacemalloc/vg_replace_malloc.c
> ===================================================================
> ---
> branches/DARWIN/coregrind/m_replacemalloc/vg_replace_malloc.c 2009-05-20
> 04:02:50 UTC (rev 10016) +++
> branches/DARWIN/coregrind/m_replacemalloc/vg_replace_malloc.c 2009-05-20
> 04:03:56 UTC (rev 10017) @@ -797,9 +797,12 @@
> static void init(void)
> {
> int res;
> +
> if (init_done)
> return;
> +
> init_done = 1;
> +
> VALGRIND_DO_CLIENT_REQUEST(res, -1, VG_USERREQ__GET_MALLOCFUNCS, &info,
> 0, 0, 0, 0);
> }
>
>
> ---------------------------------------------------------------------------
>--- Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables
> unlimited royalty-free distribution of the report engine
> for externally facing server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> Valgrind-developers mailing list
> Val...@li...
> https://lists.sourceforge.net/lists/listinfo/valgrind-developers
|