Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
vstinner merged 1 commit into
python:masterpython/cpython:masterfrom
segevfiner:bpo-31018-tracemalloc-pack-optimizationsegevfiner/cpython:bpo-31018-tracemalloc-pack-optimizationCopy head branch name to clipboard
Jul 25, 2017
Merged

bpo-31018: Switch to #pragma pack from __declspec(align) in _tracemalloc#2848
vstinner merged 1 commit into
python:masterpython/cpython:masterfrom
segevfiner:bpo-31018-tracemalloc-pack-optimizationsegevfiner/cpython:bpo-31018-tracemalloc-pack-optimizationCopy head branch name to clipboard

Conversation

@segevfiner

@segevfiner segevfiner commented Jul 24, 2017

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

@vstinner

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 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
@segevfiner

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
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.