Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


On Fri, 2011-06-24 at 11:30 +0100, Michael Meeks wrote:
 
-    if (getenv("G_SLICE") != NULL)
+    if (RUNNING_ON_VALGRIND)
+    {
+        putenv ("G_SLICE=1");
+        fprintf(stderr, "LibreOffice: running under valgrind detected.\n");
+        alloc_mode = AMode_SYSTEM;
+    }
+    else if (getenv("G_SLICE") != NULL)
     {
...
      That might help the QA guys automagically generate better valgrind
traces with less effort ?

export VALGRIND=memcheck
is really a major barrier ?, *shrug*, I don't have any major objections
to the principle.

The (overblown) osl_setEnvironment wraps setenv where available FWIW.

C.


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.