FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-31018: Switch to #pragma pack from __declspec(align) in _tracemalloc by segevfiner · Pull Request #2848 · python/cpython · GitHub

Repository navigation

bpo-31018: Switch to #pragma pack from __declspec(align) in _tracemalloc - #2848

Merged
vstinner merged 1 commit into
python:masterfrom
segevfiner:bpo-31018-tracemalloc-pack-optimization
Jul 25, 2017
Merged

vstinner merged 1 commit into
python:masterfrom
segevfiner:bpo-31018-tracemalloc-pack-optimization

Conversation

segevfiner commented Jul 24, 2017 •
edited
Loading

Copy link
Copy Markdown
Contributor
..\Modules\_tracemalloc.c(88): warning C4359: '<unnamed-tag>': Alignment specifier is less than actual alignment (8), and will be ignored.

The _tracemalloc frame_t packing optimization is not working in Windows x64.

For this to actually work we simply need to use #pragma pack instead.

https://bugs.python.org/issue31018

Copy link
Copy Markdown
Member

Thanks. Packing is just an optimization to reduce the memory footprint. It's up to you to decide if it's worth it to backport the change to 3.6 (and maybe also 3.5).

segevfiner deleted the bpo-31018-tracemalloc-pack-optimization branch July 25, 2017 16:32
segevfiner added a commit to segevfiner/cpython that referenced this pull request Jul 25, 2017
segevfiner added a commit to segevfiner/cpython that referenced this pull request Jul 25, 2017

Copy link
Copy Markdown
Contributor Author

Since it's small... might as well.

vstinner pushed a commit that referenced this pull request Jul 25, 2017
vstinner pushed a commit that referenced this pull request Jul 25, 2017
corona10 pushed a commit to corona10/cpython that referenced this pull request Jul 26, 2017
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL