Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / external / python3 / python-3.3.3-disable-obmalloc.patch.0
bloba162298d4971ae1a9c6064e9b837d75a85d5b611
1 --- Include/objimpl.h
2 +++ Include/objimpl.h
3 @@ -250,7 +250,7 @@
4          union _gc_head *gc_prev;
5          Py_ssize_t gc_refs;
6      } gc;
7 -    double dummy;  /* force worst-case alignment */
8 +    long double dummy;  /* force worst-case alignment */
9  } PyGC_Head;
11  extern PyGC_Head *_PyGC_generation0;
12 --- Objects/obmalloc.c
13 +++ Objects/obmalloc.c
14 @@ -413,8 +413,8 @@
16  #ifdef WITH_PYMALLOC
18 +#define WITH_VALGRIND
19  #ifdef WITH_VALGRIND
20 -#include <valgrind/valgrind.h>
22  /* If we're using GCC, use __builtin_expect() to reduce overhead of
23     the valgrind checks */
24 @@ -1181,7 +1181,7 @@
26  #ifdef WITH_VALGRIND
27      if (UNLIKELY(running_on_valgrind == -1))
28 -        running_on_valgrind = RUNNING_ON_VALGRIND;
29 +        running_on_valgrind = 1;
30      if (UNLIKELY(running_on_valgrind))
31          goto redirect;
32  #endif