]> granicus.if.org Git - python/commit
Issue #20354: Fix alignment issue in the tracemalloc module on 64-bit
authorVictor Stinner <victor.stinner@gmail.com>
Sat, 1 Feb 2014 02:43:58 +0000 (03:43 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Sat, 1 Feb 2014 02:43:58 +0000 (03:43 +0100)
commitdd382ef8ec8a572f202999ca94ff292722f3d6f6
treeb8252af52e0e02e2661598d3f0f9dc94c4ed2090
parenta17b6bb5fe6a3e12ef359cc4c214cf7a7785bd88
Issue #20354: Fix alignment issue in the tracemalloc module on 64-bit
platforms. Bug seen on 64-bit Linux when using "make profile-opt".

Only align the "frame_t" structure on 32-bit when Visual Studio is used. Before
the alignment to 32-bit was applied to the whole file any compiler supporting
"#pragma pack(4)" which includes GCC.
Modules/_tracemalloc.c