Salome HOME
merge from master
[tools/sat_salome.git] / products / patches / python_3.6.5-allocation.patch
1 diff -Naur Python_old/Include/objimpl.h Python/Include/objimpl.h
2 --- Python_old/Include/objimpl.h        2021-09-22 13:45:20.116037197 +0200
3 +++ Python/Include/objimpl.h    2021-09-22 13:46:05.444683399 +0200
4 @@ -255,7 +255,7 @@
5          union _gc_head *gc_prev;
6          Py_ssize_t gc_refs;
7      } gc;
8 -    double dummy;  /* force worst-case alignment */
9 +    long double dummy;  /* force worst-case alignment */
10  } PyGC_Head;
11  
12  extern PyGC_Head *_PyGC_generation0;
13 diff -Naur Python_old/Objects/obmalloc.c Python/Objects/obmalloc.c
14 --- Python_old/Objects/obmalloc.c       2018-03-28 11:19:31.000000000 +0200
15 +++ Python/Objects/obmalloc.c   2021-09-22 13:46:32.901074624 +0200
16 @@ -633,8 +633,8 @@
17   *
18   * You shouldn't change this unless you know what you are doing.
19   */
20 -#define ALIGNMENT               8               /* must be 2^N */
21 -#define ALIGNMENT_SHIFT         3
22 +#define ALIGNMENT               16               /* must be 2^N */
23 +#define ALIGNMENT_SHIFT         4
24  
25  /* Return the number of bytes in size class I, as a uint. */
26  #define INDEX2SIZE(I) (((uint)(I) + 1) << ALIGNMENT_SHIFT)